mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-01 11:11:15 +02:00
Merge #8153: [rpc] fundrawtransaction feeRate: Use BTC/kB
fa7f4f5
[rpc] fundrawtransaction feeRate: Use BTC/kB (MarcoFalke)faf82e8
[rpc] fundrawtransaction: Fix help text and interface (MarcoFalke)
This commit is contained in:
@ -681,9 +681,9 @@ class RawTransactionsTest(BitcoinTestFramework):
|
||||
inputs = []
|
||||
outputs = {self.nodes[2].getnewaddress() : 1}
|
||||
rawtx = self.nodes[3].createrawtransaction(inputs, outputs)
|
||||
result = self.nodes[3].fundrawtransaction(rawtx, )
|
||||
result2 = self.nodes[3].fundrawtransaction(rawtx, {"feeRate": 2000})
|
||||
result3 = self.nodes[3].fundrawtransaction(rawtx, {"feeRate": 10000})
|
||||
result = self.nodes[3].fundrawtransaction(rawtx) # uses min_relay_tx_fee (set by settxfee)
|
||||
result2 = self.nodes[3].fundrawtransaction(rawtx, {"feeRate": 2*min_relay_tx_fee})
|
||||
result3 = self.nodes[3].fundrawtransaction(rawtx, {"feeRate": 10*min_relay_tx_fee})
|
||||
assert_equal(result['fee']*2, result2['fee'])
|
||||
assert_equal(result['fee']*10, result3['fee'])
|
||||
|
||||
|
Reference in New Issue
Block a user