Main_address_gap_reached Error


(Carlos Faria) #1

Hi guys,

I’m creating a new address using Wallet-Client, and at certain point It’s returning a “MAIN_ADDRESS_GAP_REACHED” error:

Error: MAIN_ADDRESS_GAP_REACHED at Function.API._parseError (/Users/carlosfaria/Documents/WebStorm/client-backend/node_modules/bitcore-wallet-client/lib/api.js:245:13) at Request._callback (/Users/carlosfaria/Documents/WebStorm/client-backend/node_modules/bitcore-wallet-client/lib/api.js:683:21) at Request.self.callback (/Users/carlosfaria/Documents/WebStorm/client-backend/node_modules/bitcore-wallet-client/node_modules/request/request.js:199:22) at emitTwo (events.js:87:13) at Request.emit (events.js:172:7) at Request.<anonymous> (/Users/carlosfaria/Documents/WebStorm/client-backend/node_modules/bitcore-wallet-client/node_modules/request/request.js:1036:10) at emitOne (events.js:82:20) at Request.emit (events.js:169:7) at IncomingMessage.<anonymous> (/Users/carlosfaria/Documents/WebStorm/client-backend/node_modules/bitcore-wallet-client/node_modules/request/request.js:963:12) at emitNone (events.js:72:20) at IncomingMessage.emit (events.js:166:7) at endReadableNT (_stream_readable.js:905:12) at nextTickCallbackWith2Args (node.js:441:9) at process._tickCallback (node.js:355:17)


(matias) #2

See https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#Address_gap_limit

BWS enforce no more that 20 addr with no activity, so the wallet can be recovered from the seed.


(Carlos Faria) #3

I get it, so I need query the addresses that I don’t use instead of create new ones. That’s right?