This removes the warning in debug.log when a value fails to parse correctly.
Removes the last dependency from walletdb.cpp on CWallet.
I’m not sure this is a good idea, but the circular dependency being removed finally is nice.
This removes the warning in debug.log when a value fails to parse correctly.
Removes the last dependency from walletdb.cpp on CWallet.
I’m not sure this is a good idea, but the circular dependency being removed finally is nice.
This removes the warning in debug.log when a value fails to parse correctly.
Removes the last dependency from walletdb.cpp on CWallet.
904- continue;
905- }
906+ ssKey >> strType;
907+ if (!IsKeyType(strType) && strType != "hdchain")
908+ continue;
909+ }catch(...){continue;}
889- string strType, strErr;
890- bool fReadOK;
891- {
892- // Required in LoadKeyMetadata():
893- LOCK(dummyWallet.cs_wallet);
894- fReadOK = ReadKeyValue(&dummyWallet, ssKey, ssValue,
"key"
record (pub- & priv-key), is checked in ReadKeyValue()
with vchPubKey.IsValid()
, also, corrupt keys or a corrupt hdchain dataset will be detected now (log output) , but not after this PR.
NAK Looks like the method this PR modified no longer operates in the same way. ReadKeyValue() is no longer called, instead we call some callback if it’s registered.
It does not appear that this PR can be applied to the current code in any way. I believe it can be closed.