-
Notifications
You must be signed in to change notification settings - Fork 24
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 CLI option to control feerate argument from mempool #1230
Add CLI option to control feerate argument from mempool #1230
Conversation
node-gui/src/backend/backend_impl.rs
Outdated
@@ -376,7 +376,8 @@ impl Backend { | |||
.get_mut(&wallet_id) | |||
.ok_or(BackendError::UnknownWalletIndex(wallet_id))? | |||
.controller | |||
.synced_controller(account_index) | |||
// TODO: add option to select from GUI | |||
.synced_controller(account_index, ControllerConfig { in_top_x_mb: 5 }) |
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.
Please, no magic numbers in the middle of the code.
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.
added the constant at the top with a comment
test-rpc-functions/src/rpc.rs
Outdated
.expect("Subsystem call ok") | ||
.expect("Subsystem call ok"); |
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.
It's a very bad idea to have two expects, right after each other, and with the exact same message... basically if this error happens, it may be difficult to know where it really happened.
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.
changed the message
- add in-top-x-mb argument to control how much to prioritize the transaction feerate so the transaction can get in the top x MB of the mempool - add functional test
e1804c0
to
40709c0
Compare
transaction feerate so the transaction can get in the top x MB of the
mempool