mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Merge cf24152596 into merged_master (Bitcoin PR bitcoin/bitcoin#21206)
This commit is contained in:
commit
e6cdd99eec
17 changed files with 260 additions and 177 deletions
|
|
@ -53,7 +53,7 @@ bool AllInputsMine(const CWallet& wallet, const CTransaction& tx, const isminefi
|
|||
CAmountMap OutputGetCredit(const CWallet& wallet, const CTransaction& tx, const size_t out_index, const isminefilter& filter) {
|
||||
CAmountMap nCredit;
|
||||
if (wallet.IsMine(tx.vout[out_index]) & filter) {
|
||||
CWalletTx wtx(MakeTransactionRef(std::move(tx)));
|
||||
CWalletTx wtx(MakeTransactionRef(std::move(tx)), TxStateInactive{});
|
||||
CAmount credit = std::max<CAmount>(0, wtx.GetOutputValueOut(wallet, out_index));
|
||||
if (!MoneyRange(credit))
|
||||
throw std::runtime_error(std::string(__func__) + ": value out of range");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue