Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Nonprivileged inline action subjective limit #9262

Merged

Conversation

brianjohnson5972
Copy link
Contributor

@brianjohnson5972 brianjohnson5972 commented Jun 29, 2020

Change Description

Add new config file option max-nonprivileged-inline-action-size which is the cap for the size of an inline action above which a transaction will subjectively fail.

Change Type

Select ONE

  • Documentation
  • Stability bug fix
  • Other
  • Other - special case

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

Documentation describing config file options should be updated to include the new chain_plugin setting max-nonprivileged-inline-action-size which is the cap for the size of an inline action above which a transaction will subjectively fail. The default value is 4KB, the same as the previous limit for all inline actions. This PR will change the former max-inline-action-size default to 512KB for new chains. Existing chains will have to update the setting in the global property object. The max-inline-action-size limit will apply to inline actions from privileged accounts. Exceeding that limit continues to be an objective failure.

const static uint32_t default_max_trx_lifetime = 60*60; // 1 hour
const static uint32_t default_deferred_trx_expiration_window = 10*60; // 10 minutes
const static uint32_t default_max_trx_delay = 45*24*3600; // 45 days
const static uint32_t default_max_inline_action_size = 4 * 1024; // 512 KB
Copy link
Contributor

Choose a reason for hiding this comment

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

comment stale from mid-work commit?

Copy link
Contributor

Choose a reason for hiding this comment

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

Comment correct. Value inadvertently reverted while working on tests.

plugins/chain_plugin/chain_plugin.cpp Outdated Show resolved Hide resolved
bobgt added a commit that referenced this pull request Jun 30, 2020
New plugin option
Use default value variable in parser for new limit.
Set intended new inline action size limit.
bobgt added a commit to bobgt/eos that referenced this pull request Jul 1, 2020
New plugin option
@brianjohnson5972 brianjohnson5972 marked this pull request as ready for review July 1, 2020 20:17
unittests/api_tests.cpp Outdated Show resolved Hide resolved
unittests/api_tests.cpp Outdated Show resolved Hide resolved
unittests/api_tests.cpp Outdated Show resolved Hide resolved
unittests/api_tests.cpp Outdated Show resolved Hide resolved
@brianjohnson5972 brianjohnson5972 requested a review from b1bart July 9, 2020 14:00
@brianjohnson5972 brianjohnson5972 merged commit 5968818 into release/2.0.x Jul 9, 2020
@jgiszczak jgiszczak deleted the nonprivileged-inline-action-subjective-limit branch July 9, 2020 18:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants