mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-01 10:11:11 +02:00
watchtower: Add retry logic for fetching blocks
By default, try to fetch the blocks 3 more times in case of error.
This commit is contained in:
@@ -90,6 +90,9 @@ func TestLookoutBreachMatching(t *testing.T) {
|
||||
DB: db,
|
||||
EpochRegistrar: backend,
|
||||
Punisher: punisher,
|
||||
MinBackoff: time.Second,
|
||||
MaxBackoff: time.Minute,
|
||||
MaxNumRetries: 1,
|
||||
})
|
||||
if err := watcher.Start(); err != nil {
|
||||
t.Fatalf("unable to start watcher: %v", err)
|
||||
|
Reference in New Issue
Block a user