Use tagged serialization for blockchain config

also make the config types Clone and PartialEq
This commit is contained in:
LLFourn
2021-03-25 16:28:38 +11:00
parent 1e6b8e12b2
commit 882a9c27cc
5 changed files with 33 additions and 5 deletions

View File

@@ -144,7 +144,7 @@ impl ElectrumLikeSync for Client {
}
/// Configuration for an [`ElectrumBlockchain`]
#[derive(Debug, serde::Deserialize, serde::Serialize)]
#[derive(Debug, serde::Deserialize, serde::Serialize, Clone, PartialEq)]
pub struct ElectrumBlockchainConfig {
/// URL of the Electrum server (such as ElectrumX, Esplora, BWT) may start with `ssl://` or `tcp://` and include a port
///