aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/handlers.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/handlers.rs b/src/handlers.rs
index 6619924..01e2c4f 100644
--- a/src/handlers.rs
+++ b/src/handlers.rs
@@ -386,7 +386,7 @@ pub async fn propose_block(
386 token: String, 386 token: String,
387 db: Db, 387 db: Db,
388) -> Result<impl warp::Reply, warp::Rejection> { 388) -> Result<impl warp::Reply, warp::Rejection> {
389 warn!("New block proposal: {:?}", &new_block); 389 warn!("[{}] New block proposal: {:?}", db.config.name, &new_block);
390 390
391 // Check if there are enough transactions in the block 391 // Check if there are enough transactions in the block
392 let block_transaction_count = db.config.block_transaction_count; 392 let block_transaction_count = db.config.block_transaction_count;
@@ -543,7 +543,7 @@ pub async fn propose_block(
543 } 543 }
544 544
545 // All clear, block accepted! 545 // All clear, block accepted!
546 warn!("ACCEPTED BLOCK {:?}", new_block); 546 warn!("[{}] ACCEPTED BLOCK {:?}", db.config.name, new_block);
547 547
548 // Scope the read guards 548 // Scope the read guards
549 { 549 {
@@ -648,7 +648,7 @@ pub async fn propose_transaction(
648 token: String, 648 token: String,
649 db: Db, 649 db: Db,
650) -> Result<impl warp::Reply, warp::Rejection> { 650) -> Result<impl warp::Reply, warp::Rejection> {
651 warn!("New transaction proposal: {:?}", &new_transaction); 651 warn!("[{}] New transaction proposal: {:?}", db.config.name, &new_transaction);
652 652
653 let users_store = db.users.read(); 653 let users_store = db.users.read();
654 654
@@ -815,7 +815,7 @@ pub async fn propose_transaction(
815 )); 815 ));
816 } 816 }
817 817
818 warn!("ACCEPTED TRANSACTION {:?}", new_transaction); 818 warn!("[{}] ACCEPTED TRANSACTION {:?}", db.config.name, new_transaction);
819 819
820 let mut transactions = db.pending_transactions.write(); 820 let mut transactions = db.pending_transactions.write();
821 821