Browse Source

CR fixes.

cl-refactor
subtly 10 years ago
parent
commit
6fa27b2c5b
  1. 2
      eth/main.cpp
  2. 2
      libwebthree/WebThree.cpp
  3. 4
      libwebthree/WebThree.h

2
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<eth::BasicGasPricer> gasPricer = make_shared<eth::BasicGasPricer>(u256(double(ether / 1000) / etherPrice), u256(blockFees * 1000));
std::shared_ptr<eth::TrivialGasPricer> gasPricer = make_shared<eth::TrivialGasPricer>(askPrice, bidPrice);
eth::Client* c = nodeMode == NodeMode::Full ? web3.ethereum() : nullptr;

2
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);
}

4
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(); }

Loading…
Cancel
Save