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");
1966
1966
THROW_WALLET_EXCEPTION_IF(minor > 0xffffffff, error::wallet_internal_error, "Subaddress minor lookahead is too large");
1967
1967
1968
-
if (major > m_subaddress_lookahead_major) { // if increasing the lookahead
1969
-
// then generate new subaddress pubkeys and add them to m_subaddresses table
1970
-
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
1971
-
for (uint32_t j = 0; j < minor; j++) { // these are newly made accounts, minor index will start from zero
1972
-
cryptonote::subaddress_index idx = {i,j};
1973
-
create_one_off_subaddress(idx); // then generate the key and add it to the table
1974
-
}
1975
-
}
1976
-
}
1977
-
if (minor > m_subaddress_lookahead_minor) { // if increasing the minor lookahead we need to also go back and expand the existing accounts
1978
-
for (uint32_t i = 0; i < m_subaddress_labels.size()+m_subaddress_lookahead_major; i++) {
1979
-
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
1980
-
for (uint32_t j = minor_idx_start; j < minor; j++) {
0 commit comments