aboutsummaryrefslogtreecommitdiff
path: root/doc/release-notes-23093.md
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2021-08-17 18:07:14 -0400
committerCarl Dong <contact@carldong.me>2021-12-06 15:56:50 -0500
commitae9121f958a4124ea6238cad0c3f2acb8b9eb4bb (patch)
treeaa63441abf035cb5c00ce9e48955f8d445b85803 /doc/release-notes-23093.md
parentcbac28b72f5b831f6f84b7628f73e85627af3d94 (diff)
node/chainstate: Decouple from stringy errors
This allows us to separate the initialization code from translations and error reporting. This change changes the caller semantics of LoadChainstate quite drastically. To see that this change doesn't change behaviour, observe that: 1. Prior to this change, LoadChainstate returned false only in the "bad genesis block" failure case (by returning InitError()), indicating that the caller should immediately bail. After this change, the corresponding ERROR_BAD_GENESIS_BLOCK handler in src/init.cpp maintains behavioue by also bailing immediately. 2. The failed_* temporary booleans were only used to break out of the outer do/while(false) loop. They can therefore be safely removed.
Diffstat (limited to 'doc/release-notes-23093.md')
0 files changed, 0 insertions, 0 deletions