File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,8 @@ def run_test(self):
94
94
assert_equal (total_fee_old , self .nodes [0 ].getmempoolinfo ()['total_fee' ])
95
95
assert_equal (total_fee_old , sum (v ['fees' ]['base' ] for k , v in self .nodes [0 ].getrawmempool (verbose = True ).items ()))
96
96
97
- tx_creation_time = self .nodes [0 ].getmempoolentry (txid = last_txid )['time' ]
97
+ last_entry = self .nodes [0 ].getmempoolentry (txid = last_txid )
98
+ tx_creation_time = last_entry ['time' ]
98
99
assert_greater_than_or_equal (tx_creation_time , tx_creation_time_lower )
99
100
assert_greater_than_or_equal (tx_creation_time_higher , tx_creation_time )
100
101
@@ -122,8 +123,8 @@ def run_test(self):
122
123
fees = self .nodes [0 ].getmempoolentry (txid = last_txid )['fees' ]
123
124
assert_equal (fees ['base' ] + Decimal ('0.00001000' ), fees ['modified' ])
124
125
125
- self .log .debug ('Verify time is loaded correctly' )
126
- assert_equal (tx_creation_time , self .nodes [0 ].getmempoolentry (txid = last_txid )[ 'time' ] )
126
+ self .log .debug ('Verify all fields are loaded correctly' )
127
+ assert_equal (last_entry , self .nodes [0 ].getmempoolentry (txid = last_txid ))
127
128
128
129
# Verify accounting of mempool transactions after restart is correct
129
130
if self .is_sqlite_compiled ():
You can’t perform that action at this time.
0 commit comments