-
Notifications
You must be signed in to change notification settings - Fork 648
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
Add application option to disable notify_remove_create
parameter in set_subscribe_callback
API
#725
Conversation
I suppose this breaks things for some API users. What's the reason for the change? |
I guess nobody is using this flag except probably the block chain explorers and arbitrage bots. When it's set to |
Perhaps better if have a startup option for it, disabled by default? |
If it's not being used then there will no performance gain. If it is in use this change will break things. Making it configurable would be ok IMO. |
notify_remove_create
parameter in set_subscribe_callback
APInotify_remove_create
parameter in set_subscribe_callback
API
910c672
to
883cb05
Compare
@@ -404,6 +405,9 @@ namespace detail { | |||
_force_validate = true; | |||
} | |||
|
|||
if( _options->count("enable-subscribe-to-all") ) | |||
_app_options.enable_subscribe_to_all = _options->at("enable-subscribe-to-all").as<bool>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This as() is not a variant::as(), it's from boost::program_options. I don't think we need to sanitize that.
Including: * set_subscribe_callback * set_pending_transaction_callback * set_block_applied_callback
Temporarily commented out for future improvement.Update:
Added an
"enable-subscribe-to-all"
option inapplication.cpp
, default value isfalse
. Force-pushed.