Skip to content

Commit 1ae4501

Browse files
author
huangyi
committed
skip block 1
1 parent 2a2c092 commit 1ae4501

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

testground/benchmark/benchmark/stats.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ def dump_block_stats(fp):
2626
tps_list = []
2727
current = block_height()
2828
blocks = []
29-
for i in range(1, current + 1):
29+
# skip block 1 whose timestamp is not accurate
30+
for i in range(2, current + 1):
3031
blk = block(i)
3132
timestamp = datetime.fromisoformat(blk["result"]["block"]["header"]["time"])
3233
txs = len(blk["result"]["block"]["data"]["txs"])

0 commit comments

Comments
 (0)