-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Refactor mempool.dat to be extensible, and store missing info #9422
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
Conversation
|
Needs rebase. |
|
Fixed serialisation params. There are conflicts now - may I rebase? |
904552b to
e98e4d2
Compare
|
Rebased. |
93e033d to
b14300f
Compare
kallewoof
left a 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.
utACK b14300f
| try { | ||
| uint64_t version; | ||
| file >> version; | ||
| if (version != MEMPOOL_DUMP_VERSION) { |
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.
The implications seem to be minor, but this means all bitcoin nodes prior to this PR being merged will drop all their mempools on startup. Is that okay? Would it be possible / worth it to load version=1 mempools too? Above comment by @sipa seems to indicate this was never used, in which case I think we should simply say MEMPOOL_DUMP_VERSION = 1 above.
b14300f to
5d25b27
Compare
5d25b27 to
8d309b8
Compare
TheBlueMatt
left a 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.
I'm not actually sure we want to save mempoolminfee - if you just restarted the practical mempoolminfee on the network may be much lower....it puts you in a state of downloading lots of transactions only pretty briefly (assuming any of your peers aren't limiting their mempool, which they almost always are, so mempoolminfee on most nodes never actually leaves 0 anyway). Probably not worth a incompatible version just for this, IMO, though if we had other things we wanted to store we could revisit.
|
I'm not sure this is worth it right now; we can revisit if there is critical information to add to the mempool file? |
8d309b8 to
1d34442
Compare
|
Thee seems to be no agreement to do this right now. |
Should fix #9103