package admission_control

Mouse Melon logoGet desktop application:
View/edit binary Protocol Buffers messages

service AdmissionControl

admission_control.proto:77

----------------------------------------------------------------------------- ---------------- Service definition -----------------------------------------------------------------------------

message AdmissionControlMsg

admission_control.proto:14

The request for submitting a transaction to an upstream validator or full node.

message AdmissionControlStatus

admission_control.proto:31

AC response status containing code and optionally an error message.

Used in: SubmitTransactionResponse

enum AdmissionControlStatusCode

admission_control.proto:38

Additional statuses that are possible from admission control in addition to VM statuses.

Used in: AdmissionControlStatus

message SubmitTransactionRequest

admission_control.proto:25

----------------------------------------------------------------------------- ---------------- Submit transaction ----------------------------------------------------------------------------- The request for transaction submission.

Used as request type in: AdmissionControl.SubmitTransaction

Used as field type in: AdmissionControlMsg

message SubmitTransactionResponse

admission_control.proto:62

The response for transaction submission. How does a client know if their transaction was included? A response from the transaction submission only means that the transaction was successfully added to mempool, but not that it is guaranteed to be included in the chain. Each transaction should include an expiration time in the signed transaction. Let's call this T0. As a client, I submit my transaction to a validator. I now need to poll for the transaction I submitted. I can use the query that takes my account and sequence number. If I receive back that the transaction is completed, I will verify the proofs to ensure that this is the transaction I expected. If I receive a response that my transaction is not yet completed, I must check the latest timestamp in the ledgerInfo that I receive back from the query. If this time is greater than T0, I can be certain that my transaction will never be included. If this time is less than T0, I need to continue polling.

Used as response type in: AdmissionControl.SubmitTransaction

Used as field type in: AdmissionControlMsg