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 8
8
from .blocktools import (
9
9
COINBASE_MATURITY ,
10
10
)
11
+ from .messages import CTransaction
11
12
from .util import (
12
13
assert_equal ,
13
14
assert_greater_than ,
@@ -83,3 +84,8 @@ def send_batch(fee):
83
84
test_framework .log .debug ("Check that mempoolminfee is larger than minrelaytxfee" )
84
85
assert_equal (node .getmempoolinfo ()['minrelaytxfee' ], Decimal ('0.00001000' ))
85
86
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