Skip to content

Commit

Permalink
drop when awaiting secret too, for completeness
Browse files Browse the repository at this point in the history
  • Loading branch information
BedrockSquirrel committed Jan 29, 2024
1 parent ecbfdb1 commit 94b510e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion go/host/enclave/guardian.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ func (g *Guardian) HandleBatch(batch *common.ExtBatch) {
}

func (g *Guardian) HandleTransaction(tx common.EncryptedTx) {
if g.GetEnclaveState().status == Disconnected || g.GetEnclaveState().status == Unavailable {
if g.GetEnclaveState().status == Disconnected ||
g.GetEnclaveState().status == Unavailable ||
g.GetEnclaveState().status == AwaitingSecret {
g.logger.Info("Enclave is not ready yet, dropping transaction.")
return // ignore transactions when enclave unavailable
}
Expand Down

0 comments on commit 94b510e

Please sign in to comment.