Describe the bug
The limit parameter in eth_getTransactionReceiptLimited, eth_getTransactionByHashLimited, Filecoin.StateSearchMsg and Filecoin.StateSearchMsgLimited is interpreted incorrectly, causing unexpected behaviour. The parameter is meant to restrict how far back in the chain to search, but it's currently being treated as an absolute epoch instead of a relative look-back distance.
search_for_message → check_search (state_manager/mod.rs:1042)
while current.epoch() > look_back_limit.unwrap_or_default() {
// Search backwards through chain
}
Describe the bug
The
limitparameter ineth_getTransactionReceiptLimited,eth_getTransactionByHashLimited,Filecoin.StateSearchMsgandFilecoin.StateSearchMsgLimitedis interpreted incorrectly, causing unexpected behaviour. The parameter is meant to restrict how far back in the chain to search, but it's currently being treated as anabsolute epochinstead of arelative look-back distance.search_for_message→check_search(state_manager/mod.rs:1042)