Skip to content

eth_call falls back to price snapshot when sov_context is not available - #192

Merged
theodorebugnet merged 2 commits into
Sovereign-Labs:relay-chain-upgradefrom
unevenlabs:dcompoze/eth-call-prices
Jul 6, 2026
Merged

theodorebugnet merged 2 commits into
Sovereign-Labs:relay-chain-upgradefrom
unevenlabs:dcompoze/eth-call-prices

Conversation

@dcompoze

Copy link
Copy Markdown
  • Added parking_lot::RwLock for a performant implementation without poisoning (replacing Mutex)
  • Moved the prices.rs module to the price-oracle precompile so it can access it during eth_call
  • Added a snapshot: OnceLock<PriceReports> used when sov_context is not available during eth_call
  • Added extra logic in precompile.rs to fall back to local price store snapshot when sov_context is not available.

@theodorebugnet
theodorebugnet merged commit 0d98ee3 into Sovereign-Labs:relay-chain-upgrade Jul 6, 2026
1 check passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 6, 2026
@dcompoze
dcompoze deleted the dcompoze/eth-call-prices branch July 7, 2026 12:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants