1
0
Fork 0
forked from lthn/blockchain

minor improvements

This commit is contained in:
sowle 2024-10-10 15:20:42 +02:00
parent 02aeaa2078
commit 986f7dc7d3
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC
2 changed files with 9 additions and 5 deletions

View file

@ -321,10 +321,13 @@ namespace tools
const currency::transaction m_tx;
};
//----------------------------------------------------------------------------------------------------
struct wallet_error_resync_needed
struct wallet_error_resync_needed : public std::exception
{
wallet_error_resync_needed()
: std::exception("wallet_error_resync_needed")
{}
};
//----------------------------------------------------------------------------------------------------
struct tx_parse_error : public refresh_error
{
explicit tx_parse_error(std::string&& loc, const currency::blobdata& tx_blob)

View file

@ -3822,6 +3822,7 @@ bool wallet_and_sweep_below::c1(currency::core& c, size_t ev_index, const std::v
//------------------------------------------------------------------------------
block_template_blacklist_test::block_template_blacklist_test()
{
REGISTER_CALLBACK_METHOD(block_template_blacklist_test, c1);
@ -3912,12 +3913,13 @@ bool block_template_blacklist_test::c1(currency::core& c, size_t ev_index, const
return true;
}
//------------------------------------------------------------------------------
wallet_reorganize_and_trim_test::wallet_reorganize_and_trim_test()
{
REGISTER_CALLBACK_METHOD(wallet_reorganize_and_trim_test, c1);
}
bool wallet_reorganize_and_trim_test::generate(std::vector<test_event_entry>& events) const
{
uint64_t ts = test_core_time::get_time();
@ -3937,6 +3939,7 @@ bool wallet_reorganize_and_trim_test::generate(std::vector<test_event_entry>& ev
return true;
}
bool wallet_reorganize_and_trim_test::c1(currency::core& c, size_t ev_index, const std::vector<test_event_entry>& events)
{
std::shared_ptr<tools::wallet2> miner_wlt = init_playtime_test_wallet(events, c, MINER_ACC_IDX);
@ -3970,5 +3973,3 @@ bool wallet_reorganize_and_trim_test::c1(currency::core& c, size_t ev_index, con
}
return true;
}