Print version when panic (#3608)

* Print version when panic

* Fix tests.
This commit is contained in:
Sergei Pepyakin
2019-09-12 17:52:26 +02:00
committed by Gavin Wood
parent 634ca73e50
commit 981b3c79ee
3 changed files with 16 additions and 9 deletions
@@ -494,7 +494,7 @@ mod tests {
execute_with_proof_failure(&remote_client, 2, "Core_version");
// check that proof check doesn't panic even if proof is incorrect AND panic handler is set
panic_handler::set("TEST");
panic_handler::set("TEST", "1.2.3");
execute_with_proof_failure(&remote_client, 2, "Core_version");
}