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 committed 2025-07-01 11:27:18 +02:00
1 parent 339dd0c1a7
commit 37d6390642
3 files changed
+51 -8

No files matched your search

+3 -1
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