prysm-pulse/beacon-chain/sync/initial-sync/testing/mock.go
Nishant Das 03356fc7b5
Add Ability to Resync Node (#4279)
* add resyncing functionality

* add more validation to status message

* lint and build

* jim's review

* preston's review

* clean up

* remove log

* remove no sync

* change again

* change back

* remove spaces

* Update shared/slotutil/slottime.go

Co-Authored-By: Raul Jordan <raul@prysmaticlabs.com>

* Apply suggestions from code review

Co-Authored-By: Raul Jordan <raul@prysmaticlabs.com>

* fix refs

* raul's review

* goimports

* goimports

* add counter

* removed condition

* change back

* gaz

Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-01-02 16:09:28 +08:00

22 lines
288 B
Go

package testing
// Sync defines a mock for the sync service.
type Sync struct {
IsSyncing bool
}
// Syncing --
func (s *Sync) Syncing() bool {
return s.IsSyncing
}
// Status --
func (s *Sync) Status() error {
return nil
}
// Resync --
func (s *Sync) Resync() error {
return nil
}