hardfork

package
v1.2.22 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: GPL-3.0 Imports: 6 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 FacadeHandler added in v1.0.139

type FacadeHandler interface {
	Trigger(epoch uint32, withEarlyEndOfEpoch bool) error
	IsSelfTrigger() bool
	IsInterfaceNil() bool
}

FacadeHandler interface defines methods that can be used by the gin webserver

type HarforkRequest added in v1.0.120

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

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

Jump to

Keyboard shortcuts

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