-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Union Node Configuration
Connor Davis edited this page Apr 25, 2024
·
6 revisions
While the public Union docs contain many recommendations for node configuration, this document aims to supply devs with configuration options and advice to resolve common errors in our developer experience.
To ensure large request aren't denied, like when uploading a light client, you should ensure three options are large enough on the node. Once the node you're submitting transactions to is configured with these options and restarted, your request should go through without being rejected.
- Inside
config.tomlunder therpctable, we should changemax_body_bytesto something larger:10000000(~10 MB)
# Maximum size of request body, in bytes
max_body_bytes = 10000000- Inside
config.tomlunder themempooltable, we should changemax_tx_bytesto something larger:10000000(~10 MB)
# Maximum size of a single transaction.
# NOTE: the max size of a tx transmitted over the network is {max_tx_bytes}.
max_tx_bytes = 10000000- Inside
app.tomlunder theapitable, we should changerpc-max-body-bytesto something larger:10000000(~10 MB)
# RPCMaxBodyBytes defines the CometBFT maximum request body (in bytes).
rpc-max-body-bytes = 10000000