deferredtx

package
v0.26.6-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: LGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Folder = "/deferred-txs"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DeferredTx

type DeferredTx struct {
	From           common.Address
	To             *common.Address
	Amount         *big.Int
	Payload        []byte
	Tips           *big.Int
	BroadcastBlock uint64
	// contains filtered or unexported fields
}

func (*DeferredTx) FromProto

func (d *DeferredTx) FromProto(protoObj *models.ProtoDeferredTxs_ProtoDeferredTx)

func (*DeferredTx) ToProto

type DeferredTxs

type DeferredTxs struct {
	Txs []*DeferredTx
}

func (*DeferredTxs) FromBytes

func (d *DeferredTxs) FromBytes(data []byte) error

func (*DeferredTxs) ToBytes

func (d *DeferredTxs) ToBytes() []byte

type Job

type Job struct {
	// contains filtered or unexported fields
}

func NewJob

func NewJob(bus eventbus.Bus, datadir string, appState *appstate.AppState, bc *blockchain.Blockchain, txpool mempool.TransactionPool,
	ks *keystore.KeyStore, secStore *secstore.SecStore, vmCreator vm.VmCreator) (*Job, error)

func (*Job) AddDeferredTx

func (j *Job) AddDeferredTx(from common.Address, to *common.Address, amount *big.Int, payload []byte, tips *big.Int, broadcastBlock uint64) error

Jump to

Keyboard shortcuts

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