diff --git a/synchronizer/synchronizer.go b/synchronizer/synchronizer.go index 01158aa..f3475e0 100644 --- a/synchronizer/synchronizer.go +++ b/synchronizer/synchronizer.go @@ -114,7 +114,7 @@ type SynchronizerReorgSupporter interface { SetCallbackOnReorgDone(callback func(reorgData ReorgExecutionResult)) } -type rollbackBatchesData struct { +type RollbackBatchesData struct { LastBatchNumber uint64 LastBatchAccInputHash common.Hash } @@ -123,7 +123,7 @@ type rollbackBatchesData struct { type SynchronizerRollbackBatchesSupporter interface { // SetCallbackOnRollbackBatches sets a callback that will be called when the rollbackBatches is done // to disable it you can set nil - SetCallbackOnRollbackBatches(callback func(data rollbackBatchesData)) + SetCallbackOnRollbackBatches(callback func(data RollbackBatchesData)) } type Synchronizer interface { diff --git a/synchronizer/synchronizer_adapter.go b/synchronizer/synchronizer_adapter.go index b3654f8..7875b52 100644 --- a/synchronizer/synchronizer_adapter.go +++ b/synchronizer/synchronizer_adapter.go @@ -24,7 +24,9 @@ func (s *SynchronizerAdapter) SetCallbackOnReorgDone(callback func(reorgData Reo ReasonError: nreorgData.ReasonError, }) }) +} +func (s *SynchronizerAdapter) SetCallbackOnRollbackBatches(callback func(data RollbackBatchesData)) { } func (s *SynchronizerAdapter) Sync(returnOnSync bool) error {