Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type All ¶
type All struct {
BlockReader FullBlockReader
}
type BlockAndTxnReader ¶
type BlockAndTxnReader interface { BlockReader //HeaderReader TxnReader }
type BlockReader ¶
type BodyReader ¶
type BodyReader interface { BodyWithTransactions(ctx context.Context, tx kv.Getter, hash libcommon.Hash, blockHeight uint64) (body *types.Body, err error) BodyRlp(ctx context.Context, tx kv.Getter, hash libcommon.Hash, blockHeight uint64) (bodyRlp rlp.RawValue, err error) Body(ctx context.Context, tx kv.Getter, hash libcommon.Hash, blockHeight uint64) (body *types.Body, txAmount uint32, err error) }
type CanonicalReader ¶
type FullBlockReader ¶
type FullBlockReader interface { BlockReader BodyReader HeaderReader TxnReader CanonicalReader }
type HeaderAndCanonicalReader ¶
type HeaderAndCanonicalReader interface { HeaderReader CanonicalReader }
type HeaderReader ¶
type HeaderReader interface { Header(ctx context.Context, tx kv.Getter, hash libcommon.Hash, blockHeight uint64) (*types.Header, error) HeaderByNumber(ctx context.Context, tx kv.Getter, blockHeight uint64) (*types.Header, error) HeaderByHash(ctx context.Context, tx kv.Getter, hash libcommon.Hash) (*types.Header, error) }
type TxnReader ¶
type TxnReader interface { TxnLookup(ctx context.Context, tx kv.Getter, txnHash libcommon.Hash) (uint64, bool, error) TxnByIdxInBlock(ctx context.Context, tx kv.Getter, blockNum uint64, i int) (txn types.Transaction, err error) TxnEffectiveGasPricePercentage(ctx context.Context, tx kv.Tx, txnHash libcommon.Hash) (uint8, error) }
Click to show internal directories.
Click to hide internal directories.