-
Notifications
You must be signed in to change notification settings - Fork 714
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
[Refactor] Add LookupBlockIndex #2715
Conversation
Adapted from btc@92fabcd443322dcfdf2b3477515fae79e8647d86
9c36e20
to
58779a0
Compare
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.
Nice. ACK 58779a0
nits tackled, moved |
3f08f6d
to
dc930d4
Compare
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 dc930d4
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.
ACK dc930d4
…ernalBlockFile 5ca8e22 QA: Fix cs_main lock in evo_deterministicmns_tests (random-zebra) 3efd1b5 Trivial: fix wrong function name in logs (random-zebra) 9b4aacf BUG: fix missing cs_main lock in AppInitMain and LoadExternalBlockFile (random-zebra) Pull request description: #2715 introduced a locking assertion in `InsertBlockIndex`, which is currently failing (with debug enabled) because `cs_main` is not held during the blockindex load in `AppInitMain` (bitcoin@c651df8). Also, `LookupBlockIndex` is being called without cs_main in `LoadExternalBlockFile` (bitcoin@f814a3e). Finally there's a couple of missing locks in rest.cpp (which can be removed later, porting bitcoin#12151). ACKs for top commit: Fuzzbawls: ACK 5ca8e22 Fuzzbawls: ACK 5ca8e22 furszy: Code ACK 5ca8e22 furszy: k, ACK 5ca8e22 and merging.. Tree-SHA512: 8775f40ffee94ca804fccffac1447bc258d6f810c601c2a8a27f3d5314c526881460a0fece903317fb9073f2d08961c3c16e9fb2a74c285db4d4b6e6028c0981
Adaptation of 92fabcd for our sources.