Update core/blockchain.go

Co-authored-by: Sina M <1591639+s1na@users.noreply.github.com>
This commit is contained in:
Chris Ziogas 2024-03-31 16:55:05 +03:00 committed by GitHub
parent de1c41d0e9
commit 200f496077
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1171,7 +1171,7 @@ func (bc *BlockChain) Stop() {
if err := bc.triedb.Close(); err != nil {
log.Error("Failed to close trie database", "err", err)
}
// Call OnTerminate hook on Tracers if it is set.
// Allow tracers to clean-up and release resources.
if bc.vmConfig.Tracer != nil && bc.vmConfig.Tracer.OnTerminate != nil {
bc.vmConfig.Tracer.OnTerminate()
}