ledger

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2019 License: ISC Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GenesisLedger []*TokenPayout

GenesisLedger specifies the list of payouts in the coinbase of genesis. Must be a constant fixed in the code. If there are no payouts to be given, set this to an empty slice.

Functions

func GenesisLedgerSubsidy

func GenesisLedgerSubsidy() uint64

BlockOneSubsidy returns the total subsidy of block height 1 for the network.

func Ledger

func Ledger(tx *types.Transaction, netType protocol.Network)

pay out tokens to a ledger.

Types

type TokenPayout

type TokenPayout struct {
	Address  string
	PkScript []byte
	Amount   uint64
}

TokenPayout is a payout for block 1 which specifies an address and an amount to pay to that address in a transaction output.

Jump to

Keyboard shortcuts

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