Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Commit

Permalink
Fix default malfeasance sync config in testnet preset (#5851)
Browse files Browse the repository at this point in the history
## Motivation

In testnet preset values, malfeasance sync config is initialized with zeros instead of default values, causing sync to hang
  • Loading branch information
ivan4th committed Apr 15, 2024
1 parent 65632ea commit 97fad81
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/presets/testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import (
"github.com/spacemeshos/go-spacemesh/p2p"
"github.com/spacemeshos/go-spacemesh/syncer"
"github.com/spacemeshos/go-spacemesh/syncer/atxsync"
"github.com/spacemeshos/go-spacemesh/syncer/malsync"
timeConfig "github.com/spacemeshos/go-spacemesh/timesync/config"
"github.com/spacemeshos/go-spacemesh/tortoise"
)
Expand Down Expand Up @@ -144,6 +145,7 @@ func testnet() config.Config {
GossipDuration: 50 * time.Second,
OutOfSyncThresholdLayers: 10,
AtxSync: atxsync.DefaultConfig(),
MalSync: malsync.DefaultConfig(),
},
Recovery: checkpoint.DefaultConfig(),
Cache: datastore.DefaultConfig(),
Expand Down

0 comments on commit 97fad81

Please sign in to comment.