firewall

package
v0.15.0-rc Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const KeepCachePeriod = 168 * time.Hour // one week

KeepCachePeriod is the time the cache maintains the list of active keep members. We use the cache to minimize calls to Ethereum client.

Variables

This section is empty.

Functions

func NewStakeOrActiveKeepPolicy

func NewStakeOrActiveKeepPolicy(
	chain eth.Handle,
	stakeMonitor coreChain.StakeMonitor,
) coreNet.Firewall

NewStakeOrActiveKeepPolicy is a firewall policy checking if the remote peer has a minimum stake and in case it has no minimum stake if it is a member of at least one active keep.

Types

This section is empty.

Jump to

Keyboard shortcuts

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