aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOzan Akın2022-04-18 21:18:01 +0300
committerOzan Akın2022-04-18 21:18:13 +0300
commitf3073c4ed82d9b946048f387e7430d8d803cd114 (patch)
tree41e3e833c5cddb9973a639c2451a43976f4b69ab
parentf149f09bf77bff7fc3a24bd4448ef8dea6e049a9 (diff)
downloadgradecoin-f3073c4ed82d9b946048f387e7430d8d803cd114.tar.gz
gradecoin-f3073c4ed82d9b946048f387e7430d8d803cd114.tar.bz2
gradecoin-f3073c4ed82d9b946048f387e7430d8d803cd114.zip
add the forgotten `mut` to variable holding
-rw-r--r--src/handlers.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/handlers.rs b/src/handlers.rs
index 055ca22..23adffb 100644
--- a/src/handlers.rs
+++ b/src/handlers.rs
@@ -554,7 +554,7 @@ pub async fn propose_block(
554 coinbase_user.balance += BLOCK_REWARD; 554 coinbase_user.balance += BLOCK_REWARD;
555 } 555 }
556 556
557 let holding: HashMap<String, Transaction> = HashMap::new(); 557 let mut holding: HashMap<String, Transaction> = HashMap::new();
558 558
559 // Play out the transactions 559 // Play out the transactions
560 for fingerprint in &new_block.transaction_list { 560 for fingerprint in &new_block.transaction_list {