chore: add reset panic

This commit is contained in:
joeycli 2024-08-13 20:20:39 +08:00
parent 324e4a4af7
commit c572535693
2 changed files with 1 additions and 1 deletions

@ -1832,7 +1832,6 @@ func (p *Parlia) applyTransaction(
actualTx.GasPrice().String(),
hex.EncodeToString(actualTx.Data()))
log.Info(res)
panic(res)
return fmt.Errorf(res)
//return fmt.Errorf("expected tx hash %v, get %v, nonce %d, to %s, value %s, gas %d, gasPrice %s, data %s", expectedHash.String(), actualTx.Hash().String(),
// expectedTx.Nonce(),

@ -186,6 +186,7 @@ func (cv *cachingVersaDB) Release() error {
func (cv *cachingVersaDB) Reset() {
if cv.state != versa.ErrStateHandler {
//log.Info("close state reset", "state info", cv.versionDB.ParseStateHandler(cv.state))
panic(fmt.Sprintf("close state reset, state info %s", cv.versionDB.ParseStateHandler(cv.state)))
if err := cv.versionDB.CloseState(cv.state); err != nil {
log.Error("failed to close version db state", "error", err)
}