decred / dcrd

Decred daemon in Go (golang).
https://decred.org
ISC License
740 stars 291 forks source link

mixpool: Remove unused exported methods #3344

Closed jrick closed 4 months ago

jrick commented 4 months ago

The MixPRs method has been modified to remove the query parameter, as it was only ever called with nil.

The RPC server no longer needs access to directly call RemoveConfirmedMixes. This same operation is already (and incorrectly) done by MixPRs, and it will need the eventual fix.

One exception: we are keeping RemoveConfirmedMixes which is still not used anywhere. This method behaves similarly to RemoveSpentPRs but removes mixes that completed with a confirmed coinjoin transaction matching any of the provided hashes. This may be used later by wallet to remove mixes that include transaction hashes in the merkle tree, while dcrd can just provide the mined transactions themselves and remove anything that double spends a PR UTXO.