mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
fix tx rate
This commit is contained in:
parent
de33753f06
commit
493f4336a3
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user