From 86eb4e6ca5f4ce8f86350c4fe66833b006317a50 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sat, 17 Apr 2021 19:47:47 +0300 Subject: Rename functions and move checks Proposals are authenticated, no need to parrot --- src/routes.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/routes.rs') diff --git a/src/routes.rs b/src/routes.rs index 211f832..f39e98a 100644 --- a/src/routes.rs +++ b/src/routes.rs @@ -65,7 +65,7 @@ pub fn auth_transaction_propose( .and(custom_filters::transaction_json_body()) .and(custom_filters::auth_header()) .and(custom_filters::with_db(db)) - .and_then(handlers::authorized_propose_transaction) + .and_then(handlers::propose_transaction) } /// POST /block warp route @@ -75,5 +75,5 @@ pub fn auth_block_propose(db: Db) -> impl Filter