eqlabs / pathfinder

A Starknet full node written in Rust
https://eqlabs.github.io/pathfinder/
Other
613 stars 222 forks source link

Querying `L1_HANDLER` receipts fail with internal error on v0.13.0. #2085

Closed xJonathanLEI closed 1 month ago

xJonathanLEI commented 1 month ago

Looks like there's an issue with receipts in pathfinder v0.13.0. Once upgraded and database migrated, querying any L1_HANDLER receipt results in an internal error with a log on the node as WARN Internal error backtrace=expected Declare transaction.

Querying other types of receipts don't result in error but are currently rejected by starknet-rs tests, which used to be passing with pathfinder v0.12.0. I haven't actually looked into what's causing the test failure on this though.

It's rather easy to repro. Just run this:

starkli receipt --rpc "https://pathfinder.rpc.sepolia.starknet.rs/rpc/v0_7" 0785c2ada3f53fbc66078d47715c27718f92e6e48b96372b36e5197de69b82b5

The URL points to a pathfinder v0.13.0 node on sepolia, unpruned.