Jochen Hoenicke [ARCHIVE] on Nostr: 📅 Original date posted:2016-08-24 📝 Original message:On 24.08.2016 16:18, Jonas ...
📅 Original date posted:2016-08-24
📝 Original message:On 24.08.2016 16:18, Jonas Schnelli via bitcoin-dev wrote:
>
> Another thing that I think could be a BIP misdesign:
>
> BIP44 Gap Limits
> From the BIP:
>
> ----------
> "Address gap limit is currently set to 20. If the software hits 20
> unused addresses in a row, it expects there are no used addresses beyond
> this point and stops searching the address chain."
> ----------
>
> * Does that mean, we do a transaction rescan back to the genesis block
> for every 20 addresses?
As I understand it, you can scan sequentially starting with the genesis
block (or with a block at around the time when BIP44 was written). Then
if you find a new transaction, which requires to generate new addresses,
you generate them and scan further from that point on. This way you can
scan in a single pass if the scanning process calls you back when it
finds a transaction and allows you to change the set of addresses on the
fly.
Jochen
Published at
2023-06-07 17:53:04Event JSON
{
"id": "605b3400f71bf1e516bcef8212e4b16587c6dad5436421f7ca2ff61a2dc8cec5",
"pubkey": "5f325e2a1875039f7993aa44faeaa213e27f236f1388a14ae04289d0c742bc95",
"created_at": 1686160384,
"kind": 1,
"tags": [
[
"e",
"0de582d020d9e7b879d25a73f3538dcc989a93bd96c004bb722b8ccea1b79ae2",
"",
"root"
],
[
"e",
"98c963ecc3a77d9a54c8bd805d99f367113385642db1f0566585d726d8943deb",
"",
"reply"
],
[
"p",
"9a463e0fab8963b013698c15a0f2449d19c97f3b88458e5874095b5006df9a0c"
]
],
"content": "📅 Original date posted:2016-08-24\n📝 Original message:On 24.08.2016 16:18, Jonas Schnelli via bitcoin-dev wrote:\n\u003e \n\u003e Another thing that I think could be a BIP misdesign:\n\u003e \n\u003e BIP44 Gap Limits\n\u003e From the BIP:\n\u003e \n\u003e ----------\n\u003e \"Address gap limit is currently set to 20. If the software hits 20\n\u003e unused addresses in a row, it expects there are no used addresses beyond\n\u003e this point and stops searching the address chain.\"\n\u003e ----------\n\u003e \n\u003e * Does that mean, we do a transaction rescan back to the genesis block\n\u003e for every 20 addresses?\n\nAs I understand it, you can scan sequentially starting with the genesis\nblock (or with a block at around the time when BIP44 was written). Then\nif you find a new transaction, which requires to generate new addresses,\nyou generate them and scan further from that point on. This way you can\nscan in a single pass if the scanning process calls you back when it\nfinds a transaction and allows you to change the set of addresses on the\nfly.\n\n Jochen",
"sig": "b885353eb52260d7651fd311f61678ac7c1badc46e93b1b7519795d55b449c079ff43d118c7dcf2139612fa0d33f92c4f9d78434a899514c31ddd5b3d1c95290"
}