danicoin/tests/UnitTests/ICryptoNoteProtocolQueryStub.cpp

38 lines
1 KiB
C++
Raw Normal View History

// 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) {
return false;
2014-06-25 17:21:42 +00:00
}
2015-07-30 15:22:07 +00:00
bool ICryptoNoteProtocolQueryStub::removeObserver(CryptoNote::ICryptoNoteProtocolObserver* observer) {
return false;
2014-06-25 17:21:42 +00:00
}
2015-07-30 15:22:07 +00:00
uint32_t ICryptoNoteProtocolQueryStub::getObservedHeight() const {
return observedHeight;
2014-06-25 17:21:42 +00:00
}
2015-07-30 15:22:07 +00:00
size_t ICryptoNoteProtocolQueryStub::getPeerCount() const {
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) {
peers = count;
}
2014-06-25 17:21:42 +00:00
2015-07-30 15:22:07 +00:00
void ICryptoNoteProtocolQueryStub::setObservedHeight(uint32_t height) {
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;
}