Skip to content
Snippets Groups Projects
Commit 76f0ef28 authored by Svyatoslav Nikolsky's avatar Svyatoslav Nikolsky
Browse files

truncate long lines

parent 66f1eacd
Branches zcash_backports
No related merge requests found
Pipeline #36658 passed with stage
in 17 minutes and 33 seconds
......@@ -212,8 +212,10 @@ impl Protocol for SyncProtocol {
fn on_message(&mut self, command: &Command, payload: &Bytes) -> Result<(), Error> {
let version = self.context.info().version;
if command == &types::Inv::command() {
// we are synchronizing => we ask only for blocks with known headers => there are no useful blocks hashes for us
// we are synchronizing => we ignore all transactions until it is completed => there are no useful transactions hashes for us
// we are synchronizing => we ask only for blocks with known headers
// => there are no useful blocks hashes for us
// we are synchronizing
// => we ignore all transactions until it is completed => there are no useful transactions hashes for us
if self.state.synchronizing() {
return Ok(());
}
......
......@@ -17,7 +17,9 @@ pub fn rollback(cfg: Config, matches: &ArgMatches) -> Result<(), String> {
BlockRef::Number(block_ref.parse().map_err(|e| format!("Invalid block hash: {}", e))?)
};
let required_block_hash = cfg.db.block_header(block_ref.clone()).ok_or(format!("Block {:?} is unknown", block_ref))?.hash;
let required_block_hash = cfg.db
.block_header(block_ref.clone()).ok_or(format!("Block {:?} is unknown", block_ref),)?
.hash;
let genesis_hash = *cfg.network.genesis_block().hash();
let mut best_block_hash = cfg.db.best_block().hash;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment