rewardTransaction

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: GPL-3.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRewardTxProcessor

func NewRewardTxProcessor(
	accountsDB state.AccountsAdapter,
	pubkeyConv core.PubkeyConverter,
	coordinator sharding.Coordinator,
) (*rewardTxProcessor, error)

NewRewardTxProcessor creates a rewardTxProcessor instance

Types

type InterceptedRewardTransaction

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

InterceptedRewardTransaction holds and manages a transaction based struct with extended functionality

func NewInterceptedRewardTransaction

func NewInterceptedRewardTransaction(
	rewardTxBuff []byte,
	marshalizer marshal.Marshalizer,
	hasher hashing.Hasher,
	pubkeyConv core.PubkeyConverter,
	coordinator sharding.Coordinator,
) (*InterceptedRewardTransaction, error)

NewInterceptedRewardTransaction returns a new instance of InterceptedRewardTransaction

func (*InterceptedRewardTransaction) CheckValidity

func (inRTx *InterceptedRewardTransaction) CheckValidity() error

CheckValidity checks if the received transaction is valid (not nil fields, valid sig and so on)

func (*InterceptedRewardTransaction) Fee

func (inRTx *InterceptedRewardTransaction) Fee() *big.Int

Fee represents the reward transaction fee. It is always 0

func (*InterceptedRewardTransaction) Hash

func (inRTx *InterceptedRewardTransaction) Hash() []byte

Hash gets the hash of this transaction

func (*InterceptedRewardTransaction) Identifiers

func (inRTx *InterceptedRewardTransaction) Identifiers() [][]byte

Identifiers returns the identifiers used in requests

func (*InterceptedRewardTransaction) IsForCurrentShard

func (inRTx *InterceptedRewardTransaction) IsForCurrentShard() bool

IsForCurrentShard returns true if this transaction is meant to be processed by the node from this shard

func (*InterceptedRewardTransaction) IsInterfaceNil

func (inRTx *InterceptedRewardTransaction) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (*InterceptedRewardTransaction) Nonce

func (inRTx *InterceptedRewardTransaction) Nonce() uint64

Nonce returns the transaction nonce

func (*InterceptedRewardTransaction) ReceiverShardId

func (inRTx *InterceptedRewardTransaction) ReceiverShardId() uint32

ReceiverShardId returns the receiver shard

func (*InterceptedRewardTransaction) SenderAddress

func (inRTx *InterceptedRewardTransaction) SenderAddress() []byte

SenderAddress returns the transaction sender address

func (*InterceptedRewardTransaction) SenderShardId

func (inRTx *InterceptedRewardTransaction) SenderShardId() uint32

SenderShardId returns the sender shard

func (*InterceptedRewardTransaction) String

func (inRTx *InterceptedRewardTransaction) String() string

String returns the reward's most important fields as string

func (*InterceptedRewardTransaction) Transaction

Transaction returns the reward transaction pointer that actually holds the data

func (*InterceptedRewardTransaction) Type

func (inRTx *InterceptedRewardTransaction) Type() string

Type returns the type of this intercepted data

Jump to

Keyboard shortcuts

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