fix bug for revert (#1341)

* must pass sub_matches to function, so that could get `<num>` in revert
* revert should del current best index block, not prev block
This commit is contained in:
Aton
2019-01-07 17:17:05 +08:00
committed by Bastian Köcher
parent 8948567c23
commit 409d495b42
2 changed files with 15 additions and 10 deletions
+1 -1
View File
@@ -422,7 +422,7 @@ where
} else if let Some(sub_matches) = matches.subcommand_matches("revert") {
revert_chain::<F>(
get_db_path_for_subcommand(matches, sub_matches)?,
matches,
sub_matches,
spec
)?;
return Ok(Action::ExecutedInternally);