mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
Merge f13e03cda2 into merged_master (Bitcoin PR #20584)
This commit is contained in:
commit
e5cb4cb00e
19 changed files with 29 additions and 29 deletions
|
|
@ -578,7 +578,7 @@ void CWallet::AddToSpends(const uint256& wtxid)
|
|||
{
|
||||
auto it = mapWallet.find(wtxid);
|
||||
assert(it != mapWallet.end());
|
||||
CWalletTx& thisTx = it->second;
|
||||
const CWalletTx& thisTx = it->second;
|
||||
if (thisTx.IsCoinBase()) // Coinbases don't spend anything!
|
||||
return;
|
||||
|
||||
|
|
@ -1062,7 +1062,7 @@ bool CWallet::AbandonTransaction(const uint256& hashTx)
|
|||
// Can't mark abandoned if confirmed or in mempool
|
||||
auto it = mapWallet.find(hashTx);
|
||||
assert(it != mapWallet.end());
|
||||
CWalletTx& origtx = it->second;
|
||||
const CWalletTx& origtx = it->second;
|
||||
if (origtx.GetDepthInMainChain() != 0 || origtx.InMempool()) {
|
||||
return false;
|
||||
}
|
||||
|
|
@ -3077,7 +3077,7 @@ static uint32_t GetLocktimeForNewTransaction(interfaces::Chain& chain, const uin
|
|||
return locktime;
|
||||
}
|
||||
|
||||
OutputType CWallet::TransactionChangeType(const Optional<OutputType>& change_type, const std::vector<CRecipient>& vecSend)
|
||||
OutputType CWallet::TransactionChangeType(const Optional<OutputType>& change_type, const std::vector<CRecipient>& vecSend) const
|
||||
{
|
||||
// If -changetype is specified, always use that change type.
|
||||
if (change_type) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue