mempool icon indicating copy to clipboard operation
mempool copied to clipboard

set content limit to 5mb

Open nymkappa opened this issue 11 months ago • 2 comments

This is needed to call /api/v1/internal/bitcoin-core/decode-raw-transaction with a large hex transaction like https://mempool.space/api/tx/725cf0c5f7f90be65c6e3d85200e7015883c90f9e0cd7acaa5626c3f7d429ef9/hex

I've set it to 5mb but I'm not sure about this value, @mononaut do you have a suggestion? @wiz can this create some ops issue?

Express default is 100kb

nymkappa avatar Feb 06 '25 09:02 nymkappa

5mb wouldn't be enough for the largest possible valid transactions, considering the 2x hex-encoding overhead, so I'd set it to at least 8mb

mononaut avatar Feb 06 '25 10:02 mononaut

5mb wouldn't be enough for the largest possible valid transactions, considering the 2x hex-encoding overhead, so I'd set it to at least 8mb

Rounded up to 10mb 🤣

nymkappa avatar Feb 06 '25 11:02 nymkappa