Post
Topic
Board Bitcoin Technical Support
Re: Bitcoin Core -Gap Limit
by
Forsyth Jones
on 22/10/2024, 22:22:47 UTC
When you created this wallet in Bitcoin Core, what version of Bitcoin Core were you using? I ask this because depending on the version, before v0.21 for example, Bitcoin Core generated wallets in legacy format, where a bunch of keys were stored. After v21.0 of Bitcoin Core, new wallets created in Bitcoin Core became descriptors by default, the ways in which keys are generated and managed rely on descriptors to describe how a wallet is generated and the spending conditions.

Try to follow the tips suggested above, you can also "refresh" new addresses from your xpub/descriptor in Bitcoin Core with the keypoolrefill command in Bitcoin Core.

To understand how output descriptors work and an example of how to use them, you can access this topic: https://bitcointalk.org/index.php?topic=5483885.msg63603357#msg63603357

Optionally, to better suit your case, you can define a "range" variable in the descriptor to generate, for example, 5000 addresses, e.g.: ..."range:"[0,5000]... this must be added in the descriptor to be imported, for example:

Importing a BIP32 Extended Private Key:

Quote
importdescriptors '[{"desc":"wpkh(xprv9s21ZrQH143K3QSWqukfLKQDxVUPmk2WuS7etkznSZcRVBZcKhV4m7MhEnrHKW3Dq5vjHXXSoyS 13K4JqmRuKRquH3bV9eNU9p781DMeyC3/84h/0h/0h/0/*)#4qqw9c4q","timestamp":"now","active":true,"range":[0,5000]},{"desc":"wpkh(xprv9s21ZrQH143K3QSWqukfLKQDxVUPmk2WuS7etkznSZcRVBZcKhV4m7MhEnrHKW3Dq5vjHXXSoyS 13K4JqmRuKRquH3bV9eNU9p781DMeyC3/84h/0h/0h/1/*)#y590cd9c","timestamp":"now","active":true,"internal":true,"range":[0,5000]}]'

{
      "desc": "wpkh([c90d8a1f/84h/0h/0h]xpub6Cyu9toACShWh9YdQTcwquoyGByEnUZCGWiywsvzzvKfQipjdbyLJzCWxBjspyiu18DhZ6hp2hx TmxDuZvR1GuXEVd28CuTUKcA9nYQwKuw/0/*)#tyyve29j",
      "timestamp": 1729633211,
      "active": true,
      "internal": false,
      "range": [
        0,
        5000
      ],
      "next": 0,
      "next_index": 0
    },
    {
      "desc": "wpkh([c90d8a1f/84h/0h/0h]xpub6Cyu9toACShWh9YdQTcwquoyGByEnUZCGWiywsvzzvKfQipjdbyLJzCWxBjspyiu18DhZ6hp2hx TmxDuZvR1GuXEVd28CuTUKcA9nYQwKuw/1/*)#6spdyl42",
      "timestamp": 1729633211,
      "active": true,
      "internal": true,
      "range": [
        0,
        5000
      ],
      "next": 0,
      "next_index": 0
    }
  ]
}