Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Commit

Permalink
chore: not sign nonce 1 (#531)
Browse files Browse the repository at this point in the history
* fix: handle first nonce in orchestrator

* chore: not sign nonce 1
  • Loading branch information
rach-id authored Oct 12, 2023
1 parent 97d8a75 commit 88bb6df
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions orchestrator/orchestrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,10 @@ func (orch Orchestrator) Process(ctx context.Context, nonce uint64) error {
return celestiatypes.ErrAttestationNotFound
}

if nonce == 1 {
// there is no need to sign nonce 1 as the Blobstream contract will trust it when deploying.
return nil
}
// check if we need to sign or not
if nonce != 1 {
previousValset, err := orch.AppQuerier.QueryLastValsetBeforeNonce(ctx, att.GetNonce())
Expand Down

0 comments on commit 88bb6df

Please sign in to comment.