Struct sawtooth_sdk::consensus::zmq_service::ZmqService
source · [−]pub struct ZmqService { /* private fields */ }
Implementations
pub fn rpc<I: ProtobufMessage, O: ProtobufMessage>(
&mut self,
request: &I,
request_type: Message_MessageType,
response_type: Message_MessageType
) -> Result<O, Error>
pub fn rpc<I: ProtobufMessage, O: ProtobufMessage>(
&mut self,
request: &I,
request_type: Message_MessageType,
response_type: Message_MessageType
) -> Result<O, Error>
Serialize and send a request, wait for the default timeout, and receive and parse an expected response.
Trait Implementations
Send a consensus message to a specific, connected peer
Broadcast a message to all connected peers
Initialize a new block built on the block with the given previous id and begin adding batches to it. If no previous id is specified, the current head will be used. Read more
Stop adding batches to the current block and return a summary of its contents. Read more
Insert the given consensus data into the block and sign it. If this call is successful, the consensus engine will receive the block afterwards. Read more
Stop adding batches to the current block and abandon it.
Update the prioritization of blocks to check
Update the block that should be committed
Signal that this block is no longer being committed
Mark this block as invalid from the perspective of consensus
Retrieve consensus-related information about blocks
Get the chain head block.
Read the value of settings as of the given block