You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
THROW_WALLET_EXCEPTION_IF(minor == 0, error::wallet_internal_error, "Subaddress minor lookahead may not be zero");
1949
1949
THROW_WALLET_EXCEPTION_IF(minor > 0xffffffff, error::wallet_internal_error, "Subaddress minor lookahead is too large");
1950
1950
1951
-
if (major > m_subaddress_lookahead_major) { // if increasing the lookahead
1952
-
// then generate new subaddress pubkeys and add them to m_subaddresses table
1953
-
for (uint32_t i = m_subaddress_labels.size()+m_subaddress_lookahead_major; i < m_subaddress_labels.size()+major; i++) { // m_subaddress_labels are the accounts the user is conciously keeping track of. We want that number plus the lookahead major accounts in our key table
1954
-
for (uint32_t j = 0; j < minor; j++) { // these are newly made accounts, minor index will start from zero
1955
-
cryptonote::subaddress_index idx = {i,j};
1956
-
create_one_off_subaddress(idx); // then generate the key and add it to the table
1957
-
}
1958
-
}
1959
-
}
1960
-
if (minor > m_subaddress_lookahead_minor) { // if increasing the minor lookahead we need to also go back and expand the existing accounts
1961
-
for (uint32_t i = 0; i < m_subaddress_labels.size()+m_subaddress_lookahead_major; i++) {
1962
-
uint32_t minor_idx_start = i < m_subaddress_labels.size() ? m_subaddress_labels[i].size()+m_subaddress_lookahead_minor : m_subaddress_lookahead_minor; // if there are existing minor indices being tracked under this account we need to account for that
1963
-
for (uint32_t j = minor_idx_start; j < minor; j++) {
0 commit comments