Skip to content

multi: Remove unused params from funcs.#3610

Merged
davecgh merged 3 commits intodecred:masterfrom
jholdstock:unusedvars
Feb 5, 2026
Merged

multi: Remove unused params from funcs.#3610
davecgh merged 3 commits intodecred:masterfrom
jholdstock:unusedvars

Conversation

@jholdstock
Copy link
Member

No description provided.

// transaction will be discarded.
mp.removeStagedTransaction(tx)
utxoView, err := mp.fetchInputUtxos(txDesc.Tx, isTreasuryEnabled)
_, err := mp.fetchInputUtxos(txDesc.Tx, isTreasuryEnabled)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps this function call can also be removed?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would take reasoning through it to be 100% sure since it's been a while since I've been in this code, but I'm pretty sure the error is still needed because it is possible that the inputs are no longer valid. For example, unstaging happens when a new block shows up and that block might have invalidated the regular tx tree from which one of the staged transactions might be spending and therefore would no longer be valid to spend. There are other cases.

@davecgh davecgh changed the title Remove unused params from funcs multi: Remove unused params from funcs. Feb 5, 2026
@davecgh davecgh added this to the 2.2.0 milestone Feb 5, 2026
@davecgh davecgh merged commit 584c117 into decred:master Feb 5, 2026
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants