Minor tweak to logging. Fix CLI help.
This commit is contained in:
parent
e4f0c0b215
commit
4304f4a2a4
@ -570,9 +570,9 @@ impl BlockChain {
|
|||||||
if let BlockLocation::BranchBecomingCanonChain(ref d) = info.location {
|
if let BlockLocation::BranchBecomingCanonChain(ref d) = info.location {
|
||||||
info!(target: "reorg", "Reorg to {} ({} {} {})",
|
info!(target: "reorg", "Reorg to {} ({} {} {})",
|
||||||
Colour::Yellow.bold().paint(format!("#{} {}", info.number, info.hash)),
|
Colour::Yellow.bold().paint(format!("#{} {}", info.number, info.hash)),
|
||||||
Colour::Red.paint(d.retracted.iter().fold(String::new(), |acc, h| format!("{} {}", acc, h))),
|
Colour::Red.paint(d.retracted.iter().join(" ")),
|
||||||
Colour::White.paint(format!("#{} {}", d.ancestor, self.block_details(&d.ancestor).expect("`ancestor` is in the route; qed").number)),
|
Colour::White.paint(format!("#{} {}", self.block_details(&d.ancestor).expect("`ancestor` is in the route; qed").number, d.ancestor)),
|
||||||
Colour::Green.paint(d.enacted.iter().fold(String::new(), |acc, h| format!("{} {}", acc, h)))
|
Colour::Green.paint(d.enacted.iter().join(" "))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,8 +48,8 @@ Operating Options:
|
|||||||
[default: 3600].
|
[default: 3600].
|
||||||
--chain CHAIN Specify the blockchain type. CHAIN may be either a
|
--chain CHAIN Specify the blockchain type. CHAIN may be either a
|
||||||
JSON chain specification file or olympic, frontier,
|
JSON chain specification file or olympic, frontier,
|
||||||
homestead, mainnet, morden, homestead-dogmatic, or
|
homestead, mainnet, morden, classic or testnet
|
||||||
testnet [default: homestead].
|
[default: homestead].
|
||||||
-d --db-path PATH Specify the database & configuration directory path
|
-d --db-path PATH Specify the database & configuration directory path
|
||||||
[default: $HOME/.parity].
|
[default: $HOME/.parity].
|
||||||
--keys-path PATH Specify the path for JSON key files to be found
|
--keys-path PATH Specify the path for JSON key files to be found
|
||||||
|
Loading…
Reference in New Issue
Block a user