File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -87,9 +87,18 @@ def run_test(self):
87
87
print "too-long-ancestor-chain successfully rejected"
88
88
89
89
# Check that prioritising a tx before it's added to the mempool works
90
+ # First clear the mempool by mining a block.
90
91
self .nodes [0 ].generate (1 )
92
+ sync_blocks (self .nodes )
93
+ assert_equal (len (self .nodes [0 ].getrawmempool ()), 0 )
94
+ # Prioritise a transaction that has been mined, then add it back to the
95
+ # mempool by using invalidateblock.
91
96
self .nodes [0 ].prioritisetransaction (chain [- 1 ], 0 , 2000 )
92
97
self .nodes [0 ].invalidateblock (self .nodes [0 ].getbestblockhash ())
98
+ # Keep node1's tip synced with node0
99
+ self .nodes [1 ].invalidateblock (self .nodes [1 ].getbestblockhash ())
100
+
101
+ # Now check that the transaction is in the mempool, with the right modified fee
93
102
mempool = self .nodes [0 ].getrawmempool (True )
94
103
95
104
descendant_fees = 0
You can’t perform that action at this time.
0 commit comments