bluealloy/revm

Refactor: migrate from call local refund to global journal refund

Open

#2 145 ouverte le 5 mars 2025

Voir sur GitHub
 (8 commentaires) (0 réactions) (0 assignés)Rust (1 019 forks)user submission
good first issue

Métriques du dépôt

Stars
 (2 194 stars)
Métriques de merge PR
 (Merge moyen 1j 14h) (32 PRs mergées en 30 j)

Description

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.

Guide contributeur