Remove node-health#9119
Conversation
| ARG arg_ntp_servers: (String) = "0.parity.pool.ntp.org:123,1.parity.pool.ntp.org:123,2.parity.pool.ntp.org:123,3.parity.pool.ntp.org:123", or |c: &Config| c.misc.as_ref()?.ntp_servers.clone().map(|vec| vec.join(",")), | ||
| "--ntp-servers=[HOSTS]", | ||
| "Comma separated list of NTP servers to provide current time (host:port). Used to verify node health. Parity uses pool.ntp.org NTP servers; consider joining the pool: http://www.pool.ntp.org/join.html", | ||
|
|
There was a problem hiding this comment.
I believe this should be deprecated as per: #9036
There was a problem hiding this comment.
It also needs to be added to https://github.com/paritytech/parity/blob/master/parity/deprecated.rs, so that it produces a warning message if the deprecated arg is used.
| use updater::{Service as UpdateService}; | ||
| use jsonrpc_core::{BoxFuture, Result}; | ||
| use jsonrpc_core::futures::{future, Future}; | ||
| use jsonrpc_core::futures::{future}; |
There was a problem hiding this comment.
use jsonrpc_core::futures::future;
| color: Option<bool>, | ||
| ports_shift: Option<u16>, | ||
| unsafe_expose: Option<bool>, | ||
| _legacy_ntp_servers: Option<Vec<String>>, |
There was a problem hiding this comment.
I know we did this for some other deprecated options, but do we need to keep this fields? Seems like it isn't used anywhere besides when parsing the argument. We can use or |_| None in that case.
There was a problem hiding this comment.
So I removed this field in my last commit. But the other ones are still there. Probably to be removed in the scope of another pr?
| use ethstore::ethkey::{Generator, Random}; | ||
| use miner::pool::local_transactions::Status as LocalTransactionStatus; | ||
| use node_health::{self, NodeHealth}; | ||
| use parity_reactor; |
|
The NTP code was my first contribution to parity 😛. |
* Remove node-health * Remove ntp_servers * Add --ntp-servers as legacy instead of removing it * Add --ntp-servers to deprecated args * Remove unused stuff * Remove _legacy_ntp_servers
* parity-version: bump beta to 2.0.1 * ci: update version strings for snaps * Be more graceful on Aura difficulty validation (#9164) * Be more graceful on Aura difficulty validation * test: rejects_step_backwards * test: proposer_switching * test: rejects_future_block * test: reports_skipped * test: verify_empty_seal_steps * Remove node-health (#9119) * Remove node-health * Remove ntp_servers * Add --ntp-servers as legacy instead of removing it * Add --ntp-servers to deprecated args * Remove unused stuff * Remove _legacy_ntp_servers * parity: fix UserDefaults json parser (#9189) * parity: fix UserDefaults json parser * parity: use serde_derive for UserDefaults * parity: support deserialization of old UserDefault json format * parity: make UserDefaults serde backwards compatible * parity: tabify indentation in UserDefaults * Fix bugfix hard fork logic (#9138) * Fix bugfix hard fork logic * Remove dustProtectionTransition from bugfix category EIP-168 is not enabled by default * Remove unnecessary 'static * Disable per-sender limit for local transactions. (#9148) * Disable per-sender limit for local transactions. * Add a missing new line. * rpc: fix is_major_importing sync state condition (#9112) * rpc: fix is_major_importing sync state condition * rpc: fix informant printout when waiting for peers * fix verification in ethcore-sync collect_blocks (#9135) * docker: update hub dockerfile (#9173) * update Dockerfile for hub update to Ubuntu Xenial 16.04 fix cmake version * docker: fix tab indentation in hub dockerfile * rpc: fix broken merge * rcp: remove node_health leftover from merge * rpc: remove dapps leftover from merge
node-healthand theparity_nodeHealthRPCntp_servers, as it was only used bynode-healthto check if local clock is sync.Parity UI starting from v0.3.0 is free from
parity_nodeHealthcalls. The info returned by node-health has been replaced by: