fix tx rate

This commit is contained in:
UdjinM6 2019-07-04 18:15:52 +03:00 committed by Pasta
parent de33753f06
commit 493f4336a3
No known key found for this signature in database
GPG Key ID: D362C9F7142766AE

View File

@ -47,9 +47,9 @@ class BlockchainTest(BitcoinTestFramework):
chaintxstats = self.nodes[0].getchaintxstats(1)
# 200 txs plus genesis tx
assert_equal(chaintxstats['txcount'], 201)
# tx rate should be 1 per 10 minutes, or 1/600
# tx rate should be 1 per ~2.6 minutes (156 seconds), or 1/156
# we have to round because of binary math
assert_equal(round(chaintxstats['txrate'] * 600, 10), Decimal(1))
assert_equal(round(chaintxstats['txrate'] * 156, 10), Decimal(1))
def _test_gettxoutsetinfo(self):
node = self.nodes[0]