hardfork

package
v1.0.131 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Routes

func Routes(router *wrapper.RouterWrapper)

Routes defines node related routes

func Trigger

func Trigger(c *gin.Context)

Trigger will receive a trigger request from the client and propagate it for processing

Types

type HarforkRequest added in v1.0.120

type HarforkRequest struct {
	Epoch uint32 `form:"epoch" json:"epoch"`
}

HarforkRequest represents the structure on which user input for triggering a hardfork will validate against

type TriggerHardforkHandler

type TriggerHardforkHandler interface {
	Trigger(epoch uint32) error
	IsSelfTrigger() bool
}

TriggerHardforkHandler interface defines methods that can be used from `elrondFacade` context variable

Jump to

Keyboard shortcuts

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