package
0.0.0-20220616152218-3da4c06c590a
Repository: https://github.com/astra-net/astra-network.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
CheckValidatorEqual checks the equality of validator.
CheckValidatorWrapperEqual checks the equality of staking.ValidatorWrapper.
CopyCommission deep copy the Commission.
CopyDelegation copies staking.Delegation.
CopyDelegations deeps copy staking.Delegations.
CopyUndelegation deep copies staking.Undelegation.
CopyUndelegations deep copies staking.Undelegations.
CopyValidator deep copies staking.Validator.
CopyValidatorWrapper deep copies staking.ValidatorWrapper.
CopyValidatorWrapperNoDelegations deep copies staking.ValidatorWrapper, excluding Delegations With the heap pprof turned on, we see that copying validator wrapper is an expensive operation of which the most expensive part is copyng the delegations this function can be used when delegations are not expected to be changed by the caller.
GetDefaultValidator return the default staking.Validator for testing.
GetDefaultValidatorWithAddr return the default staking.Validator with the given validator address and bls keys.
GetDefaultValidatorWrapper return the default staking.ValidatorWrapper for testing.
GetDefaultValidatorWrapperWithAddr return the default staking.ValidatorWrapper with the given validator address and bls keys.
# Variables
DefaultDelAmount is the default delegation amount.
DefaultMaxTotalDel is the default value of MaxTotalDelegation.
DefaultMinSelfDel is the default value of MinSelfDelegation.