From d495878792f5d764d0b07f8dd01489f0d09902a5 Mon Sep 17 00:00:00 2001 From: aaron Date: Fri, 24 Nov 2023 21:48:54 +0800 Subject: [PATCH] feat(api):better TransactionState.TransactionState->TransactionState.TransactionStateEnum --- spacemesh/v1/tx_types.proto | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacemesh/v1/tx_types.proto b/spacemesh/v1/tx_types.proto index 7f9655b8..9b377fc8 100644 --- a/spacemesh/v1/tx_types.proto +++ b/spacemesh/v1/tx_types.proto @@ -43,7 +43,7 @@ message TransactionsStateStreamResponse { // and its side effects, check the Receipt in the GlobalStateService. message TransactionState { TransactionId id = 1; - enum TransactionState { + enum TransactionStateEnum { TRANSACTION_STATE_UNSPECIFIED = 0; // default state TRANSACTION_STATE_REJECTED = 1; // rejected from mempool due to, e.g., invalid syntax TRANSACTION_STATE_INSUFFICIENT_FUNDS = 2; // rejected from mempool by funds check @@ -52,7 +52,7 @@ message TransactionState { TRANSACTION_STATE_MESH = 5; // submitted to the mesh TRANSACTION_STATE_PROCESSED = 6; // processed by STF; check Receipt for success or failure } - TransactionState state = 2; + TransactionStateEnum state = 2; } // TransactionResultsRequest request object for results stream.