mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-10-20 00:28:41 +02:00
merge() functions are virtual to enable polymorphism
This commit is contained in:
@@ -74,6 +74,11 @@ namespace monero {
|
||||
return !incomingTransfers.empty();
|
||||
}
|
||||
|
||||
void MoneroTxWallet::merge(const shared_ptr<MoneroTx>& self, const shared_ptr<MoneroTx>& other) {
|
||||
cout << "MoneroTxWallet::merge(MoneroTx&, MoneroTx&)" << endl;
|
||||
merge(static_pointer_cast<MoneroTxWallet>(self), static_pointer_cast<MoneroTxWallet>(other));
|
||||
}
|
||||
|
||||
void MoneroTxWallet::merge(const shared_ptr<MoneroTxWallet>& self, const shared_ptr<MoneroTxWallet>& other) {
|
||||
cout << "MoneroTxWallet::merge()" << endl;
|
||||
if (this != self.get()) throw runtime_error("this != self");
|
||||
@@ -382,11 +387,6 @@ namespace monero {
|
||||
return node;
|
||||
}
|
||||
|
||||
void MoneroOutputWallet::merge(const shared_ptr<MoneroOutputWallet>& self, const shared_ptr<MoneroOutputWallet>& other) {
|
||||
cout << "MoneroOutputWallet::merge()" << endl;
|
||||
throw runtime_error("not implemented");
|
||||
}
|
||||
|
||||
// ------------------------ MONERO OUTPUT REQUEST ---------------------------
|
||||
|
||||
boost::property_tree::ptree MoneroOutputRequest::toPropertyTree() const {
|
||||
|
||||
Reference in New Issue
Block a user