diff options
author | Yigit Sever | 2021-04-14 00:34:39 +0300 |
---|---|---|
committer | Yigit Sever | 2021-04-14 00:34:39 +0300 |
commit | 54e81adac6a24291e2ee16cf5597f127122f62eb (patch) | |
tree | d0a031ecf550fe3ee0dc3fead8171686d6f48cb0 /src/handlers.rs | |
parent | 61378ccfcc0993744f110db89b0fea52545c1ce6 (diff) | |
download | gradecoin-54e81adac6a24291e2ee16cf5597f127122f62eb.tar.gz gradecoin-54e81adac6a24291e2ee16cf5597f127122f62eb.tar.bz2 gradecoin-54e81adac6a24291e2ee16cf5597f127122f62eb.zip |
Add empty block test
Diffstat (limited to 'src/handlers.rs')
-rw-r--r-- | src/handlers.rs | 2 |
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 => { |