diff options
author | Carl Dong <contact@carldong.me> | 2021-08-17 18:07:14 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2021-12-06 15:56:50 -0500 |
commit | ae9121f958a4124ea6238cad0c3f2acb8b9eb4bb (patch) | |
tree | aa63441abf035cb5c00ce9e48955f8d445b85803 /doc/release-notes-23093.md | |
parent | cbac28b72f5b831f6f84b7628f73e85627af3d94 (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