Skip to content

debug_traceCall against "pending" uses empty state #24830

@Anti83

Description

@Anti83

System information

Version: 1.10.17-stable
Git Commit: 25c9b49
Architecture: amd64
Go Version: go1.18

Expected behaviour

Expected to traceCall pending transaction in context of pending block. I know about double exectution problem, but still need to trace against pending.

Actual behaviour

Every transaction I try to debug_traceCall against "pending" fails with "tracing failed: insufficient funds for gas * price + value: address 0x.. have 0 want 7149415673190000". It's always have 0 even when address has a lot.

Steps to reproduce the behaviour

Get transaction from subscription to pendingTransactions, try to debug_traceCall against "pending".
debug_traceCall against "latest" works fine.
eth_call against "pending" also works fine.
but debug_traceCall against "pending" always fails.

Backtrace

[backtrace]

When submitting logs: please submit them as text and not screenshots.

UPDATE:
eth_call against "pending" also does NOT work right. I think it uses "latest" not "pending" state. At least it uses maxFeePerGas from latest not pending

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions