Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(comms/rpc): increase max frame size limit for rpc requests #4724

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Sep 22, 2022

Description

Increases max frame size for RPC from 2MiB to 3MiB

Motivation and Context

A wallet may need submit transactions greater than 2MiB in size

How Has This Been Tested?

Existing tests pass

Copy link
Contributor

@hansieodendaal hansieodendaal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should ensure that a negotiated & finalized transaction can always be submitted to a base node.

For example, a unit test can verify max transaction constants (MAX_TRANSACTION_INPUTS, MAX_TRANSACTION_OUTPUTS) to calculate an approximate maximum transaction size (using normal transaction inputs and outputs) and compare it to RPC_MAX_FRAME_SIZE.

Copy link
Contributor

@hansieodendaal hansieodendaal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

(I made an issue for the unit test so we do not forget, not part of this PR)

@stringhandler stringhandler merged commit 239b64b into tari-project:development Sep 26, 2022
@sdbondi sdbondi deleted the comms-rpc-increase-frame-size-limit branch September 27, 2022 05:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants