Documentation ¶
Index ¶
- func NewRewardTxProcessor(accountsDB state.AccountsAdapter, pubkeyConv core.PubkeyConverter, ...) (*rewardTxProcessor, error)
- type InterceptedRewardTransaction
- func (inRTx *InterceptedRewardTransaction) CheckValidity() error
- func (inRTx *InterceptedRewardTransaction) Fee() *big.Int
- func (inRTx *InterceptedRewardTransaction) Hash() []byte
- func (inRTx *InterceptedRewardTransaction) Identifiers() [][]byte
- func (inRTx *InterceptedRewardTransaction) IsForCurrentShard() bool
- func (inRTx *InterceptedRewardTransaction) IsInterfaceNil() bool
- func (inRTx *InterceptedRewardTransaction) Nonce() uint64
- func (inRTx *InterceptedRewardTransaction) ReceiverShardId() uint32
- func (inRTx *InterceptedRewardTransaction) SenderAddress() []byte
- func (inRTx *InterceptedRewardTransaction) SenderShardId() uint32
- func (inRTx *InterceptedRewardTransaction) String() string
- func (inRTx *InterceptedRewardTransaction) Transaction() data.TransactionHandler
- func (inRTx *InterceptedRewardTransaction) Type() string
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 ¶
func (inRTx *InterceptedRewardTransaction) Transaction() data.TransactionHandler
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