tx-per-day: show avg tx sizes

This commit is contained in:
stoffu
2019-09-13 12:42:36 +09:00
parent 9b6ffd5bf5
commit 3695fd0649
12 changed files with 130950 additions and 130868 deletions
+3 -1
View File
@@ -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__':