mirror of
https://github.com/wownero/diff-chart.git
synced 2026-10-17 15:21:25 +02:00
tx-per-day: show avg tx sizes
This commit is contained in:
+3
-1
@@ -71,6 +71,8 @@ class GetData():
|
||||
reward = block_header['reward']
|
||||
block_size = block_header['block_size']
|
||||
num_txes = block_header['num_txes']
|
||||
|
||||
blob_size = len(res_blk['blob']) / 2
|
||||
# print(res_blk)
|
||||
# print('====================================================')
|
||||
|
||||
@@ -98,7 +100,7 @@ class GetData():
|
||||
if j > 0:
|
||||
txs_str += ','
|
||||
txs_str += "[%d,%d,%d,%d,%d,%d]" % (unlock_time, ins, outs, ring_size, fee, extra_size)
|
||||
print('[%d,%d,%d,%d,%d,[%s]],' % (timestamp, nonce, difficulty, reward, block_size, txs_str))
|
||||
print('[%d,%d,%d,%d,%d,%d,[%s]],' % (timestamp, nonce, difficulty, reward, block_size, blob_size, txs_str))
|
||||
print(']')
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user