mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-05 10:42:13 +02:00
wallet/rpc: Use the default maxfeerate value as BTC/kB
This commit is contained in:
@@ -240,7 +240,7 @@ class SegWitTest(BitcoinTestFramework):
|
||||
tx.vin.append(CTxIn(COutPoint(int(txid2, 16), 0), b""))
|
||||
tx.vout.append(CTxOut(int(49.95 * COIN), CScript([OP_TRUE, OP_DROP] * 15 + [OP_TRUE]))) # Huge fee
|
||||
tx.calc_sha256()
|
||||
txid3 = self.nodes[0].sendrawtransaction(ToHex(tx))
|
||||
txid3 = self.nodes[0].sendrawtransaction(ToHex(tx), 0)
|
||||
assert tx.wit.is_null()
|
||||
assert txid3 in self.nodes[0].getrawmempool()
|
||||
|
||||
|
||||
@@ -183,6 +183,7 @@ class MempoolAcceptanceTest(BitcoinTestFramework):
|
||||
self.check_mempool_result(
|
||||
result_expected=[{'txid': tx.rehash(), 'allowed': True}],
|
||||
rawtxs=[tx.serialize().hex()],
|
||||
maxfeerate=0,
|
||||
)
|
||||
|
||||
self.log.info('A transaction with no outputs')
|
||||
|
||||
@@ -433,7 +433,7 @@ class WalletTest(BitcoinTestFramework):
|
||||
# Split into two chains
|
||||
rawtx = self.nodes[0].createrawtransaction([{"txid": singletxid, "vout": 0}], {chain_addrs[0]: node0_balance / 2 - Decimal('0.01'), chain_addrs[1]: node0_balance / 2 - Decimal('0.01')})
|
||||
signedtx = self.nodes[0].signrawtransactionwithwallet(rawtx)
|
||||
singletxid = self.nodes[0].sendrawtransaction(signedtx["hex"])
|
||||
singletxid = self.nodes[0].sendrawtransaction(signedtx["hex"], 0)
|
||||
self.nodes[0].generate(1)
|
||||
|
||||
# Make a long chain of unconfirmed payments without hitting mempool limit
|
||||
|
||||
Reference in New Issue
Block a user