bluealloy/revm

Refactor: migrate from call local refund to global journal refund

クローズ

#2,145 opened on 2025/03/05

 (8 件のコメント) (0 件のリアクション) (0 人の担当者)Rust (1,008 件のフォーク)user submission
good first issue

Repository metrics

Stars
 (2,220 個のスター)
PR merge metrics
 (平均マージ 1d 14h) (30d で 32 merged PRs)

説明

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.

コントリビューターガイド