blockowner

package
v0.14.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: ISC Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockOwner

type BlockOwner struct {
	Log            *logger.L
	Limiter        *rate.Limiter
	Pool           storage.Handle
	Br             blockrecord.Record
	IsNormalMode   func(mode.Mode) bool
	IsTestingChain func() bool
	Rsvr           reservoir.Reservoir
}

BlockOwner - the type of the RPC

func New

func New(log *logger.L, pools reservoir.Handles, isNormalMode func(mode.Mode) bool, isTestingChain func() bool, rsvr reservoir.Reservoir, br blockrecord.Record) *BlockOwner

func (*BlockOwner) Transfer

func (bitmark *BlockOwner) Transfer(transfer *transactionrecord.BlockOwnerTransfer, reply *TransferReply) error

Transfer - transfer the ownership of a block to new account and/or payment addresses

func (*BlockOwner) TxIDForBlock

func (bitmark *BlockOwner) TxIDForBlock(info *TxIDForBlockArguments, reply *TxIDForBlockReply) error

TxIDForBlock - RPC to get transaction id for block ownership record

type TransferReply

type TransferReply struct {
	TxId     merkle.Digest                                   `json:"txId"`
	PayId    pay.PayId                                       `json:"payId"`
	Payments map[string]transactionrecord.PaymentAlternative `json:"payments"`
}

TransferReply - results of transferring block ownership

type TxIDForBlockArguments

type TxIDForBlockArguments struct {
	BlockNumber uint64 `json:"blockNumber"`
}

TxIDForBlockArguments - get the id for a given block number

type TxIDForBlockReply

type TxIDForBlockReply struct {
	TxId merkle.Digest `json:"txId"`
}

TxIDForBlockReply - results for block id

Jump to

Keyboard shortcuts

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