rewards

package
v1.3.5-hotfix2 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(db sql.Executor, reward *types.Reward) error

Add reward to the database.

func ListByCoinbase added in v1.3.0

func ListByCoinbase(db sql.Executor, coinbase types.Address) (rst []*types.Reward, err error)

ListByCoinbase lists rewards from all layers for the coinbase address.

func ListByKey added in v1.3.0

func ListByKey(db sql.Executor, coinbase *types.Address, smesherID *types.NodeID) (rst []*types.Reward, err error)

ListByKey lists rewards from all layers for the specified smesherID and/or coinbase.

func ListBySmesherId added in v1.3.0

func ListBySmesherId(db sql.Executor, smesherID types.NodeID) (rst []*types.Reward, err error)

ListBySmesherId lists rewards from all layers for the smesher ID.

func Revert

func Revert(db sql.Executor, revertTo types.LayerID) error

Revert the rewards to the specified layer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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