diff --git a/src/avalanche/processor.h b/src/avalanche/processor.h --- a/src/avalanche/processor.h +++ b/src/avalanche/processor.h @@ -302,14 +302,6 @@ */ uint256 buildRemoteSighash(CNode *pfrom) const; - /** - * Get the local proof used by this node. - * - * @returns Proof for this node. - * @throws a std::runtime_error if there is no proof set for this node - */ - const Proof getProof() const; - /* * Return whether the avalanche service flag should be set. */ diff --git a/src/avalanche/processor.cpp b/src/avalanche/processor.cpp --- a/src/avalanche/processor.cpp +++ b/src/avalanche/processor.cpp @@ -501,13 +501,6 @@ return true; } -const Proof Processor::getProof() const { - if (!peerData) { - throw std::runtime_error("proof not set"); - } - return peerData->proof; -} - bool Processor::startEventLoop(CScheduler &scheduler) { return eventLoop.startEventLoop( scheduler, [this]() { this->runEventLoop(); }, AVALANCHE_TIME_STEP);