protos/admission_control.proto in libra_client-0.1.6 vs protos/admission_control.proto in libra_client-0.1.7
- old
+ new
@@ -4,29 +4,36 @@
syntax = "proto3";
package admission_control;
import "get_with_proof.proto";
+import "mempool_status.proto";
import "transaction.proto";
-import "proof.proto";
-import "ledger_info.proto";
import "vm_errors.proto";
-import "mempool_status.proto";
// -----------------------------------------------------------------------------
// ---------------- Submit transaction
// -----------------------------------------------------------------------------
// The request for transaction submission.
message SubmitTransactionRequest {
// Transaction signed by wallet.
types.SignedTransaction signed_txn = 1;
}
+// AC response status containing code and optionally an error message.
+message AdmissionControlStatus {
+ AdmissionControlStatusCode code = 1;
+ string message = 2;
+}
+
// Additional statuses that are possible from admission control in addition
// to VM statuses.
-enum AdmissionControlStatus {
+enum AdmissionControlStatusCode {
+ // Validator accepted the transaction.
Accepted = 0;
+ // The sender is blacklisted.
Blacklisted = 1;
+ // The transaction is rejected, e.g. due to incorrect signature.
Rejected = 2;
}
// The response for transaction submission.
//