Coder Social home page Coder Social logo

Comments (1)

glethuillier avatar glethuillier commented on August 12, 2024

By default, the gap limit is 20 addresses. It can be extended by changing the value of this variable (e.g., const DEFAULT_GAP_LIMIT = 1000).

Therefore, if you experience a gap limit error, it will be detected in the range that you provide through this variable, and the used addresses will be displayed like this:

SegWit          m/1/0          {active address 1, pre gap}   0               +0.30998771     ←	-0.30998771     →
SegWit          m/1/1          {active address 2, pre gap}   0               +0.29764036     ←	-0.29764036     →
SegWit          m/1/1001       {active address 3, post gap}  0               +0.09834688     ←	-0.09834688     →
SegWit          m/1/1002       {active address 4, post gap}  0.01178649      +0.01178649     ←	-0              →
SegWit          m/1/1003       {active address 5, post gap}  0.02907135      +0.02907135     ←	-0              →
...

In other words, the unused addresses belonging to the gap are never displayed, but the used addresses outside the gap are. The gap is rendered implicitly: it can be inferred from the derivation paths (in this example: m/1/1m/1/1001).

Do you think that this is helpful, or would you still prefer to have a way to display the unused addresses belonging to the gap?

from xpub-scan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.