Documentation ¶
Index ¶
Constants ¶
View Source
const PackageName = "惩罚"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockSlash ¶
type BlockSlash struct { SlashRate uint64 // contains filtered or unexported fields }
func New ¶
func New(chain util.ChainReader, st util.StateDB, preSt util.StateDB) *BlockSlash
func (*BlockSlash) CalcSlash ¶
func (bp *BlockSlash) CalcSlash(currentState *state.StateDBManage, num uint64, upTimeMap map[common.Address]uint64, parentHash common.Hash)
func (*BlockSlash) GetCurrentInterest ¶ added in v1.1.2
func (bp *BlockSlash) GetCurrentInterest(preState *state.StateDBManage, currentState vm.StateDBManager, num uint64) map[common.Address]*big.Int
Click to show internal directories.
Click to hide internal directories.