ready to implement block and tx merging

This commit is contained in:
woodser
2019-06-11 13:25:47 -04:00
parent d43b2d5479
commit 1179991636
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -99,14 +99,17 @@ namespace monero {
// -------------------------- MODEL IMPLEMENTATION --------------------------
void MoneroBlockHeader::merge(const MoneroBlockHeader& header) {
cout << "MoneroBlockHeader::merge()" << endl;
throw runtime_error("Not implemented");
}
void MoneroBlock::merge(const MoneroBlock& block) {
cout << "MoneroBlock::merge()" << endl;
throw runtime_error("Not implemented");
}
void MoneroTx::merge(const MoneroTx& tx) {
cout << "MoneroTx::merge()" << endl;
throw runtime_error("Not implemented");
}
+1 -1
View File
@@ -185,7 +185,7 @@ namespace monero {
* @param skipIfAbsent specifies if the tx should not be added if it doesn't already exist
* @returns the merged tx
*/
void mergeTx(vector<shared_ptr<MoneroTxWallet>> txs, const shared_ptr<MoneroTxWallet>& tx, bool skipIfAbsent) {
void mergeTx(vector<shared_ptr<MoneroTxWallet>>& txs, const shared_ptr<MoneroTxWallet>& tx, bool skipIfAbsent) {
cout << "mergeTx()" << endl;
if (tx->id == boost::none) throw runtime_error("Tx id is not initialized");
for (const auto& aTx: txs) {