1
0
Fork 0
forked from lthn/blockchain

coretests: gcc warnings fixed

This commit is contained in:
sowle 2019-05-01 21:35:53 +02:00
parent 303cb9b4ea
commit a58cab8f9f

View file

@ -59,7 +59,7 @@ void remove_all_entries_from_variant_container_by_type(container_t& container)
inline bool refresh_wallet_and_check_1_contract_state(const char* wallet_name, std::shared_ptr<tools::wallet2> wallet, uint32_t expected_contract_state, size_t block_to_be_fetched = SIZE_MAX)
{
bool stub_bool = false, r;
bool stub_bool = false, r = false;
size_t blocks_fetched = 0;
LOG_PRINT_CYAN("Refreshing " << wallet_name << "'s wallet...", LOG_LEVEL_0);
wallet->refresh(blocks_fetched);
@ -78,7 +78,7 @@ inline bool refresh_wallet_and_check_1_contract_state(const char* wallet_name, s
inline bool refresh_wallet_and_check_contract_state(const char* wallet_name, std::shared_ptr<tools::wallet2> wallet, uint32_t expected_contract_state, crypto::hash contract_id, size_t block_to_be_fetched = SIZE_MAX)
{
bool stub_bool = false, r;
bool stub_bool = false, r = false;
size_t blocks_fetched = 0;
LOG_PRINT_CYAN("Refreshing " << wallet_name << "'s wallet...", LOG_LEVEL_0);
wallet->refresh(blocks_fetched);
@ -87,6 +87,7 @@ inline bool refresh_wallet_and_check_contract_state(const char* wallet_name, std
tools::wallet2::escrow_contracts_container contracts;
r = wallet->get_contracts(contracts);
CHECK_AND_ASSERT_MES(r, false, "get_contracts() for " << wallet_name << " failed");
for (const auto& c : contracts)
{
if (c.first == contract_id)