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 authored and Bastian Köcher committed 2019-01-07 10:17:05 +01:00
1 parent 8948567c23
commit 409d495b42
2 files changed
+15 -10

No files matched your search

+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);