From 28f2408578de17427e80f3b75fafc1e2eb1274ec Mon Sep 17 00:00:00 2001 From: "S. Santos" Date: Wed, 11 Sep 2024 11:00:44 -0300 Subject: [PATCH] Change the PubKeyInfo struct to show creation date --- lib/src/utils.rs | 2 +- server/src/endpoints/utils.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/utils.rs b/lib/src/utils.rs index 91f051bf..c9b1e549 100644 --- a/lib/src/utils.rs +++ b/lib/src/utils.rs @@ -27,7 +27,7 @@ pub struct InfoConfig { pub struct PubKeyInfo { pub server_pubkey: String, pub tx_n: u32, - pub updated_at: String, + pub created_at: String, } #[derive(Debug, Serialize, Deserialize)] diff --git a/server/src/endpoints/utils.rs b/server/src/endpoints/utils.rs index 982232c3..df9d98e9 100644 --- a/server/src/endpoints/utils.rs +++ b/server/src/endpoints/utils.rs @@ -105,7 +105,7 @@ pub async fn info_keylist(statechain_entity: &State) -> status let mut keyinfo: mercurylib::utils::PubKeyInfo = mercurylib::utils::PubKeyInfo { server_pubkey: server_pubkey.to_string(), tx_n: 0, - updated_at: "".to_string(), + created_at: "".to_string(), }; for row_sig in &rows_sigs { @@ -115,7 +115,7 @@ pub async fn info_keylist(statechain_entity: &State) -> status if statechain_id == statechain_id_sig { keyinfo.tx_n = tx_n_i as u32; - keyinfo.updated_at = updated_at; + keyinfo.created_at = updated_at; } } result.push(keyinfo);