blockRequest only deserializes txRequests

This commit is contained in:
woodser
2019-07-27 14:27:10 -04:00
parent 48253c2bc1
commit aefbf5309a
2 changed files with 1 additions and 3 deletions
+1 -2
View File
@@ -228,8 +228,7 @@ shared_ptr<MoneroBlock> nodeToBlockRequest(const boost::property_tree::ptree& no
shared_ptr<MoneroBlock> block = make_shared<MoneroBlock>();
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));
-1
View File
@@ -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