Merge 6aff3477349e51180cf4f62784d07a4d4ce00603 into 5f4422d68dc3530c353af1f87499de1c864b60ad

This commit is contained in:
Chandra Pratap 2025-03-17 09:50:15 +07:00 committed by GitHub
commit e9ee594dfa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -184,7 +184,9 @@ class ChainstateWriteCrashTest(BitcoinTestFramework):
assert_equal(nodei_utxo_hash, node3_utxo_hash)
def generate_small_transactions(self, node, count, utxo_list):
FEE = 1000 # TODO: replace this with node relay fee based calculation
relay_fee_btc = float(node.rpc.getmempoolinfo()["minrelaytxfee"])
relay_fee_sat = int(relay_fee_btc * COIN)
FEE = relay_fee_sat
num_transactions = 0
random.shuffle(utxo_list)
while len(utxo_list) >= 2 and num_transactions < count: