From aefbf5309a4ca7b318fcea0bb17048a5529458f9 Mon Sep 17 00:00:00 2001 From: woodser Date: Sat, 27 Jul 2019 14:27:10 -0400 Subject: [PATCH] blockRequest only deserializes txRequests --- src/utils/MoneroUtils.cpp | 3 +-- todo.txt | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/utils/MoneroUtils.cpp b/src/utils/MoneroUtils.cpp index 1d6a994..2ccea46 100644 --- a/src/utils/MoneroUtils.cpp +++ b/src/utils/MoneroUtils.cpp @@ -228,8 +228,7 @@ shared_ptr nodeToBlockRequest(const boost::property_tree::ptree& no shared_ptr block = make_shared(); for (boost::property_tree::ptree::const_iterator it = node.begin(); it != node.end(); ++it) { string key = it->first; - if (key == string("height")) block->height = (uint64_t) 7; // TODO - else if (key == string("txs")) { + if (key == string("txs")) { boost::property_tree::ptree txsNode = it->second; for (boost::property_tree::ptree::const_iterator it2 = txsNode.begin(); it2 != txsNode.end(); ++it2) { block->txs.push_back(nodeToTxRequest(it2->second)); diff --git a/todo.txt b/todo.txt index 614ddd2..4b5adb2 100644 --- a/todo.txt +++ b/todo.txt @@ -4,7 +4,6 @@ query args should be constant ensure model toPropertyTrees(), etc are not unecessarily copying return objects MoneroWallet.h documentation sample code including readme - sign/submit tx strong vs weak references getReserveProofAccount() jni seg fault