From 119afa0e37fdedd336f04917c2360124a2dbc5f1 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Tue, 27 Sep 2016 17:03:37 +0800 Subject: [PATCH] started work on /checkandpush --- main.cpp | 7 +++++-- src/templates/footer.html | 2 +- src/templates/rawtx.html | 4 ++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/main.cpp b/main.cpp index b708e57..2f4e077 100644 --- a/main.cpp +++ b/main.cpp @@ -216,8 +216,11 @@ int main(int ac, const char* av[]) { CROW_ROUTE(app, "/checkandpush").methods("POST"_method) ([&](const crow::request& req) { - string rawtxdata = string(req.url_params.get("rawtxdata")); - cout << rawtxdata << endl; + //string rawtxdata = string(req.post().get("rawtxdata")); + //crow::query_string post_data = crow::query_string(req.body); + //cout << post_data.get("rawtxdata") << endl; + cout << req.body << endl; + return xmrblocks.show_checkandpushtx(); }); diff --git a/src/templates/footer.html b/src/templates/footer.html index 13a65fd..3cdbf4f 100644 --- a/src/templates/footer.html +++ b/src/templates/footer.html @@ -3,7 +3,7 @@ source code
- Help support the hosting and maintenance of the Onion Monero Blockchain Explorer by donating to:
+ Help support the hosting and maintenance of this service by donating to:
48daf1rG3hE1Txapcsxh6WXNe9MLNKtu7W7tKTivtSoVLHErYzvdcpea2nSTgGkz66RFP4GKVAsTV14v6G3oddBTHfxP6tU
diff --git a/src/templates/rawtx.html b/src/templates/rawtx.html index 3825759..c6ae2c7 100644 --- a/src/templates/rawtx.html +++ b/src/templates/rawtx.html @@ -142,10 +142,10 @@ Paste base64 encoded, signed transaction data here

- +                                         - + {{/testnet}}