Fix "post_tx" endpoint (#2077)

* Fix #2073
* Remove logging
This commit is contained in:
Quentin Le Sceller 2018-12-05 13:08:42 -05:00 committed by Ignotus Peverell
parent 02b3bf4b59
commit a717dbad96

View file

@ -430,15 +430,15 @@ where
None => HashMap::new(),
};
let fluff = params.get("fluff").is_some();
Box::new(
parse_body(req).and_then(move |slate| match api.post_tx(&slate, fluff) {
Box::new(parse_body(req).and_then(
move |slate: Slate| match api.post_tx(&slate.tx, fluff) {
Ok(_) => ok(()),
Err(e) => {
error!("post_tx: failed with error: {}", e);
err(e)
}
}),
)
},
))
}
fn handle_post_request(&self, req: Request<Body>) -> WalletResponseFuture {