@@ -136,7 +136,7 @@ def test_msg_mempool(self):
136136 filter_peer = P2PBloomFilter ()
137137
138138 self .log .debug ("Create a tx relevant to the peer before connecting" )
139- txid , _ = self .wallet .send_to (from_node = self .nodes [0 ], scriptPubKey = filter_peer .watch_script_pubkey , amount = 9 * COIN )
139+ txid = self .wallet .send_to (from_node = self .nodes [0 ], scriptPubKey = filter_peer .watch_script_pubkey , amount = 9 * COIN )[ "txid" ]
140140
141141 self .log .debug ("Send a mempool msg after connecting and check that the tx is received" )
142142 self .nodes [0 ].add_p2p_connection (filter_peer )
@@ -183,14 +183,14 @@ def test_filter(self, filter_peer):
183183
184184 self .log .info ('Check that we receive a tx if the filter matches a mempool tx' )
185185 filter_peer .merkleblock_received = False
186- txid , _ = self .wallet .send_to (from_node = self .nodes [0 ], scriptPubKey = filter_peer .watch_script_pubkey , amount = 9 * COIN )
186+ txid = self .wallet .send_to (from_node = self .nodes [0 ], scriptPubKey = filter_peer .watch_script_pubkey , amount = 9 * COIN )[ "txid" ]
187187 filter_peer .wait_for_tx (txid )
188188 assert not filter_peer .merkleblock_received
189189
190190 self .log .info ('Check that after deleting filter all txs get relayed again' )
191191 filter_peer .send_and_ping (msg_filterclear ())
192192 for _ in range (5 ):
193- txid , _ = self .wallet .send_to (from_node = self .nodes [0 ], scriptPubKey = getnewdestination ()[1 ], amount = 7 * COIN )
193+ txid = self .wallet .send_to (from_node = self .nodes [0 ], scriptPubKey = getnewdestination ()[1 ], amount = 7 * COIN )[ "txid" ]
194194 filter_peer .wait_for_tx (txid )
195195
196196 self .log .info ('Check that request for filtered blocks is ignored if no filter is set' )
0 commit comments