Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
mempool no gossip back #2778
mempool no gossip back #2778
Changes from 38 commits
06d5ffd
3904e81
7842608
167b720
fcc1a2b
aba2c93
6da7a91
3b10fe6
ca68847
4fbed56
cb1fca6
6933dd1
30d32dd
ef34f13
7d5415d
5a296eb
5174032
e086a3a
4fd49d2
8893dc1
ef84519
1c04fc6
5c4a5ce
df48b07
7953d8b
e08c050
0fd4789
681bde0
43bfa6a
e1cb280
b32b199
1f84487
bf3afc0
79acc63
53bb106
28d9ef5
525a430
6e6cbb0
c414f54
e3f376d
58d0cf7
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that we launched: #2187 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we skip this cache check stuff entirely if the sender is the RPC, ie ID=0 ? Ref #3414 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this guaranteed to be non nil ?
Also how does the tx end up in the txsMap but not the mempool?
We shouldn't call this the
cache
in the comment, sincemem.cache
is something else ...There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess the comment is confusing... if
ok
here means tx resides in the mempool (txsMap and txs hold transactions). But tx can be only in the cache and not present in the mempool (txsMap and txs). When we've committed a block, txs are removed from the mempool, but not from cache.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this possible? Seems like it shouldn't be, and if it is, like it'd be a race condition
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe rename the sthsthCb methods?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resCbFirstTime
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I think that would be a bit better. I think it's OK to merge without renaming even (as these methods are not exported).