From a3bc90d6755acbe3670dfcf23f35acdaf9b00ffc Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sat, 10 Apr 2021 15:49:26 +0300 Subject: %(date +'%Y%m%d') --- src/handlers.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/handlers.rs') diff --git a/src/handlers.rs b/src/handlers.rs index 8908bfc..0bcbd49 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -3,6 +3,8 @@ use log::debug; // this is more useful than debug! learn how to use this use parking_lot::RwLockUpgradableReadGuard; use std::convert::Infallible; use warp::{http::StatusCode, reply}; +use warp::reject::Rejection; +use crate::auth::Pubkey; use crate::schema::{Block, Db, Transaction}; @@ -61,7 +63,7 @@ pub async fn propose_transaction( /// POST /transaction, authenticated /// The transaction arrived in this method has been authored by the public key in the source pub async fn propose_authenticated_transaction( - pubkey: String, + pubkey: Pubkey, new_transaction: Transaction, db: Db, ) -> Result { -- cgit v1.2.3-70-g09d2