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

No need to prompt the user to set bnet-no-trx #6065

Merged
merged 2 commits into from
Oct 24, 2018

Conversation

fingera
Copy link
Contributor

@fingera fingera commented Oct 19, 2018

Change Description
No need to prompt the user to set bnet-no-trx to true?

@fingera fingera changed the title No need to prompt the user No need to prompt the user to set bnet-no-trx Oct 19, 2018
@@ -1403,7 +1384,6 @@ namespace eosio {

if( app().get_plugin<chain_plugin>().chain().get_read_mode() == chain::db_read_mode::READ_ONLY ) {
my->_request_trx = false;
ilog( "setting bnet-no-trx to true since in read-only mode" );
Copy link
Contributor

Choose a reason for hiding this comment

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

I would prefer to keep the ilog so it is clear the side effect. You can ilog only if my->_request_trx is true.

Copy link
Contributor Author

@fingera fingera Oct 23, 2018

Choose a reason for hiding this comment

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

ok, added ilog when bnet-no-trx=false(_request_trx=true)

@wanderingbort wanderingbort merged commit 66b7e1a into EOSIO:develop Oct 24, 2018
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.

3 participants