mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-10-19 16:18:40 +02:00
MoneroTxRequest::meetsCriteria() implementation
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
|
||||
/**
|
||||
* Public library interface.
|
||||
*
|
||||
* TODO: separate per model class like wallet (cleanup)
|
||||
*/
|
||||
namespace monero {
|
||||
|
||||
@@ -161,6 +163,11 @@ namespace monero {
|
||||
//txIds = MoneroUtils::reconcile(txIds, otherBlock->txIds); // TODO: implement
|
||||
}
|
||||
|
||||
boost::optional<uint64_t> MoneroTx::getHeight() const {
|
||||
if (block == boost::none) return boost::none;
|
||||
return *((*block)->height);
|
||||
}
|
||||
|
||||
void MoneroTx::merge(const shared_ptr<MoneroTx>& self, const shared_ptr<MoneroTx>& other) {
|
||||
if (this != self.get()) throw runtime_error("this != self");
|
||||
if (self == other) return;
|
||||
|
||||
Reference in New Issue
Block a user