diff options
Diffstat (limited to 'src/handlers.rs')
-rw-r--r-- | src/handlers.rs | 4 |
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 |
63 | pub async fn propose_authenticated_transaction( | 63 | pub 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; |