Repository navigation
[wallet] restore coinbase and confirmed/conflicted checks in SubmitMemoryPoolAndRelay() - #16557
Conversation
This check doesn't change mempool acceptance/relay behaviour, but reduces log spam.
|
Reported by @kallewoof ping @MarcoFalke and @ariard for review. |
ariard
left a comment
There was a problem hiding this comment.
Once wallet rebroadcast logic get reworked, I think log spams due to massive rebroadcast of confirmed txn should disappear, but yes that's not a thing for now.
| if (isAbandoned()) return false; | ||
| // Don't try to submit coinbase transactions. These would fail anyway but would | ||
| // cause log spam. | ||
| if (IsCoinBase()) return false; |
There was a problem hiding this comment.
Sorry for that. You may need also to restore the GetDepthInMainChain, if you follow what @kallewoof was saying non-coinbase confirmed txn were also in log spams.
There was a problem hiding this comment.
No, I don't believe non-coinbase confirmed txn were in log spams but there were thousands so I can't easily verify.
Edit: With patch it was easily verifiable that non-coinbase txs also appear.
|
ACK 214c4ec |
|
I applied this patch to my node and restarted it.
The debug.log file is more or less dominated by these messages, although it may be less severe after the patch. |
|
Did you try to run without #15713 but with |
|
@ariard No. If I am the only one seeing these messages, however, this may be a problem with signet. No clue why signet would cause this, though, tbh. |
|
#15713 also changed the logging, IIRC. So the bug can be fixed by either (or both):
|
|
@kallewoof is not a problem with signet, it's a problem with my PR. I've played a bit with a regtest node on a commit before it. If I generate thousands of coinbase txn, every time we hit While waiting for this logic to be rationalized, to avoid spam we can move log print to Note: IMO, comment "only rebroadcast unconfirmed txes older than 5 minutes before the last block was found" in |
…Relay() Restores the confirmed/conflicted tx check removed in 8753f56. There should be no external behaviour change (these txs would not get accepted to the mempool anyway), but not having the check in the wallet causes log spam. Also adds a comment to ResentWalletTransactions() that confirmed/conflicted tx check is done in SubmitMemoryPoolAndRelay().
|
I've restored the Also clarified comment in |
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
|
ACK c8b53c3 (non-doc changes are mostly a git revert 8753f56) Show signature and timestampSignature: Timestamp of file with hash |
|
utACK c8b53c3 |
|
ACK Applied this to my node. Ran for awhile. No spam. Tried sending a tx. Message appeared as appropriately in log. I don't think I am able to test the |
| // last block was found | ||
| // Attempt to rebroadcast all txes more than 5 minutes older than | ||
| // the last block. SubmitMemoryPoolAndRelay() will not rebroadcast | ||
| // any confirmed or conflicting txs. |
There was a problem hiding this comment.
Why not move the coinbase check here then?
There was a problem hiding this comment.
I agree that would make sense - the other callers of SubmitMemoryPoolAndRelay() do checks before calling into SubmitMemoryPoolAndRelay(). However, this PR is just to restore previous behaviour. There are a few other PRs in progress on the node/wallet interface, so let's keep the existing behaviour and look for ways to tidy it up later.
…ks in SubmitMemoryPoolAndRelay() c8b53c3 [wallet] Restore confirmed/conflicted tx check in SubmitMemoryPoolAndRelay() (John Newbery) 214c4ec [wallet] restore coinbase check in SubmitMemoryPoolAndRelay() (John Newbery) Pull request description: These checks don't change mempool acceptance/relay behaviour, but reduce log spam. ACKs for top commit: MarcoFalke: ACK c8b53c3 (non-doc changes are mostly a git revert 8753f56) ariard: utACK c8b53c3 Tree-SHA512: f928573ad68d2f70ac69a84b57f352d255dccd1942097cc664f130fcbdcdd7364bc52c43b9157e65ebbaaebbe93586c6e8386f24361b27478e0a23a445677672
…hecks in SubmitMemoryPoolAndRelay() Summary: [wallet] Restore confirmed/conflicted tx check in SubmitMemoryPoolAndRelay() (John Newbery) [wallet] restore coinbase check in SubmitMemoryPoolAndRelay() (John Newbery) Pull request description: These checks don't change mempool acceptance/relay behaviour, but reduce log spam. https://github.com/bitcoin/bitcoin/pull/16557/files --- Backport of Core [[bitcoin/bitcoin#16557 | PR16557]] Test Plan: ninja check check-functional Reviewers: #bitcoin_abc, Fabien Reviewed By: #bitcoin_abc, Fabien Differential Revision: https://reviews.bitcoinabc.org/D7043
These checks don't change mempool acceptance/relay behaviour, but reduce log spam.