mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-10-19 16:18:40 +02:00
use derived classes where appropriate
This commit is contained in:
@@ -122,7 +122,7 @@ namespace monero {
|
||||
powHash = MoneroUtils::reconcile(powHash, other->powHash);
|
||||
}
|
||||
|
||||
void MoneroBlock::merge(const shared_ptr<MoneroBlockHeader>& self, const shared_ptr<MoneroBlockHeader>& other) {
|
||||
void MoneroBlock::merge(const shared_ptr<MoneroBlock>& self, const shared_ptr<MoneroBlock>& other) {
|
||||
cout << "MoneroBlock::merge()" << endl;
|
||||
if (this != &*self) throw runtime_error("this != self");
|
||||
if (self == other) return;
|
||||
|
||||
@@ -95,7 +95,7 @@ namespace monero {
|
||||
vector<string> txIds;
|
||||
|
||||
boost::property_tree::ptree toPropertyTree() const;
|
||||
void merge(const shared_ptr<MoneroBlockHeader>& self, const shared_ptr<MoneroBlockHeader>& other);
|
||||
void merge(const shared_ptr<MoneroBlock>& self, const shared_ptr<MoneroBlock>& other);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user