Documentation ¶
Overview ¶
*
- @file
- @copyright defined in aergo/LICENSE.txt
*
- @file
- @copyright defined in aergo/LICENSE.txt
Index ¶
- Constants
- func BuildOrderedCandidates(vote map[string]*big.Int) []string
- func ExecuteSystemTx(txBody *types.TxBody, senderState *types.State, scs *state.ContractState, ...) error
- func GetStaking(scs *state.ContractState, address []byte) (*types.Staking, error)
- func GetVote(scs *state.ContractState, voter []byte) (*types.Vote, error)
- func GetVoteResult(scs *state.ContractState, n int) (*types.VoteList, error)
- func InitVoteResult(scs *state.ContractState, voteResult map[string]*big.Int) error
- func ValidateSystemTx(txBody *types.TxBody, scs *state.ContractState, blockNo uint64) error
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 BuildOrderedCandidates ¶ added in v0.8.3
BuildOrderedCandidates returns a candidate list ordered by votes.xs
func ExecuteSystemTx ¶
func GetStaking ¶ added in v0.8.1
func GetVoteResult ¶
func InitVoteResult ¶
func ValidateSystemTx ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.