replay

package
v0.0.0-...-49ff46f Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TxErrInsufficientFundsForRent = errors.New("TxErrInsufficientFundsForRent")
)

Functions

func NewTxErrInvalidSignature

func NewTxErrInvalidSignature(msg string) error

func ProcessBlock

func ProcessBlock(acctsDb *accountsdb.AccountsDb, block *Block, updateAcctsDb bool) ([]byte, error)

func ProcessTransaction

func ProcessTransaction(slotCtx *sealevel.SlotCtx, tx *solana.Transaction, txMeta *rpc.TransactionMeta) (uint64, []solana.PublicKey, error)

func ReplayBlocks

func ReplayBlocks(acctsDb *accountsdb.AccountsDb, snapshotManifest *snapshot.SnapshotManifest, startSlot, endSlot int64, updateAcctsDb bool) error

Types

type Block

type Block struct {
	Slot             uint64
	Transactions     []*solana.Transaction
	BankHash         [32]byte
	ParentBankhash   [32]byte
	NumSignatures    uint64
	Blockhash        [32]byte
	ExpectedBankhash [32]byte
	Manifest         *snapshot.SnapshotManifest
	TxMetas          []*rpc.TransactionMeta
	Leader           solana.PublicKey
	Reward           BlockRewardsInfo
	RecentBlockhash  [32]byte
}

type BlockRewardsInfo

type BlockRewardsInfo struct {
	Leader      solana.PublicKey
	Lamports    uint64
	PostBalance uint64
}

type TxErrInvalidSignature

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

func (*TxErrInvalidSignature) Error

func (err *TxErrInvalidSignature) Error() string

Jump to

Keyboard shortcuts

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