hedera-json-rpc-relay icon indicating copy to clipboard operation
hedera-json-rpc-relay copied to clipboard

fix: compute max #file chunks from raw transaction size limit and file append chunk size

Open david-bakin-sl opened this issue 9 months ago • 0 comments

There are configuration items for SEND_RAW_TRANSACTION_SIZE_LIMIT, FILE_APPEND_MAX_CHUNKS, and FILE_APPEND_CHUNK_SIZE. FILE_APPEND_MAX_CHUNKS can (and should) be computed from the other two. So it can be eliminated as a config variable, and maintainer doesn't have to remember to update it in sync with changes to SEND_RAW_TRANSACTION_SIZE_LIMIT.

david-bakin-sl avatar May 20 '24 16:05 david-bakin-sl