if (from < 0 || 0xffffffff < from || to < 0 || 0xffffffff < to) {
throw new TypeError('Invalid account range', { cause: `${from}-${to}` })
}
- if (to - from > 1_000) {
+ if (to - from > 100) {
console.warn('libnemo performance may degrade when deriving many accounts at once')
}
- if (to - from > 10_000) {
- throw new RangeError('Maximum 10,000 accounts per call')
+ if (to - from > 1_000) {
+ throw new RangeError('Maximum 1000 accounts per call')
}
const output = new Map<number, Account>()
const missing: number[] = []