File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
test/functional/test_framework Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 88from .blocktools import (
99 COINBASE_MATURITY ,
1010)
11+ from .messages import CTransaction
1112from .util import (
1213 assert_equal ,
1314 assert_greater_than ,
@@ -83,3 +84,8 @@ def send_batch(fee):
8384 test_framework .log .debug ("Check that mempoolminfee is larger than minrelaytxfee" )
8485 assert_equal (node .getmempoolinfo ()['minrelaytxfee' ], Decimal ('0.00001000' ))
8586 assert_greater_than (node .getmempoolinfo ()['mempoolminfee' ], Decimal ('0.00001000' ))
87+
88+ def tx_in_orphanage (node , tx : CTransaction ) -> bool :
89+ """Returns true if the transaction is in the orphanage."""
90+ found = [o for o in node .getorphantxs (verbosity = 1 ) if o ["txid" ] == tx .rehash () and o ["wtxid" ] == tx .getwtxid ()]
91+ return len (found ) == 1
You can’t perform that action at this time.
0 commit comments