Skip to content

Commit

Permalink
Merge pull request lightninglabs#692 from GeorgeTsagk/rpc-batch-state…
Browse files Browse the repository at this point in the history
…-typo

rpc+rpcserver: fix batch state typo
  • Loading branch information
GeorgeTsagk authored Nov 27, 2023
2 parents 55429f2 + 0773445 commit 0970d94
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion rpcserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -2619,7 +2619,7 @@ func marshalBatchState(batch *tapgarden.MintingBatch) (mintrpc.BatchState,

switch currentBatchState {
case tapgarden.BatchStatePending:
return mintrpc.BatchState_BATCH_STATE_PEDNING, nil
return mintrpc.BatchState_BATCH_STATE_PENDING, nil

case tapgarden.BatchStateFrozen:
return mintrpc.BatchState_BATCH_STATE_FROZEN, nil
Expand Down
8 changes: 4 additions & 4 deletions taprpc/mintrpc/mint.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion taprpc/mintrpc/mint.proto
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ message MintingBatch {

enum BatchState {
BATCH_STATE_UNKNOWN = 0;
BATCH_STATE_PEDNING = 1;
BATCH_STATE_PENDING = 1;
BATCH_STATE_FROZEN = 2;
BATCH_STATE_COMMITTED = 3;
BATCH_STATE_BROADCAST = 4;
Expand Down
2 changes: 1 addition & 1 deletion taprpc/mintrpc/mint.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
"type": "string",
"enum": [
"BATCH_STATE_UNKNOWN",
"BATCH_STATE_PEDNING",
"BATCH_STATE_PENDING",
"BATCH_STATE_FROZEN",
"BATCH_STATE_COMMITTED",
"BATCH_STATE_BROADCAST",
Expand Down

0 comments on commit 0970d94

Please sign in to comment.