Documentation
¶
Index ¶
Constants ¶
View Source
const ( // CronosNamespace is the extension RPC namespace of cronos module. CronosNamespace = "cronos" ExceedBlockGasLimitError = "out of gas in location: block gas meter; gasWanted:" )
Variables ¶
This section is empty.
Functions ¶
func CreateCronosRPCAPIs ¶
func CreateCronosRPCAPIs(ctx *server.Context, clientCtx client.Context, tmWSClient *rpcclient.WSClient) []rpc.API
CreateCronosRPCAPIs creates extension json-rpc apis
func TxExceedsBlockGasLimit ¶
func TxExceedsBlockGasLimit(result *abci.ResponseDeliverTx) bool
TxExceedsBlockGasLimit returns true if tx's execution exceeds block gas limit
Types ¶
type CronosAPI ¶
type CronosAPI struct {
// contains filtered or unexported fields
}
CronosAPI is the extension jsonrpc apis prefixed with cronos_.
func NewCronosAPI ¶
func NewCronosAPI( logger log.Logger, clientCtx client.Context, backend backend.Backend, ) *CronosAPI
NewCronosAPI creates an instance of the cronos web3 extension apis.
func (*CronosAPI) ReplayBlock ¶
func (api *CronosAPI) ReplayBlock(blockNrOrHash rpctypes.BlockNumberOrHash, postUpgrade bool) ([]map[string]interface{}, error)
ReplayBlock return tx receipts by replay all the eth transactions, if postUpgrade is true, the tx that exceeded block gas limit is treated as reverted, otherwise as committed.
Click to show internal directories.
Click to hide internal directories.