pub trait DebugExecutionWitnessApiServer<Attributes>:
Sized
+ Send
+ Sync
+ 'static {
// Required method
fn execute_payload(
&self,
parent_block_hash: B256,
attributes: Attributes,
) -> RpcResult<ExecutionWitness>;
// Provided method
fn into_rpc(self) -> RpcModule<Self>
where Attributes: Send + Sync + 'static + DeserializeOwned { ... }
}
Expand description
Server trait implementation for the DebugExecutionWitnessApi
RPC API.
Required Methods§
Sourcefn execute_payload(
&self,
parent_block_hash: B256,
attributes: Attributes,
) -> RpcResult<ExecutionWitness>
fn execute_payload( &self, parent_block_hash: B256, attributes: Attributes, ) -> RpcResult<ExecutionWitness>
The debug_executePayload
method allows for re-execution of a group of transactions with
the purpose of generating an execution witness. The witness comprises of a map of all
hashed trie nodes to their preimages that were required during the execution of the block,
including during state root recomputation.
The first argument is the parent block hash. The second argument is the payload attributes for the new block.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.