Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ExecutionSizeLimit is the maximum size of execution allowed ExecutionSizeLimit = 32 * 1024 // ProtocolID is the protocol ID // TODO: it works only for one instance per protocol definition now ProtocolID = "smart_contract" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Protocol ¶
type Protocol struct {
// contains filtered or unexported fields
}
Protocol defines the protocol of handling executions
func NewProtocol ¶
func NewProtocol(cm protocol.ChainManager, hu config.HeightUpgrade) *Protocol
NewProtocol instantiates the protocol of exeuction
func (*Protocol) Handle ¶
func (p *Protocol) Handle(ctx context.Context, act action.Action, sm protocol.StateManager) (*action.Receipt, error)
Handle handles an execution
Click to show internal directories.
Click to hide internal directories.