2015-09-18 11:55:31 +00:00
|
|
|
// Copyright (c) 2011-2015 The Cryptonote developers
|
|
|
|
// Distributed under the MIT/X11 software license, see the accompanying
|
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
2014-06-25 17:21:42 +00:00
|
|
|
|
2015-07-30 15:22:07 +00:00
|
|
|
#include "ICryptoNoteProtocolQueryStub.h"
|
2014-06-25 17:21:42 +00:00
|
|
|
|
2015-07-30 15:22:07 +00:00
|
|
|
bool ICryptoNoteProtocolQueryStub::addObserver(CryptoNote::ICryptoNoteProtocolObserver* observer) {
|
2015-04-06 16:13:07 +00:00
|
|
|
return false;
|
2014-06-25 17:21:42 +00:00
|
|
|
}
|
|
|
|
|
2015-07-30 15:22:07 +00:00
|
|
|
bool ICryptoNoteProtocolQueryStub::removeObserver(CryptoNote::ICryptoNoteProtocolObserver* observer) {
|
2015-04-06 16:13:07 +00:00
|
|
|
return false;
|
2014-06-25 17:21:42 +00:00
|
|
|
}
|
|
|
|
|
2015-07-30 15:22:07 +00:00
|
|
|
uint32_t ICryptoNoteProtocolQueryStub::getObservedHeight() const {
|
2015-04-06 16:13:07 +00:00
|
|
|
return observedHeight;
|
2014-06-25 17:21:42 +00:00
|
|
|
}
|
|
|
|
|
2015-07-30 15:22:07 +00:00
|
|
|
size_t ICryptoNoteProtocolQueryStub::getPeerCount() const {
|
2015-04-06 16:13:07 +00:00
|
|
|
return peers;
|
|
|
|
}
|
2014-06-25 17:21:42 +00:00
|
|
|
|
2015-07-30 15:22:07 +00:00
|
|
|
bool ICryptoNoteProtocolQueryStub::isSynchronized() const {
|
2015-07-15 12:23:00 +00:00
|
|
|
return synchronized;
|
|
|
|
}
|
|
|
|
|
2015-07-30 15:22:07 +00:00
|
|
|
void ICryptoNoteProtocolQueryStub::setPeerCount(uint32_t count) {
|
2015-04-06 16:13:07 +00:00
|
|
|
peers = count;
|
|
|
|
}
|
2014-06-25 17:21:42 +00:00
|
|
|
|
2015-07-30 15:22:07 +00:00
|
|
|
void ICryptoNoteProtocolQueryStub::setObservedHeight(uint32_t height) {
|
2015-04-06 16:13:07 +00:00
|
|
|
observedHeight = height;
|
2014-06-25 17:21:42 +00:00
|
|
|
}
|
2015-07-15 12:23:00 +00:00
|
|
|
|
2015-07-30 15:22:07 +00:00
|
|
|
void ICryptoNoteProtocolQueryStub::setSynchronizedStatus(bool status) {
|
2015-07-15 12:23:00 +00:00
|
|
|
synchronized = status;
|
|
|
|
}
|