slash

package
v0.0.0-...-2f68b9a Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2019 License: MIT Imports: 9 Imported by: 0

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.StateDB, num uint64, upTimeMap map[common.Address]uint64, parentHash common.Hash)

func (*BlockSlash) GetCurrentInterest

func (bp *BlockSlash) GetCurrentInterest(preState *state.StateDB, currentState *state.StateDB, num uint64) map[common.Address]*big.Int

Jump to

Keyboard shortcuts

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