fixed formatting with cargo fmt --all
@@ -315,8 +315,9 @@ static CHAIN_PARAMS_TESTNET: Lazy<ChainParams> = Lazy::new(|| {
ChainParams {
name: "testnet".to_string(),
p2p_magic: P2pNetworkId::Testnet,
- genesis_hash: BlockHash::from_slice(GENESIS_HASH_TESTNET)
- .expect("Bitcoin testnet genesis hash contains invalid binary data"),
+ genesis_hash: BlockHash::from_slice(GENESIS_HASH_TESTNET).expect(
+ "Bitcoin testnet genesis hash contains invalid binary data",
+ ),
bip70_name: "test".to_string(),
bip173_prefix: "tb".to_string(),
p2p_port: 18333,
@@ -331,8 +332,9 @@ static CHAIN_PARAMS_TESTNET: Lazy<ChainParams> = Lazy::new(|| {
unit_of_accounting: "Test Bitcoin".to_string(),
indivisible_unit: "Test satoshi".to_string(),
divisibility: 100_000_000,
- asset_id: AssetId::from_slice(GENESIS_HASH_TESTNET)
- .expect("Bitcoin testnet genesis hash contains invalid binary data"),
+ asset_id: AssetId::from_slice(GENESIS_HASH_TESTNET).expect(
+ "Bitcoin testnet genesis hash contains invalid binary data",
+ ),
asset_system: AssetSystem::NativeBlockchain,
},
is_testnet: true,
@@ -341,8 +343,7 @@ static CHAIN_PARAMS_TESTNET: Lazy<ChainParams> = Lazy::new(|| {
});
/// Bitcoin regtest chain parameters
-static CHAIN_PARAMS_REGTEST: Lazy<ChainParams> = Lazy::new(|| {
- ChainParams {
+static CHAIN_PARAMS_REGTEST: Lazy<ChainParams> = Lazy::new(|| ChainParams {
name: "regtest".to_string(),
p2p_magic: P2pNetworkId::Regtest,
genesis_hash: BlockHash::from_slice(GENESIS_HASH_REGTEST)
@@ -360,18 +361,17 @@ static CHAIN_PARAMS_REGTEST: Lazy<ChainParams> = Lazy::new(|| {
unit_of_accounting: "Test Bitcoin".to_string(),
indivisible_unit: "Test satoshi".to_string(),
divisibility: 100_000_000,
- asset_id: AssetId::from_slice(GENESIS_HASH_REGTEST)
- .expect("Bitcoin regtest genesis hash contains invalid binary data"),
+ asset_id: AssetId::from_slice(GENESIS_HASH_REGTEST).expect(
+ "Bitcoin regtest genesis hash contains invalid binary data",
+ ),
asset_system: AssetSystem::NativeBlockchain,
},
is_testnet: true,
is_pow: false,
- }
});
/// Bitcoin signet chain parameters
-static CHAIN_PARAMS_SIGNET: Lazy<ChainParams> = Lazy::new(|| {
- ChainParams {
+static CHAIN_PARAMS_SIGNET: Lazy<ChainParams> = Lazy::new(|| ChainParams {
name: "signet".to_string(),
p2p_magic: P2pNetworkId::Signet,
genesis_hash: BlockHash::from_slice(GENESIS_HASH_SIGNET)
@@ -395,14 +395,14 @@ static CHAIN_PARAMS_SIGNET: Lazy<ChainParams> = Lazy::new(|| {
},
is_testnet: true,
is_pow: false,
- }
});
/// Liquid V1 chain parameters
static CHAIN_PARAMS_LIQUIDV1: Lazy<ChainParams> = Lazy::new(|| {
ChainParams {
name: "liquidv1".to_string(),
- // TODO #216: check Liquid network magic number and change this if needed
+ // TODO #216: check Liquid network magic number and change this if
+ // needed
p2p_magic: P2pNetworkId::Mainnet,
genesis_hash: BlockHash::from_slice(GENESIS_HASH_LIQUIDV1)
.expect("Liquid V1 genesis hash contains invalid binary data"),
