diff --git a/eth/main.cpp b/eth/main.cpp index ac9a910cb..371c54c04 100644 --- a/eth/main.cpp +++ b/eth/main.cpp @@ -1003,7 +1003,7 @@ int main(int argc, char** argv) cout << ethCredits(); web3.setIdealPeerCount(peers); - web3.private_setPeerStretch(peerStretch); + web3.setPeerStretch(peerStretch); // std::shared_ptr gasPricer = make_shared(u256(double(ether / 1000) / etherPrice), u256(blockFees * 1000)); std::shared_ptr gasPricer = make_shared(askPrice, bidPrice); eth::Client* c = nodeMode == NodeMode::Full ? web3.ethereum() : nullptr; diff --git a/libwebthree/WebThree.cpp b/libwebthree/WebThree.cpp index 3afa1a337..ba5990bf3 100644 --- a/libwebthree/WebThree.cpp +++ b/libwebthree/WebThree.cpp @@ -118,7 +118,7 @@ void WebThreeDirect::setIdealPeerCount(size_t _n) return m_net.setIdealPeerCount(_n); } -void WebThreeDirect::private_setPeerStretch(size_t _n) +void WebThreeDirect::setPeerStretch(size_t _n) { return m_net.setPeerStretch(_n); } diff --git a/libwebthree/WebThree.h b/libwebthree/WebThree.h index 6875ad5fd..4d095b87d 100644 --- a/libwebthree/WebThree.h +++ b/libwebthree/WebThree.h @@ -171,8 +171,8 @@ public: /// Sets the ideal number of peers. void setIdealPeerCount(size_t _n) override; - /// Sets ceiling for incoming connections to multiple of ideal peer count. - void private_setPeerStretch(size_t _n); + /// Experimental. Sets ceiling for incoming connections to multiple of ideal peer count. + void setPeerStretch(size_t _n); bool haveNetwork() const override { return m_net.haveNetwork(); }