From f149f09bf77bff7fc3a24bd4448ef8dea6e049a9 Mon Sep 17 00:00:00 2001 From: Ozan Akın Date: Mon, 18 Apr 2022 21:11:07 +0300 Subject: fix overwriting the reciprocated transaction during block acceptance --- src/handlers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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( // if the receiver is a bot, they will reciprocate if users_store.get(target).unwrap().is_bot { let transaction_id = calculate_transaction_id(target, source); - pending_transactions.insert( + holding.insert( transaction_id, Transaction { source: target.clone(), -- cgit v1.2.3-70-g09d2