Merge 98ad249b69 into merged_master (Bitcoin PR bitcoin/bitcoin#31277)

This commit is contained in:
ivanlele 2026-04-03 11:03:22 +00:00
commit f1997989a6
No known key found for this signature in database
3 changed files with 6 additions and 2 deletions

View file

@ -67,6 +67,10 @@ hardware implementations will typically implement multiple roles simultaneously.
input a PSBT, adds UTXO, key, and script data to inputs and outputs that miss
it, and optionally signs inputs. Where possible it also finalizes the partial
signatures.
- **`descriptorprocesspsbt` (Updater, Signer, Finalizer)** is a node RPC that takes
as input a PSBT and a list of descriptors. It updates SegWit inputs with
information available from the UTXO set and the mempool and signs the inputs using
the provided descriptors. Where possible it also finalizes the partial signatures.
- **`utxoupdatepsbt` (Updater)** is a node RPC that takes a PSBT and updates it
to include information available from the UTXO set (works only for SegWit
inputs).

View file

@ -134,7 +134,7 @@ class EphemeralDustTest(BitcoinTestFramework):
sats_fee = 1
dusty_tx = self.wallet.create_self_transfer_multi(fee_per_output=sats_fee, version=3)
self.add_output_to_create_multi_result(dusty_tx)
assert_equal(int(COIN * dusty_tx["fee"]), sats_fee) # has fees
assert_equal(dusty_tx["fee"], sats_fee) # has fees (ELEMENTS: fee is in sats, not BTC)
assert_greater_than(dusty_tx["tx"].vout[0].nValue.getAmount(), 330) # main output is not dust
assert_equal(dusty_tx["tx"].vout[-1].nValue.getAmount(), 1) # added one is dust (1 sat, below threshold)

View file

@ -362,7 +362,7 @@ class MiniWallet:
coinbase=False,
confirmations=0,
) for i in range(len(tx.vout) - ( 1 if fee else 0 ))], # ELEMENTS remove fee output only if fee is non-zero
"fee": Decimal(fee) / COIN, # ELEMENTS: fee is in sats here, convert to BTC
"fee": fee,
"txid": txid,
"wtxid": tx.getwtxid(),
"hex": tx.serialize().hex(),