aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/handlers.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/handlers.rs b/src/handlers.rs
index 6e30ae3..997867c 100644
--- a/src/handlers.rs
+++ b/src/handlers.rs
@@ -914,7 +914,7 @@ fn authorize_proposer(jwt_token: &str, user_pem: &str) -> Result<TokenData<Claim
914} 914}
915 915
916fn calculate_transaction_id(source: &str, target: &str) -> String { 916fn calculate_transaction_id(source: &str, target: &str) -> String {
917 let long_fingerprint = format!("{}{}", source, target); 917 let long_fingerprint = format!("{}{}{}", source, target, Utc::now());
918 let id = format!("{:x}", Sha256::digest(long_fingerprint.as_bytes())); 918 let id = format!("{:x}", Sha256::digest(long_fingerprint.as_bytes()));
919 id 919 id
920} 920}