mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
started work on /checkandpush
This commit is contained in:
parent
d25213b998
commit
119afa0e37
3 changed files with 8 additions and 5 deletions
7
main.cpp
7
main.cpp
|
@ -216,8 +216,11 @@ int main(int ac, const char* av[]) {
|
||||||
|
|
||||||
CROW_ROUTE(app, "/checkandpush").methods("POST"_method)
|
CROW_ROUTE(app, "/checkandpush").methods("POST"_method)
|
||||||
([&](const crow::request& req) {
|
([&](const crow::request& req) {
|
||||||
string rawtxdata = string(req.url_params.get("rawtxdata"));
|
//string rawtxdata = string(req.post().get("rawtxdata"));
|
||||||
cout << rawtxdata << endl;
|
//crow::query_string post_data = crow::query_string(req.body);
|
||||||
|
//cout << post_data.get("rawtxdata") << endl;
|
||||||
|
cout << req.body << endl;
|
||||||
|
|
||||||
return xmrblocks.show_checkandpushtx();
|
return xmrblocks.show_checkandpushtx();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<a href="https://github.com/moneroexamples/onion-monero-blockchain-explorer">source code</a>
|
<a href="https://github.com/moneroexamples/onion-monero-blockchain-explorer">source code</a>
|
||||||
</h5>
|
</h5>
|
||||||
<h6 style="margin-top:10px">
|
<h6 style="margin-top:10px">
|
||||||
Help support the hosting and maintenance of the Onion Monero Blockchain Explorer by donating to: <br/>
|
Help support the hosting and maintenance of this service by donating to: <br/>
|
||||||
48daf1rG3hE1Txapcsxh6WXNe9MLNKtu7W7tKTivtSoVLHErYzvdcpea2nSTgGkz66RFP4GKVAsTV14v6G3oddBTHfxP6tU
|
48daf1rG3hE1Txapcsxh6WXNe9MLNKtu7W7tKTivtSoVLHErYzvdcpea2nSTgGkz66RFP4GKVAsTV14v6G3oddBTHfxP6tU
|
||||||
</h6>
|
</h6>
|
||||||
|
|
||||||
|
|
|
@ -142,10 +142,10 @@
|
||||||
Paste base64 encoded, signed transaction data here<br/>
|
Paste base64 encoded, signed transaction data here<br/>
|
||||||
<textarea name="rawtxdata" rows="20" cols="80"></textarea>
|
<textarea name="rawtxdata" rows="20" cols="80"></textarea>
|
||||||
<br/>
|
<br/>
|
||||||
<input type="submit" value="check">
|
<input type="submit" name="action" value="check">
|
||||||
|
|
||||||
|
|
||||||
<input type="submit" value="push">
|
<input type="submit" name="action" value="push">
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{{/testnet}}
|
{{/testnet}}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue