diff --git a/src/currency_protocol/currency_protocol_handler.inl b/src/currency_protocol/currency_protocol_handler.inl index 03b93b67..62e66448 100644 --- a/src/currency_protocol/currency_protocol_handler.inl +++ b/src/currency_protocol/currency_protocol_handler.inl @@ -375,8 +375,11 @@ namespace currency if (m_debug_ip_address != 0 && context.m_remote_ip == m_debug_ip_address) return 1; - if(context.m_state != currency_connection_context::state_normal) + //if(context.m_state != currency_connection_context::state_normal) + // return 1; + if (!this->is_synchronized()) return 1; + uint64_t inital_tx_count = arg.txs.size(); TIME_MEASURE_START_MS(new_transactions_handle_time); for(auto tx_blob_it = arg.txs.begin(); tx_blob_it!=arg.txs.end();) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index cbceb80b..466a707e 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -13,6 +13,7 @@ #include #include #include "include_base_utils.h" +#include "net/levin_client.h" using namespace epee; #include "string_coding.h" @@ -32,6 +33,8 @@ using namespace epee; #include "crypto/bitcoin/sha256_helper.h" using namespace currency; + + #define MINIMUM_REQUIRED_WALLET_FREE_SPACE_BYTES (100*1024*1024) // 100 MB #undef LOG_DEFAULT_CHANNEL @@ -4585,6 +4588,23 @@ uint64_t wallet2::get_needed_money(uint64_t fee, const std::vector& destinations, const std::vector& selected_transfers)