vout and vin parsing from json added

This commit is contained in:
moneroexamples 2016-12-02 14:38:51 +08:00
parent df57d2b203
commit 13f2505f88
2 changed files with 210 additions and 2 deletions

View File

@ -475,10 +475,21 @@ public:
string
index2(uint64_t page_no = 0, bool refresh_page = false)
{
//get current server timestamp
server_timestamp = std::time(nullptr);
// @TODO need to make this tx from _tx_info.tx_json
transaction tx;
if (!xmreg::make_tx_from_json(string{}, tx))
{
cerr << "Cant make tx from _tx_info.tx_json" << endl;
return string {"Cant make tx from _tx_info.tx_json"};
}
// number of last blocks to show
uint64_t no_of_last_blocks {25 + 1};

File diff suppressed because one or more lines are too long