mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-27 05:38:55 +00:00
03356fc7b5
* 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>
22 lines
288 B
Go
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
|
|
}
|