diff --git a/src/cpp/ripple/SHAMapSync.h b/src/cpp/ripple/SHAMapSync.h index 7c3eae3455..35b6e9b794 100644 --- a/src/cpp/ripple/SHAMapSync.h +++ b/src/cpp/ripple/SHAMapSync.h @@ -12,17 +12,11 @@ class ConsensusTransSetSF : public SHAMapSyncFilter { // sync filter for transaction sets during consensus building public: ConsensusTransSetSF() { ; } + virtual void gotNode(const SHAMapNode& id, const uint256& nodeHash, - const std::vector& nodeData, SHAMapTreeNode::TNType) - { - // WRITEME: If 'isLeaf' is true, this is a transaction - theApp->getTempNodeCache().store(nodeHash, nodeData); - } - virtual bool haveNode(const SHAMapNode& id, const uint256& nodeHash, std::vector& nodeData) - { - // WRITEME: We could check our own map, we could check transaction tables - return theApp->getTempNodeCache().retrieve(nodeHash, nodeData); - } + const std::vector& nodeData, SHAMapTreeNode::TNType); + + virtual bool haveNode(const SHAMapNode& id, const uint256& nodeHash, std::vector& nodeData); }; // This class is only needed on add functions diff --git a/src/cpp/ripple/TransactionAcquire.cpp b/src/cpp/ripple/TransactionAcquire.cpp index b8e53a7d02..3a5155f7a6 100644 --- a/src/cpp/ripple/TransactionAcquire.cpp +++ b/src/cpp/ripple/TransactionAcquire.cpp @@ -285,3 +285,16 @@ Json::Value LCTransaction::getJson() return ret; } +void ConsensusTransSetSF::gotNode(const SHAMapNode& id, const uint256& nodeHash, + const std::vector& nodeData, SHAMapTreeNode::TNType) +{ + // WRITEME: If 'isLeaf' is true, this is a transaction + theApp->getTempNodeCache().store(nodeHash, nodeData); +} + +bool ConsensusTransSetSF::haveNode(const SHAMapNode& id, const uint256& nodeHash, + std::vector& nodeData) +{ + // WRITEME: We could check our own map, we could check transaction tables + return theApp->getTempNodeCache().retrieve(nodeHash, nodeData); +}