mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-12-03 21:54:05 +01:00
compiling; ready to impl MoneroTransfer copy()
This commit is contained in:
@@ -183,9 +183,9 @@ namespace monero {
|
||||
throw runtime_error("MoneroTx deep copy constructor not implemented");
|
||||
}
|
||||
|
||||
// shared_ptr<MoneroTx> MoneroTx::copy() const {
|
||||
// return MoneroTx(this);
|
||||
// }
|
||||
shared_ptr<MoneroTx> MoneroTx::copy() const {
|
||||
return make_shared<MoneroTx>();
|
||||
}
|
||||
|
||||
boost::property_tree::ptree MoneroTx::toPropertyTree() const {
|
||||
boost::property_tree::ptree node;
|
||||
@@ -386,6 +386,10 @@ namespace monero {
|
||||
throw runtime_error("MoneroOutput deep copy not implemented");
|
||||
}
|
||||
|
||||
shared_ptr<MoneroOutput> MoneroOutput::copy() const {
|
||||
return make_shared<MoneroOutput>();
|
||||
}
|
||||
|
||||
boost::property_tree::ptree MoneroOutput::toPropertyTree() const {
|
||||
boost::property_tree::ptree node;
|
||||
if (keyImage != boost::none) node.add_child("keyImage", (*keyImage)->toPropertyTree());
|
||||
|
||||
@@ -194,7 +194,7 @@ namespace monero {
|
||||
|
||||
MoneroTx(); // default constructor
|
||||
MoneroTx(const MoneroTx& tx); // deep copy constructor
|
||||
//shared_ptr<MoneroTx> MoneroTx::copy() const;
|
||||
shared_ptr<MoneroTx> copy() const;
|
||||
boost::property_tree::ptree toPropertyTree() const;
|
||||
virtual void merge(const shared_ptr<MoneroTx>& self, const shared_ptr<MoneroTx>& other);
|
||||
boost::optional<uint64_t> getHeight() const;
|
||||
@@ -224,6 +224,7 @@ namespace monero {
|
||||
|
||||
MoneroOutput();
|
||||
MoneroOutput(const MoneroOutput& output); // deep copy constructor
|
||||
shared_ptr<MoneroOutput> copy() const;
|
||||
boost::property_tree::ptree toPropertyTree() const;
|
||||
virtual void merge(const shared_ptr<MoneroOutput>& self, const shared_ptr<MoneroOutput>& other);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user