mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-10-22 09:38:49 +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;
|
||||
|
||||
Reference in New Issue
Block a user