Add Sync Checker (#13580)

* fix it

* add it in

* typo

* fix tests

* fix tests

* export and add test

* preston's review
This commit is contained in:
Nishant Das
2024-02-06 10:34:30 +08:00
committed by GitHub
parent 55a29a4670
commit 6fa656c1ee
10 changed files with 81 additions and 35 deletions

View File

@@ -72,6 +72,7 @@ func startChainService(t testing.TB,
blockchain.WithPayloadIDCache(cache.NewPayloadIDCache()),
blockchain.WithClockSynchronizer(startup.NewClockSynchronizer()),
blockchain.WithBlobStorage(filesystem.NewEphemeralBlobStorage(t)),
blockchain.WithSyncChecker(mock.MockChecker{}),
)
service, err := blockchain.NewService(context.Background(), opts...)
require.NoError(t, err)