abort snapshot restoration faster (#3356)
* abort snapshot restoration faster * flag-checking tests
This commit is contained in:
committed by
Gav Wood
parent
0c302376b6
commit
37f49aac1b
@@ -45,6 +45,8 @@ pub enum Error {
|
||||
MissingCode(Vec<H256>),
|
||||
/// Unrecognized code encoding.
|
||||
UnrecognizedCodeState(u8),
|
||||
/// Restoration aborted.
|
||||
RestorationAborted,
|
||||
/// Trie error.
|
||||
Trie(TrieError),
|
||||
/// Decoder error.
|
||||
@@ -67,6 +69,7 @@ impl fmt::Display for Error {
|
||||
a pruned database. Please re-run with the --pruning archive flag."),
|
||||
Error::MissingCode(ref missing) => write!(f, "Incomplete snapshot: {} contract codes not found.", missing.len()),
|
||||
Error::UnrecognizedCodeState(state) => write!(f, "Unrecognized code encoding ({})", state),
|
||||
Error::RestorationAborted => write!(f, "Snapshot restoration aborted."),
|
||||
Error::Io(ref err) => err.fmt(f),
|
||||
Error::Decoder(ref err) => err.fmt(f),
|
||||
Error::Trie(ref err) => err.fmt(f),
|
||||
|
||||
Reference in New Issue
Block a user