Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client/btc: Improve ReturnCoins processing #2425

Closed
wants to merge 1 commit into from

Conversation

dev-warrior777
Copy link
Contributor

@dev-warrior777 dev-warrior777 commented Jul 4, 2023

Improve processing for ReturnCoins.

original pr

@dev-warrior777 dev-warrior777 marked this pull request as ready for review July 4, 2023 11:14
Copy link
Member

@JoeGruffins JoeGruffins left a comment

Choose a reason for hiding this comment

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

Assuming nothing has changed from the other pr.

@dev-warrior777
Copy link
Contributor Author

Assuming nothing has changed from the other pr.

The same exactly

@dev-warrior777 dev-warrior777 marked this pull request as draft July 11, 2023 03:13
// return 'true' but do nothing so a warning is issued below.
//
// See Also: btc_test.go: RawRequest case: methodLockUnspent
func (wc *rpcClient) lockAllUnspent(unlock bool) error {
Copy link
Member

Choose a reason for hiding this comment

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

Why accept an unlock argument at all? Also, why name the method lock when it unlocks?

wc.log.Warn("attempting to lock all unspent outputs 'lockunspent false'")
}
var rpcReturn bool
err := wc.call(methodLockUnspent, anylist{unlock}, &rpcReturn)
Copy link
Member

Choose a reason for hiding this comment

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

Verified that this works for Dogecoin and Firo. Doesn't work for Zcash, but doesn't matter because #2553.

@buck54321
Copy link
Member

Reopen if it's important.

@buck54321 buck54321 closed this Oct 30, 2023
@dev-warrior777 dev-warrior777 deleted the coin_return branch March 6, 2024 07:24
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.

5 participants