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

Remove defer transaction configuration options and block incoming delayed transactions #1643

Merged
merged 35 commits into from
Sep 29, 2023

Conversation

linh2931
Copy link
Member

@linh2931 linh2931 commented Sep 15, 2023

Resolved #1556

  • removed --max-scheduled-transaction-time-per-block-ms
  • removed --incoming-defer-ratio
  • simplified process_scheduled_and_incoming_trxs
  • blocked delayed transactions
  • removed member delay from transaction_context class
  • added and updated tests
  • modified documents
  • other necessary changes

@linh2931 linh2931 requested review from heifner and arhag September 15, 2023 13:08
Copy link
Member

@heifner heifner left a comment

Choose a reason for hiding this comment

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

So happy to see this!

plugins/producer_plugin/producer_plugin.cpp Outdated Show resolved Hide resolved
plugins/producer_plugin/producer_plugin.cpp Outdated Show resolved Hide resolved
plugins/producer_plugin/producer_plugin.cpp Outdated Show resolved Hide resolved
Copy link
Member

@arhag arhag left a comment

Choose a reason for hiding this comment

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

#1556 says to also "block delayed transactions". This means the check in transaction_context::init_for_input_trx should be updated to disallow non-zero delay_sec for all transaction types (not just read-only and dry-run ones). It also means that transaction_context::schedule_transaction can be removed.

@linh2931
Copy link
Member Author

#1556 says to also "block delayed transactions". This means the check in transaction_context::init_for_input_trx should be updated to disallow non-zero delay_sec for all transaction types (not just read-only and dry-run ones). It also means that transaction_context::schedule_transaction can be removed.

I will updated the tests.

unittests/delay_tests.cpp Show resolved Hide resolved
unittests/delay_tests.cpp Show resolved Hide resolved
unittests/delay_tests.cpp Show resolved Hide resolved
unittests/delay_tests.cpp Outdated Show resolved Hide resolved
unittests/delay_tests.cpp Show resolved Hide resolved
unittests/protocol_feature_tests.cpp Show resolved Hide resolved
libraries/chain/controller.cpp Outdated Show resolved Hide resolved
plugins/producer_plugin/producer_plugin.cpp Show resolved Hide resolved
plugins/producer_plugin/producer_plugin.cpp Show resolved Hide resolved
plugins/producer_plugin/producer_plugin.cpp Outdated Show resolved Hide resolved
unittests/delay_tests.cpp Show resolved Hide resolved
@linh2931 linh2931 merged commit 133b33b into main Sep 29, 2023
22 checks passed
@linh2931 linh2931 deleted the remove_defer_trx_config branch September 29, 2023 01:47
@linh2931 linh2931 changed the title Remove defer transaction configuration options Remove defer transaction configuration options and block incoming delayed transactions Sep 29, 2023
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.

DTrx: Remove deferred trxs configuration
3 participants