hashgraph / hedera-json-rpc-relay

Implementation of Ethereum JSON-RPC APIs for Hedera
Apache License 2.0
68 stars 72 forks source link

File created to hold large calldata for sendRawTransaction won't get deleted if an error is thrown #3219

Open quiet-node opened 2 weeks ago

quiet-node commented 2 weeks ago

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:

Alternatives

No response