Documentation ¶
Overview ¶
Package actor privides communication with other actor
Package actor privides communication with other actor
Index ¶
- Constants
- Variables
- func AppendTxToPool(txn *types.Transaction) (ontErrors.ErrCode, string)
- func ConsensusSrvHalt() error
- func ConsensusSrvStart() error
- func CurrentBlockHash() common.Uint256
- func GetBlockByHeight(height uint32) (*types.Block, error)
- func GetBlockFromStore(hash common.Uint256) (*types.Block, error)
- func GetBlockHashFromStore(height uint32) common.Uint256
- func GetConnectionCnt() uint32
- func GetContractStateFromStore(hash common.Address) (*payload.DeployCode, error)
- func GetCrossChainMsg(height uint32) (*types.CrossChainMsg, error)
- func GetCrossStatesProof(height uint32, key []byte) ([]byte, error)
- func GetCurrentBlockHeight() uint32
- func GetEthAccount(address common2.Address) (*storage.EthAccount, error)
- func GetEthCode(hash common2.Hash) ([]byte, error)
- func GetEthStorage(addr common2.Address, key common2.Hash) ([]byte, error)
- func GetEventNotifyByHeight(height uint32) ([]*event.ExecuteNotify, error)
- func GetEventNotifyByTxHash(txHash common.Uint256) (*event.ExecuteNotify, error)
- func GetGasPrice() uint64
- func GetHeaderByHeight(height uint32) (*types.Header, error)
- func GetID() common.PeerId
- func GetMaxPeerBlockHeight() uint64
- func GetMerkleProof(proofHeight uint32, rootHeight uint32) ([]common.Uint256, error)
- func GetNeighborAddrs() []common.PeerAddr
- func GetNodePort() uint16
- func GetNodeType() uint64
- func GetRelayState() bool
- func GetStorageItem(address common.Address, key []byte) ([]byte, error)
- func GetTransaction(hash common.Uint256) (*types.Transaction, error)
- func GetTxFromPool(hash common.Uint256) (tcomn.TXEntry, error)
- func GetTxnCount() []uint32
- func GetTxnHashList() []common.Uint256
- func GetTxnWithHeightByTxHash(hash common.Uint256) (uint32, *types.Transaction, error)
- func GetVersion() uint32
- func PreExecuteContract(tx *types.Transaction) (*cstate.PreExecResult, error)
- func PreExecuteContractBatch(tx []*types.Transaction, atomic bool) ([]*cstate.PreExecResult, uint32, error)
- func PreExecuteEip155Tx(msg types2.Message) (*types3.ExecutionResult, error)
- func SetConsensusPid(actr *actor.PID)
- func SetNetServer(p2p p2p.P2P)
- func SetTxPoolService(pool tcomn.TxPoolService)
- func SetTxnPoolPid(actr *actor.PID)
- func SubscribeEvent(topic string, handler func(v interface{}))
- type EventActor
Constants ¶
const ( REQ_TIMEOUT = 5 ERR_ACTOR_COMM = "[http] Actor comm error: %v" )
Variables ¶
var DisableSyncVerifyTx = false
Functions ¶
func AppendTxToPool ¶
func AppendTxToPool(txn *types.Transaction) (ontErrors.ErrCode, string)
append transaction to pool to txpool actor
func GetBlockByHeight ¶
GetBlockByHeight from ledger
func GetBlockFromStore ¶
GetBlockFromStore from ledger
func GetBlockHashFromStore ¶
GetBlockHashFromStore from ledger
func GetContractStateFromStore ¶
func GetContractStateFromStore(hash common.Address) (*payload.DeployCode, error)
GetContractStateFromStore from ledger
func GetCrossChainMsg ¶ added in v1.9.0
func GetCrossChainMsg(height uint32) (*types.CrossChainMsg, error)
func GetCrossStatesProof ¶ added in v1.9.0
func GetEthAccount ¶ added in v1.14.1
func GetEthAccount(address common2.Address) (*storage.EthAccount, error)
func GetEthStorage ¶ added in v1.14.1
func GetEventNotifyByHeight ¶
func GetEventNotifyByHeight(height uint32) ([]*event.ExecuteNotify, error)
GetEventNotifyByHeight from ledger
func GetEventNotifyByTxHash ¶
func GetEventNotifyByTxHash(txHash common.Uint256) (*event.ExecuteNotify, error)
GetEventNotifyByTxHash from ledger
func GetGasPrice ¶ added in v1.14.1
func GetGasPrice() uint64
func GetHeaderByHeight ¶
GetHeaderByHeight from ledger
func GetMaxPeerBlockHeight ¶ added in v1.8.1
func GetMaxPeerBlockHeight() uint64
GetMaxPeerBlockHeight from netSever actor
func GetMerkleProof ¶
GetMerkleProof from ledger
func GetNeighborAddrs ¶
GetNeighborAddrs from netSever actor
func GetStorageItem ¶
GetStorageItem from ledger
func GetTransaction ¶
func GetTransaction(hash common.Uint256) (*types.Transaction, error)
GetTransaction from ledger
func GetTxFromPool ¶
GetTxFromPool from txpool actor
func GetTxnHashList ¶ added in v1.11.0
GetTxnHashList from txpool actor
func GetTxnWithHeightByTxHash ¶
GetTxnWithHeightByTxHash from ledger
func PreExecuteContract ¶
func PreExecuteContract(tx *types.Transaction) (*cstate.PreExecResult, error)
PreExecuteContract from ledger
func PreExecuteContractBatch ¶ added in v1.8.1
func PreExecuteContractBatch(tx []*types.Transaction, atomic bool) ([]*cstate.PreExecResult, uint32, error)
func PreExecuteEip155Tx ¶ added in v1.14.1
func PreExecuteEip155Tx(msg types2.Message) (*types3.ExecutionResult, error)
func SetConsensusPid ¶
func SetNetServer ¶ added in v1.10.0
func SetTxPoolService ¶ added in v1.14.1
func SetTxPoolService(pool tcomn.TxPoolService)
func SetTxnPoolPid ¶
func SubscribeEvent ¶
func SubscribeEvent(topic string, handler func(v interface{}))
Subscribe save block complete and smartcontract Event
Types ¶
type EventActor ¶
type EventActor struct {
// contains filtered or unexported fields
}
func (*EventActor) Receive ¶
func (t *EventActor) Receive(c actor.Context)
receive from subscribed actor