diff --git a/CMakeLists.txt b/CMakeLists.txt index 5a35cea13..795f00953 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5.1) +cmake_minimum_required(VERSION 3.9.6) include("cmake/HunterGate.cmake") HunterGate( URL "https://github.com/ruslo/hunter/archive/v0.19.173.tar.gz" diff --git a/iguana/exchanges/etomicswap/etomiccurl.c b/iguana/exchanges/etomicswap/etomiccurl.c index 927000503..d2fdce901 100644 --- a/iguana/exchanges/etomicswap/etomiccurl.c +++ b/iguana/exchanges/etomicswap/etomiccurl.c @@ -292,12 +292,17 @@ int32_t waitForConfirmation(char *txId) { EthTxReceipt receipt; EthTxData txData; + uint8_t retries = 0; do { receipt = getEthTxReceipt(txId); if (receipt.confirmations < 1) { txData = getEthTxData(txId); if (txData.exists == 0) { - return(-1); + retries++; + if (retries >= 10) { + printf("Have not found ETH tx %s after 10 checks, aborting\n", txId); + return (-1); + } } } else { break;