Documentation
¶
Overview ¶
Package execution defines the service to execute a step in a validation batch.
Documentation Last Review: 08.10.2020
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result struct { // Accepted is the success state of the transaction. Accepted bool // Message gives a change to the execution to explain why a transaction has // failed. Message string }
Result is the result of a transaction execution.
type Service ¶
type Service interface { // Execute must apply the transaction to the trie and return the result of // it. Execute(snap store.Snapshot, step Step) (Result, error) }
Service is the execution service that defines the primitives to execute a transaction.
type Step ¶
type Step struct { Previous []txn.Transaction Current txn.Transaction }
Step is a context of execution. It allows for example a smart contract to execute a given transaction knowing what previous transactions have already been accepted and executed in a block.
Click to show internal directories.
Click to hide internal directories.