rewards

package
v1.2.12-rc1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 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 List

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

List rewards from all layers for the coinbase address.

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