use derived classes where appropriate

This commit is contained in:
woodser
2019-06-17 15:17:55 -04:00
parent 911d3cb4d4
commit 6c8c9ae911
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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);
};
/**