Skip to content

Commit 3e50d13

Browse files
darosiorismaelsadeeq
authored andcommitted
[test]: keep the list of confirmed utxos up to date in RBF test
1 parent a6e8133 commit 3e50d13

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

test/functional/feature_fee_estimation.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,11 @@ def sanity_check_rbf_estimates(self, utxos):
265265
# Broadcast 5 low fee transaction which don't need to
266266
for _ in range(5):
267267
tx = make_tx(self.wallet, utxos.pop(0), low_feerate)
268+
self.confutxo.append({
269+
"txid": tx["txid"],
270+
"vout": 0,
271+
"value": Decimal(tx["tx"].vout[0].nValue) / COIN
272+
})
268273
txs.append(tx)
269274
batch_send_tx = [node.sendrawtransaction.get_request(tx["hex"]) for tx in txs]
270275
for n in self.nodes:
@@ -278,12 +283,16 @@ def sanity_check_rbf_estimates(self, utxos):
278283
while len(utxos_to_respend) > 0:
279284
u = utxos_to_respend.pop(0)
280285
tx = make_tx(self.wallet, u, high_feerate)
286+
self.confutxo.append({
287+
"txid": tx["txid"],
288+
"vout": 0,
289+
"value": Decimal(tx["tx"].vout[0].nValue) / COIN
290+
})
281291
node.sendrawtransaction(tx["hex"])
282292
txs.append(tx)
283293
dec_txs = [res["result"] for res in node.batch([node.decoderawtransaction.get_request(tx["hex"]) for tx in txs])]
284294
self.wallet.scan_txs(dec_txs)
285295

286-
287296
# Mine the last replacement txs
288297
self.sync_mempools(wait=0.1, nodes=[node, miner])
289298
self.generate(miner, 1)

0 commit comments

Comments
 (0)