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

Support read only transactions 📦 #11020

Conversation

softprofe
Copy link
Contributor

@softprofe softprofe commented Jan 7, 2022

Change Description

Support read only transactions develop boxed. See EPE 1898.
Moving PR #10189 to develop-boxed. Solved the conflict and made some adaption for compile problem.

If any more eos PR need for read only query feature, will move in other PR. this PR just for move 10189.

Change Type

Select ONE:

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

Testing Changes

Select ANY that apply:

  • New Tests
  • Existing Tests
  • Test Framework
  • CI System
  • Other

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

jgiszczak and others added 26 commits January 4, 2022 13:40
Test verifies new cleos option --return-failure-trace is accepted but
does not test its functionality.
…8-support-read-only-transactions-develop-boxed
plugins/chain_plugin/chain_plugin.cpp Outdated Show resolved Hide resolved
libraries/chain/controller.cpp Outdated Show resolved Hide resolved
plugins/chain_plugin/chain_plugin.cpp Outdated Show resolved Hide resolved
}
}
next(read_only::push_ro_transaction_results{db.head_block_num(), db.head_block_id(), db.last_irreversible_block_num(), db.last_irreversible_block_id(),
accnt_metadata_obj.code_hash, pending_transactions, output});
Copy link
Contributor

Choose a reason for hiding this comment

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

Should use std::move(pending_transactions)

Copy link
Contributor

Choose a reason for hiding this comment

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

I think you missed this one.

plugins/chain_plugin/chain_plugin.cpp Outdated Show resolved Hide resolved
plugins/producer_plugin/producer_plugin.cpp Outdated Show resolved Hide resolved
plugins/producer_plugin/test/test_trx_full.cpp Outdated Show resolved Hide resolved
}
next(read_only::push_ro_transaction_results{db.head_block_num(), db.head_block_id(), db.last_irreversible_block_num(), db.last_irreversible_block_id(),
accnt_metadata_obj.code_hash, pending_transactions, output});
Copy link
Contributor

Choose a reason for hiding this comment

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

next always has to be called. It needs moved outside the if.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved out of if, but compile failed. the parameter of next() need change, just paste the code that you want here to save the forth and back.

@heifner heifner changed the title Support read only transactions develop boxed. Support read only transactions 📦 Jan 24, 2022
@softprofe softprofe merged commit 9320bdf into develop-boxed Jan 24, 2022
@softprofe softprofe deleted the kli-EPE-1898-support-read-only-transactions-develop-boxed branch January 24, 2022 16:42
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