bluealloy/revm

Refactor: migrate from call local refund to global journal refund

Open

#2,145 创建于 2025年3月5日

在 GitHub 查看
 (8 评论) (0 反应) (0 负责人)Rust (1,019 fork)user submission
good first issue

仓库指标

Star
 (2,194 star)
PR 合并指标
 (平均合并 1天 14小时) (30 天内合并 32 个 PR)

描述

Presently, refund is call local and returned back with the gas when the call is finished, this can result in negative refund being returned and is a unexpected value for tracing.

Having one global refund inside the journal would mitigate this, on the one hand, it will slighlty leak gas calc into journal that is database, but on other hand it (should) encapsulate any refund inside of it additionally removing negative refund case.

贡献者指南