commons

package
v0.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2021 License: GPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WaitForMinPeers

func WaitForMinPeers(ctx WaitMinPeersCtx, validatorPk []byte, min int, start, limit time.Duration, stopAtLimit bool) error

WaitForMinPeers waits until min peers joined the validator's topic

Types

type WaitMinPeersCtx

type WaitMinPeersCtx struct {
	Ctx    context.Context
	Logger *zap.Logger
	Net    network.Network
}

WaitMinPeersCtx represents the context needed for WaitForMinPeers

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL