diff options
author | Ozan Akın | 2022-04-18 21:11:07 +0300 |
---|---|---|
committer | GitHub | 2022-04-18 21:11:07 +0300 |
commit | f149f09bf77bff7fc3a24bd4448ef8dea6e049a9 (patch) | |
tree | 1fbac4f828b3ae6945c2599f402c5b2b2a296d60 | |
parent | 72b689bba80c372ba5e33d2b425ca31a1e6ddc9e (diff) | |
download | gradecoin-f149f09bf77bff7fc3a24bd4448ef8dea6e049a9.tar.gz gradecoin-f149f09bf77bff7fc3a24bd4448ef8dea6e049a9.tar.bz2 gradecoin-f149f09bf77bff7fc3a24bd4448ef8dea6e049a9.zip |
fix overwriting the reciprocated transaction during block acceptance
-rw-r--r-- | src/handlers.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/handlers.rs b/src/handlers.rs index ca0608c..055ca22 100644 --- a/src/handlers.rs +++ b/src/handlers.rs | |||
@@ -573,7 +573,7 @@ pub async fn propose_block( | |||
573 | // if the receiver is a bot, they will reciprocate | 573 | // if the receiver is a bot, they will reciprocate |
574 | if users_store.get(target).unwrap().is_bot { | 574 | if users_store.get(target).unwrap().is_bot { |
575 | let transaction_id = calculate_transaction_id(target, source); | 575 | let transaction_id = calculate_transaction_id(target, source); |
576 | pending_transactions.insert( | 576 | holding.insert( |
577 | transaction_id, | 577 | transaction_id, |
578 | Transaction { | 578 | Transaction { |
579 | source: target.clone(), | 579 | source: target.clone(), |