system

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2018 License: MIT Imports: 7 Imported by: 13

Documentation

Overview

*

  • @file
  • @copyright defined in aergo/LICENSE.txt

*

  • @file
  • @copyright defined in aergo/LICENSE.txt

Index

Constants

View Source
const FutureBlockNo = math.MaxUint64
View Source
const PeerIDLength = 39
View Source
const StakingDelay = 10
View Source
const VotingDelay = 5

Variables

This section is empty.

Functions

func ExecuteSystemTx

func ExecuteSystemTx(txBody *types.TxBody, senderState *types.State,
	scs *state.ContractState, blockNo types.BlockNo) error

func GetVote

func GetVote(scs *state.ContractState, voter []byte) (uint64, uint64, []byte, error)

GetVote return amount, when, to, err

func GetVoteResult

func GetVoteResult(scs *state.ContractState, n int) (*types.VoteList, error)

func InitVoteResult

func InitVoteResult(scs *state.ContractState, voteResult *map[string]uint64) error

func ValidateSystemTx

func ValidateSystemTx(txBody *types.TxBody, scs *state.ContractState, blockNo uint64) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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