chore: add reset panic
This commit is contained in:
parent
324e4a4af7
commit
c572535693
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user