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

send tries to double spend coins #618

Open
rithvikvibhu opened this issue Mar 24, 2023 · 0 comments
Open

send tries to double spend coins #618

rithvikvibhu opened this issue Mar 24, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@rithvikvibhu
Copy link
Collaborator

Not sure how, but it seems when sending multiple sends from a wallet with limited (1) coins, the same coin is used to create subsequent sends and they get rejected by peers.

Tried reproducing in hsd, but could not (the second send used the first send's change):

# single fund
hsdgen 1
hsw-cli balance # 2000

# mine another to random address (not ours) for coinbase maturity
hsd-cli rpc generatetoaddress 1 $ADDR

# send twice to random addresses
hsw-cli send --value 15 --address $ADDR
hsw-cli send --value 25 --address $ADDR

# both are valid, can confirm by inspecting txs
hsd-cli mempool

Another side effect is pending txs (even successful ones) don't show up in the list. Could be related.

Bob v2.0.0 / hsd v5.0.1

@rithvikvibhu rithvikvibhu added the bug Something isn't working label Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant