Skip to content

Commit

Permalink
removing fheos Crit logs, which crash the node unnecessarily
Browse files Browse the repository at this point in the history
  • Loading branch information
eshelB committed Nov 4, 2024
1 parent a5f62f5 commit 2bde394
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hooks/hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (h FheOSHooksImpl) StoreCiphertextHook(contract common.Address, loc [32]byt
if wasDereferenced {
err = storage.MarkForPersistence(contract, types.Hash(commited))
if err != nil {
log.Crit("Error marking dereferenced ciphertext as LTS", "err", err)
log.Error("Error marking dereferenced ciphertext as LTS", "err", err)
return err
}
}
Expand All @@ -96,7 +96,7 @@ func (h FheOSHooksImpl) StoreCiphertextHook(contract common.Address, loc [32]byt

err = storage.MarkForPersistence(contract, val)
if err != nil {
log.Crit("Error marking ciphertext as LTS", "err", err)
log.Error("Error marking ciphertext as LTS", "err", err)
return err
}

Expand Down Expand Up @@ -140,7 +140,7 @@ func (h FheOSHooksImpl) EvmCallEnd(evmSuccess bool) {
}
err = fheos.State.SetCiphertext(cipherText)
if err != nil {
log.Crit("Error storing ciphertext in LTS - state corruption detected", "err", err)
log.Error("Error storing ciphertext in LTS - state corruption detected", "err", err)
}
}

Expand Down

0 comments on commit 2bde394

Please sign in to comment.