-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Remove old deprecated flags, move light client, updater and private tx flags to deprecated section #11694
base: master
Are you sure you want to change the base?
Conversation
72f0724
to
525fea6
Compare
ARG arg_rpcport: (Option<u16>) = None, or |_| None, | ||
"--rpcport=[PORT]", | ||
"Equivalent to --jsonrpc-port PORT.", | ||
FLAG flag_no_hardcoded_sync: (bool) = false, or |c: &Config| c.parity.as_ref()?.no_hardcoded_sync, |
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 is light client-related also, should probably have the same comment as --light
so it's not forgotten if/when the light client
is removed.
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.
Isn't there a sub command that is used to produce the hard coded headers too? Needs deprecating too then?
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.
Do you mean export-hardcoded-sync
? Then yes
ARG arg_rpcapi: (Option<String>) = None, or |_| None, | ||
"--rpcapi=[APIS]", | ||
"Equivalent to --jsonrpc-apis APIS.", | ||
FLAG flag_no_serve_light: (bool) = false, or |c: &Config| c.network.as_ref()?.no_serve_light.clone(), |
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.
Same here, see https://github.com/openethereum/openethereum/pull/11694/files#r423164093
I assume the full nodes won't implement PIP
after #11681, thus this flag won't do anything
@@ -1204,17 +986,6 @@ struct PrivateTransactions { | |||
#[serde(deny_unknown_fields)] | |||
struct Ui { |
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.
can this be removed?
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.
I believe this is used by signer
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.
Can you elaborate? If it is, and Signer is going to be around still, maybe it's good to add a comment here to that effect?
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.
Looks good overall but these changes need to be clearly communicated to the users because it might break their configuration and expectations.
525fea6
to
e801c2f
Compare
…x flags to deprecated section
e801c2f
to
86b71ee
Compare
} | ||
/// Removed flags will go here. | ||
pub fn find_deprecated(_args: &Args) -> Vec<Deprecated> { | ||
Vec::new() |
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.
So after this PR there are no deprecated flags at all?
Deprecated::Removed("--whisper-pool-size"), | ||
]); | ||
} | ||
/// Removed flags will go here. |
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.
/// Removed flags will go here. | |
/// Returns a list of removed or currently deprecated CLI flags. |
@@ -49,7 +49,7 @@ use parity_daemonize::AsHandle; | |||
use parking_lot::{Condvar, Mutex}; | |||
|
|||
const PLEASE_RESTART_EXIT_CODE: i32 = 69; | |||
const PARITY_EXECUTABLE_NAME: &str = "parity"; | |||
const CLIENT_EXECUTABLE_NAME: &str = "openethereum"; |
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.
Maybe just EXECUTABLE_NAME
?
ARG arg_rpcport: (Option<u16>) = None, or |_| None, | ||
"--rpcport=[PORT]", | ||
"Equivalent to --jsonrpc-port PORT.", | ||
FLAG flag_no_hardcoded_sync: (bool) = false, or |c: &Config| c.parity.as_ref()?.no_hardcoded_sync, |
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.
Isn't there a sub command that is used to produce the hard coded headers too? Needs deprecating too then?
@@ -1204,17 +986,6 @@ struct PrivateTransactions { | |||
#[serde(deny_unknown_fields)] | |||
struct Ui { |
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.
Can you elaborate? If it is, and Signer is going to be around still, maybe it's good to add a comment here to that effect?
This PR removes pre-2.7 deprecated flags, and moves light client, updater and private tx toggles to their place instead. Also sets updater filter to
Never
by default and fixesparity
mentions in a couple of places.Also see #11681 and #11682