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

Commit

Permalink
return directly
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey committed Jan 22, 2024
1 parent ffc9aa6 commit 2fba690
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions prover/guardian_prover_sender/guardian_prover.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,17 +101,13 @@ func (s *GuardianProverBlockSender) SignAndSendBlock(ctx context.Context, blockI
return err
}

if err := s.db.Put(
return s.db.Put(
db.BuildBlockKey(header.Time, header.Number.Uint64()),
db.BuildBlockValue(header.Hash().Bytes(),
signed,
blockID,
),
); err != nil {
return err
}

return nil
)
}

// sendSignedBlockReq is the actual method that sends the signed block to the health check server.
Expand Down

0 comments on commit 2fba690

Please sign in to comment.