aboutsummaryrefslogtreecommitdiffstats
path: root/src/handlers.rs
diff options
context:
space:
mode:
authorYigit Sever2021-04-14 00:34:39 +0300
committerYigit Sever2021-04-14 00:34:39 +0300
commitfc9aa0c69b11f6ec93255b984839e0c2418a63cf (patch)
treece51fc4cbf82ec1e375d5cf33a54c4ba4d0b1bbe /src/handlers.rs
parentec6bcf166032d0820716189308020c2b2d1faa67 (diff)
downloadgradecoin-fc9aa0c69b11f6ec93255b984839e0c2418a63cf.tar.gz
gradecoin-fc9aa0c69b11f6ec93255b984839e0c2418a63cf.tar.bz2
gradecoin-fc9aa0c69b11f6ec93255b984839e0c2418a63cf.zip
Add empty block test
Diffstat (limited to 'src/handlers.rs')
-rw-r--r--src/handlers.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/handlers.rs b/src/handlers.rs
index 1189b35..362a341 100644
--- a/src/handlers.rs
+++ b/src/handlers.rs
@@ -122,6 +122,8 @@ pub async fn authorized_propose_block(
122 122
123 let users_store = db.users.read(); 123 let users_store = db.users.read();
124 124
125 println!("{:?}", &new_block);
126
125 let internal_user = match users_store.get(&new_block.transaction_list[0]) { 127 let internal_user = match users_store.get(&new_block.transaction_list[0]) {
126 Some(existing_user) => existing_user, 128 Some(existing_user) => existing_user,
127 None => { 129 None => {