Skip to content

Commit

Permalink
Change the PubKeyInfo struct to show creation date
Browse files Browse the repository at this point in the history
  • Loading branch information
ssantos21 committed Sep 11, 2024
1 parent c83622a commit 28f2408
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
4 changes: 2 additions & 2 deletions server/src/endpoints/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ pub async fn info_keylist(statechain_entity: &State<StateChainEntity>) -> 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 {
Expand All @@ -115,7 +115,7 @@ pub async fn info_keylist(statechain_entity: &State<StateChainEntity>) -> 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);
Expand Down

0 comments on commit 28f2408

Please sign in to comment.