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:
4 files changed
+79
-5
No files matched your search
@@ -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