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

wallet: don't add coinbase txs to the pending list. #861

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

nodech
Copy link
Contributor

@nodech nodech commented Oct 18, 2023

Closes #791

@nodech nodech added this to the hsd 7.0.0 milestone Oct 18, 2023
@nodech nodech added bug general - Something isn't working wallet part of the codebase patch Release version labels Oct 18, 2023
@nodech nodech force-pushed the wallet-unconfirmed-cb branch from 7b8089b to 1b78312 Compare October 23, 2023 09:40
@nodech nodech marked this pull request as ready for review October 23, 2023 09:40
@coveralls
Copy link

Coverage Status

coverage: 68.587% (+0.04%) from 68.549% when pulling 1b78312 on nodech:wallet-unconfirmed-cb into bb7da60 on handshake-org:master.

const pendingBefore = await wallet.getPending();
assert.strictEqual(pendingBefore.length, 0);

assert(cbTX.isCoinbase());
Copy link
Member

Choose a reason for hiding this comment

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

nit: can move above pendingBefore I think

@nodech nodech force-pushed the wallet-unconfirmed-cb branch from 1b78312 to 84ec945 Compare October 27, 2023 08:48
@nodech nodech merged commit 6446828 into handshake-org:master Oct 31, 2023
6 checks passed
@nodech nodech deleted the wallet-unconfirmed-cb branch October 31, 2023 10:30
@nodech nodech mentioned this pull request Nov 29, 2024
@nodech nodech mentioned this pull request Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug general - Something isn't working patch Release version wallet part of the codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TXDB should remove "unconfirmed" coinbase TXs
3 participants