aboutsummaryrefslogtreecommitdiffstats
path: root/src/handlers.rs
diff options
context:
space:
mode:
authorYigit Sever2021-04-10 14:44:40 +0300
committerYigit Sever2021-04-10 14:44:40 +0300
commitc03321bc059ed733970d8a696acb461428b1d284 (patch)
treea79e48c3a55ac1957932a9b80ce25b39088a9253 /src/handlers.rs
parented53fbc9097370feeda1c5507878933643a9bcc5 (diff)
downloadgradecoin-c03321bc059ed733970d8a696acb461428b1d284.tar.gz
gradecoin-c03321bc059ed733970d8a696acb461428b1d284.tar.bz2
gradecoin-c03321bc059ed733970d8a696acb461428b1d284.zip
dunno
Diffstat (limited to 'src/handlers.rs')
-rw-r--r--src/handlers.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/handlers.rs b/src/handlers.rs
index 256e72a..89905a3 100644
--- a/src/handlers.rs
+++ b/src/handlers.rs
@@ -61,10 +61,12 @@ pub async fn propose_transaction(
61/// POST /transaction, authenticated 61/// POST /transaction, authenticated
62/// The transaction arrived in this method has been authored by the public key in the source 62/// The transaction arrived in this method has been authored by the public key in the source
63pub async fn propose_authenticated_transaction( 63pub async fn propose_authenticated_transaction(
64 pubkey: String, 64 header: HeaderMap<HeaderName, HeaderValue>,
65 new_transaction: Transaction, 65 new_transaction: Transaction,
66 db: Db, 66 db: Db,
67) -> Result<impl warp::Reply, warp::Rejection> { 67) -> Result<impl warp::Reply, warp::Rejection> {
68
69 // auth logic
68 debug!("new transaction request {:?}", new_transaction); 70 debug!("new transaction request {:?}", new_transaction);
69 71
70 // let mut transactions = db.lock().await; 72 // let mut transactions = db.lock().await;