diff --git a/libethereum/EthereumHost.cpp b/libethereum/EthereumHost.cpp index 1b3049fba..f9fe45eb0 100644 --- a/libethereum/EthereumHost.cpp +++ b/libethereum/EthereumHost.cpp @@ -183,7 +183,7 @@ void EthereumHost::doWork() void EthereumHost::maintainTransactions(TransactionQueue& _tq, h256 _currentHash) { - bool resendAll = (_currentHash != m_latestBlockSent); + bool resendAll = (m_grabbing == Grabbing::Nothing && m_chain.isKnown(m_latestBlockSent) && _currentHash != m_latestBlockSent); { lock_guard l(m_incomingLock); for (auto it = m_incomingTransactions.begin(); it != m_incomingTransactions.end(); ++it) @@ -251,7 +251,7 @@ void EthereumHost::maintainBlocks(BlockQueue& _bq, h256 _currentHash) } // If we've finished our initial sync send any new blocks. - if (m_grabbing == Grabbing::Nothing && m_chain.details(m_latestBlockSent) && m_chain.details(m_latestBlockSent).totalDifficulty < m_chain.details(_currentHash).totalDifficulty) + if (m_grabbing == Grabbing::Nothing && m_chain.isKnown(m_latestBlockSent) && m_chain.details(m_latestBlockSent).totalDifficulty < m_chain.details(_currentHash).totalDifficulty) { RLPStream ts; EthereumPeer::prep(ts); diff --git a/libp2p/Host.cpp b/libp2p/Host.cpp index 9d033e6f8..2517002ea 100644 --- a/libp2p/Host.cpp +++ b/libp2p/Host.cpp @@ -381,6 +381,7 @@ void Host::connect(std::string const& _addr, unsigned short _port) noexcept } else connect(bi::tcp::endpoint(bi::address::from_string(_addr), _port)); + break; } catch (exception const& e) { diff --git a/libqethereum/CMakeLists.txt b/libqethereum/CMakeLists.txt index f9be5751f..68ee1bb9d 100644 --- a/libqethereum/CMakeLists.txt +++ b/libqethereum/CMakeLists.txt @@ -105,6 +105,6 @@ else () target_link_libraries(${EXECUTABLE} boost_filesystem) find_package(Threads REQUIRED) target_link_libraries(${EXECUTABLE} ${CMAKE_THREAD_LIBS_INIT}) - install( TARGETS ${EXECUTABLE} RUNTIME DESTINATION bin ) + install( TARGETS ${EXECUTABLE} ARCHIVE DESTINATION lib LIBRARY DESTINATION lib ) endif () diff --git a/sc/cmdline.cpp b/sc/cmdline.cpp index 69e96b41e..b7a15634a 100644 --- a/sc/cmdline.cpp +++ b/sc/cmdline.cpp @@ -3,6 +3,7 @@ #include #include #include +#include #include int main(int argv, char** argc) { diff --git a/windows/LibEthereum.vcxproj b/windows/LibEthereum.vcxproj index 196325353..134171843 100644 --- a/windows/LibEthereum.vcxproj +++ b/windows/LibEthereum.vcxproj @@ -527,4 +527,4 @@ - \ No newline at end of file + diff --git a/windows/LibEthereum.vcxproj.filters b/windows/LibEthereum.vcxproj.filters index 5a650b0c5..b6e2dc070 100644 --- a/windows/LibEthereum.vcxproj.filters +++ b/windows/LibEthereum.vcxproj.filters @@ -175,6 +175,9 @@ libwhisper + + libethereum + @@ -384,6 +387,9 @@ libwhisper + + libethereum +