discovery: use a no-op hash accumluator for local networks

If LND is running on a local network, then use deterministic sampling so
that we can have deterministic peer bootstrapping.
This commit is contained in:
Elle Mouton
2025-06-29 16:33:44 +02:00
parent 339dd0c1a7
commit 37d6390642
3 changed files with 51 additions and 8 deletions

View File

@@ -144,7 +144,9 @@ reader of a payment request.
disabling has now been
[removed](https://github.com/lightningnetwork/lnd/pull/9967) meaning that any
test network scripts that rely on bootstrapping being disabled will need to
explicitly define the `--nobootstrap` flag.
explicitly define the `--nobootstrap` flag. Bootstrapping will now also be
[deterministic](https://github.com/lightningnetwork/lnd/pull/10003) on local
test networks so that bootstrapping behaviour can be tested for.
## Database