Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
[wallet] [moveonly] Check non-null pindex before potentially referencing #10265
Conversation
fanquake
added
the
Wallet
label
Apr 23, 2017
|
Nice catch! |
|
utACK 6b816dc. I am surprised there were no more bug report about that. |
mchrostowski
commented
Apr 25, 2017
|
@kallewoof I would go with temptation and move the |
|
@mchrostowski Did you mean 1545 by any chance? |
|
Concept ACK |
|
This PR is now a MOVEONLY. 4 lines moved up to L1547-1550 from L1560-1563. |
kallewoof
changed the title from
[wallet] Check non-null pindex before potentially referencing
to
[wallet] [moveonly] Check non-null pindex before potentially referencing
Apr 25, 2017
|
utACK c36ea69 |
kallewoof commentedApr 23, 2017
•
Edited 1 time
-
kallewoof
Apr 24, 2017
The once-a-minute
LogPrintfinScanForWalletTransactionswill do a null-ref if it happens to hit the 60s mark right at the last block (wherepindexbecomesnull). This was moved up to the top of the block instead, where thewhile (pindex && !fAbortRescan)has checkedpindexfor us.