Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Commit

Permalink
Fix compiler errors
Browse files Browse the repository at this point in the history
Fix host compiler error - shouldn't use move when creating unique_ptr<steady_timer> since it prevents copy elision

Fix EthereumCapability compiler error - unused variable
  • Loading branch information
halfalicious committed Mar 16, 2019
1 parent c254be9 commit c9b934b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion libethereum/EthereumCapability.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ constexpr unsigned c_maxSendTransactions = 256;
constexpr unsigned c_maxHeadersToSend = 1024;
constexpr unsigned c_maxIncomingNewHashes = 1024;
constexpr unsigned c_peerTimeoutSeconds = 10;
constexpr int c_backroundWorkPeriodMs = 1000;
constexpr int c_minBlockBroadcastPeers = 4;

string toString(Asking _a)
Expand Down
2 changes: 1 addition & 1 deletion libp2p/Host.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ void Host::registerCapability(
return;
}
m_capabilities[{_name, _version}] =
make_pair(_cap, move(unique_ptr<ba::steady_timer>{new ba::steady_timer{m_ioService}}));
make_pair(_cap, unique_ptr<ba::steady_timer>{new ba::steady_timer{m_ioService}});
}

void Host::addPeer(NodeSpec const& _s, PeerType _t)
Expand Down

0 comments on commit c9b934b

Please sign in to comment.