[walletdb] Fix syntax error in key parser#7381
Conversation
There was a problem hiding this comment.
Where does this value come from? If from berkeleydb itself: Is it documented, or available as some kind of constant?
There was a problem hiding this comment.
db_dump ~/.bitcoin/regtest/wallet.dat
https://docs.oracle.com/cd/E17275_01/html/api_reference/C/db_dump.html
http://web.deu.edu.tr/doc/berkeley/berkeleyDB/ref/dumpload/format.html
There was a problem hiding this comment.
We could probably make it a constant for our sakes anyway.
|
Fixes #7379 I suppose? |
|
utACK |
fa6d4cc [walletdb] Fix syntax error in key parser (MarcoFalke)
There are other issues with salvagewallet, so I can't guarantee that. |
Right, I meant the specific problem. It's never possible to guarantee that you've solved all bugs. If only... |
|
Nice catch! |
Github-Pull: bitcoin#7381 Rebased-From: fa6d4cc
Github-Pull: bitcoin#7381 Rebased-From: fa6d4cc (cherry picked from commit b0c97ce)
This needs backport to all versions of bitcoin/altcoins after merge.
A dump may look like:
So the current parser gives us odd data like:
keyHex="DATA=END";valueHex="";(sometimes the other way round)