From b18c32f30f3fa5b0d7a645835093a6d0c2b08e62 Mon Sep 17 00:00:00 2001 From: teor Date: Fri, 4 Jun 2021 14:42:15 +1000 Subject: [PATCH] Add the database format to the panic metadata (#2249) Seems like it might be useful as we add more stuff to the state. --- zebrad/src/application.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zebrad/src/application.rs b/zebrad/src/application.rs index 42db6e08..e087b6d8 100644 --- a/zebrad/src/application.rs +++ b/zebrad/src/application.rs @@ -13,7 +13,7 @@ use application::fatal_error; use std::process; use zebra_network::constants::PORT_IN_USE_ERROR; -use zebra_state::constants::LOCK_FILE_ERROR; +use zebra_state::constants::{DATABASE_FORMAT_VERSION, LOCK_FILE_ERROR}; /// Application state pub static APPLICATION: AppCell = AppCell::new(); @@ -222,6 +222,8 @@ impl Application for ZebradApp { ("version", app_version().to_string()), // config ("Zcash network", config.network.network.to_string()), + // constants + ("state version", DATABASE_FORMAT_VERSION.to_string()), ]; // git env vars can be skipped if there is no `.git` during the