mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-10-20 16:48:40 +02:00
blocks returning from jni as array but without txs
This commit is contained in:
@@ -146,7 +146,12 @@ boost::property_tree::ptree MoneroUtils::toPropertyTree(const MoneroSubaddress&
|
||||
return subaddressNode;
|
||||
}
|
||||
|
||||
// blockToPropertyTree
|
||||
boost::property_tree::ptree MoneroUtils::toPropertyTree(const MoneroBlock& block) {
|
||||
cout << "toPropertyTree(block)" << endl;
|
||||
boost::property_tree::ptree blockNode;
|
||||
if (block.height != boost::none) blockNode.put("height", *block.height); // TODO: finish this, add txs
|
||||
return blockNode;
|
||||
}
|
||||
|
||||
boost::property_tree::ptree MoneroUtils::txToPropertyTree(const MoneroTx& tx) {
|
||||
cout << "txToPropertyTree(tx)" << endl;
|
||||
|
||||
Reference in New Issue
Block a user