@@ -86,7 +86,7 @@ def transaction_graph_test(self, size, n_tx_to_mine=None, start_input_txid='', e
86
86
unsigned_raw_tx = self .nodes [0 ].createrawtransaction (inputs , outputs )
87
87
signed_raw_tx = self .nodes [0 ].signrawtransactionwithwallet (unsigned_raw_tx )
88
88
tx_id .append (self .nodes [0 ].sendrawtransaction (signed_raw_tx ['hex' ]))
89
- tx_size .append (self .nodes [0 ].getrawmempool ( True )[ tx_id [- 1 ]] ['vsize' ])
89
+ tx_size .append (self .nodes [0 ].getmempoolentry ( tx_id [- 1 ]) ['vsize' ])
90
90
91
91
if tx_count in n_tx_to_mine :
92
92
# The created transactions are mined into blocks by batches.
@@ -109,10 +109,11 @@ def transaction_graph_test(self, size, n_tx_to_mine=None, start_input_txid='', e
109
109
self .log .info ('Checking descendants/ancestors properties of all of the in-mempool transactions...' )
110
110
for k , tx in enumerate (tx_id ):
111
111
self .log .debug ('Check transaction #{}.' .format (k ))
112
- assert_equal (self .nodes [0 ].getrawmempool (True )[tx ]['descendantcount' ], size - k )
113
- assert_equal (self .nodes [0 ].getrawmempool (True )[tx ]['descendantsize' ], sum (tx_size [k :size ]))
114
- assert_equal (self .nodes [0 ].getrawmempool (True )[tx ]['ancestorcount' ], k + 1 )
115
- assert_equal (self .nodes [0 ].getrawmempool (True )[tx ]['ancestorsize' ], sum (tx_size [0 :(k + 1 )]))
112
+ entry = self .nodes [0 ].getmempoolentry (tx )
113
+ assert_equal (entry ['descendantcount' ], size - k )
114
+ assert_equal (entry ['descendantsize' ], sum (tx_size [k :size ]))
115
+ assert_equal (entry ['ancestorcount' ], k + 1 )
116
+ assert_equal (entry ['ancestorsize' ], sum (tx_size [0 :(k + 1 )]))
116
117
117
118
def run_test (self ):
118
119
# Use batch size limited by DEFAULT_ANCESTOR_LIMIT = 25 to not fire "too many unconfirmed parents" error.
0 commit comments