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

chore: not sign nonce 1 #531

Merged
merged 2 commits into from
Oct 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
previousValset, err := orch.AppQuerier.QueryLastValsetBeforeNonce(ctx, att.GetNonce())
if err != nil {
Expand Down
Loading