danicoin/tests/UnitTests/ICryptoNoteProtocolQueryStub.cpp
2015-09-18 11:55:31 +00:00

37 lines
1 KiB
C++

// 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.
#include "ICryptoNoteProtocolQueryStub.h"
bool ICryptoNoteProtocolQueryStub::addObserver(CryptoNote::ICryptoNoteProtocolObserver* observer) {
return false;
}
bool ICryptoNoteProtocolQueryStub::removeObserver(CryptoNote::ICryptoNoteProtocolObserver* observer) {
return false;
}
uint32_t ICryptoNoteProtocolQueryStub::getObservedHeight() const {
return observedHeight;
}
size_t ICryptoNoteProtocolQueryStub::getPeerCount() const {
return peers;
}
bool ICryptoNoteProtocolQueryStub::isSynchronized() const {
return synchronized;
}
void ICryptoNoteProtocolQueryStub::setPeerCount(uint32_t count) {
peers = count;
}
void ICryptoNoteProtocolQueryStub::setObservedHeight(uint32_t height) {
observedHeight = height;
}
void ICryptoNoteProtocolQueryStub::setSynchronizedStatus(bool status) {
synchronized = status;
}