mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Merge 22025d06e5 into merged_master (Bitcoin PR bitcoin/bitcoin#28605)
This commit is contained in:
commit
8556ebfa64
19 changed files with 20 additions and 19 deletions
|
|
@ -1991,7 +1991,7 @@ static util::Result<CreatedTransactionResult> CreateTransactionInternal(
|
|||
}
|
||||
|
||||
// Before we return success, we assume any change key will be used to prevent
|
||||
// accidental re-use.
|
||||
// accidental reuse.
|
||||
for (auto& reservedest_ : reservedest) {
|
||||
reservedest_->KeepDestination();
|
||||
}
|
||||
|
|
@ -2045,7 +2045,7 @@ util::Result<CreatedTransactionResult> CreateTransaction(
|
|||
tmp_cc.m_avoid_partial_spends = true;
|
||||
|
||||
// ELEMENTS: only for unblinded transactions
|
||||
// Re-use the change destination from the first creation attempt to avoid skipping BIP44 indexes
|
||||
// Reuse the change destination from the first creation attempt to avoid skipping BIP44 indexes
|
||||
const int ungrouped_change_pos = txr_ungrouped.change_pos;
|
||||
if (ungrouped_change_pos != -1 && !blind_details) {
|
||||
const CAsset& asset = txr_ungrouped.tx->vout[ungrouped_change_pos].nAsset.GetAsset();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue