Skip to content

Commit

Permalink
simulators/ethereu/sync: update
Browse files Browse the repository at this point in the history
  • Loading branch information
fjl committed Oct 30, 2023
1 parent 51e8728 commit ea0d4d7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions simulators/ethereum/sync/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ func runSourceTest(t *hivesim.T, c *hivesim.Client, params hivesim.Params) {
t.Fatal(err)
}

// Send forkchoiceUpdated to ensure the client shares this block with others.
// Send forkchoiceUpdated to the source. This is to make the client really
// consider itself synced.
if err := source.sendForkchoiceUpdated(t); err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -221,7 +222,7 @@ func conv2any[T any](s []T) []any {
}

func jsonString(v any) string {
enc, err := json.Marshal(v)
enc, err := json.MarshalIndent(v, "", " ")
if err != nil {
return fmt.Sprint(v)
}
Expand Down

0 comments on commit ea0d4d7

Please sign in to comment.