Add Error message when sync is still in progress. (#9475)
* closes #9188 * check_for_unavailable_block in eth_getTransactionByHash eth_getTransactionByBlockHashAndIndex eth_getTransactionByBlockNumberAndIndex eth_getTransactionReceipt * check for unavailable block in eth_getBlockByNumber * corrected checks for unavailable_block * check for block gaps in db * corrected error messages * corrected error information * added allow-empty-block-result cli flag * address grumbles * --jsonrpc-allow-missing-blocks * fix tests * added checks to block_transaction_count_by_hash block_transaction_count_by_number block_uncles_count_by_hash block_uncles_count_by_number uncle_by_block_hash_and_index uncle_by_block_number_and_index fix PR grumbles * Update parity/cli/mod.rs revert config name Co-Authored-By: seunlanlege <seunlanlege@gmail.com> * Update parity/cli/mod.rs revert cli arg Co-Authored-By: seunlanlege <seunlanlege@gmail.com> * Apply suggestions from code review revert config name Co-Authored-By: seunlanlege <seunlanlege@gmail.com> * fix PR grumbles * fix more PR grumbles
This commit is contained in:
@@ -370,6 +370,7 @@ impl Configuration {
|
||||
miner_extras: self.miner_extras()?,
|
||||
stratum: self.stratum_options()?,
|
||||
update_policy: update_policy,
|
||||
allow_missing_blocks: self.args.flag_jsonrpc_allow_missing_blocks,
|
||||
mode: mode,
|
||||
tracing: tracing,
|
||||
fat_db: fat_db,
|
||||
@@ -1390,6 +1391,7 @@ mod tests {
|
||||
let args = vec!["parity"];
|
||||
let conf = parse(&args);
|
||||
let mut expected = RunCmd {
|
||||
allow_missing_blocks: false,
|
||||
cache_config: Default::default(),
|
||||
dirs: Default::default(),
|
||||
spec: Default::default(),
|
||||
|
||||
Reference in New Issue
Block a user