mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-23 02:18:52 +00:00
reject setting lookahead major or minor to 0
This commit is contained in:
parent
459beb50d4
commit
839fc6256b
@ -1507,7 +1507,9 @@ void wallet2::set_subaddress_label(const cryptonote::subaddress_index& index, co
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
void wallet2::set_subaddress_lookahead(size_t major, size_t minor)
|
||||
{
|
||||
THROW_WALLET_EXCEPTION_IF(major == 0, error::wallet_internal_error, "Subaddress major lookahead may not be zero");
|
||||
THROW_WALLET_EXCEPTION_IF(major > 0xffffffff, error::wallet_internal_error, "Subaddress major lookahead is too large");
|
||||
THROW_WALLET_EXCEPTION_IF(minor == 0, error::wallet_internal_error, "Subaddress minor lookahead may not be zero");
|
||||
THROW_WALLET_EXCEPTION_IF(minor > 0xffffffff, error::wallet_internal_error, "Subaddress minor lookahead is too large");
|
||||
m_subaddress_lookahead_major = major;
|
||||
m_subaddress_lookahead_minor = minor;
|
||||
|
Loading…
Reference in New Issue
Block a user