File created to hold large calldata for sendRawTransaction won't get deleted if an error is thrown #3219
Labels
internal
For changes that affect the project's internal workings but not its outward-facing functionality.
Problem
For
eth_sendRawTransaction
, if the calldata exceeds 5120 bytes, HFS is used to temporarily store the bytecode on the network. The intention is to delete the file created to hold the calldata regardless of whether the transaction succeeds or fails. However, the current implementation only deletes the file if no error is thrown; if an error occurs, the file deletion is skipped.Solution
Here are a couple of potential solutions:
fileId
to the error being thrown, allowing access to it directly from the error object.fileId
, allowing it to be re-accessed as needed, with the record removed from the cache after deletion.Alternatives
No response
The text was updated successfully, but these errors were encountered: