Skip to content

Commit c984995

Browse files
committed
Fix format
1 parent 7d4c6f0 commit c984995

File tree

1 file changed

+77
-77
lines changed

1 file changed

+77
-77
lines changed

src/network_parameters.cpp

Lines changed: 77 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -167,45 +167,45 @@ E3PYJ/HQcu51OyLemGhmW/HGY0dVHLqlCFF1pkgl
167167

168168
static std::map<std::string, std::shared_ptr<nlohmann::json>> registered_networks = {
169169
{ "localtest",
170-
std::make_shared<nlohmann::json>(nlohmann::json(
171-
{ { "name", "Localtest" }, { "network", "localtest" }, { "wamp_url", "ws://localhost:8080/v2/ws" },
172-
{ "wamp_onion_url", std::string() }, { "wamp_cert_pins", nlohmann::json::array() },
173-
{ "wamp_cert_roots", std::vector<std::string>{ GTS_Root_R1, IDENTX3, IDENTR3, IDENTR4, IDENTE1, IDENTE2 } },
174-
{ "address_explorer_url", std::string() }, { "tx_explorer_url", std::string() },
175-
{ "service_pubkey", "036307e560072ed6ce0aa5465534fb5c258a2ccfbc257f369e8e7a181b16d897b3" },
176-
{ "service_chain_code", "b60befcc619bb1c212732770fe181f2f1aa824ab89f8aab49f2e13e3a56f0f04" },
177-
{ "default_peers", nlohmann::json::array() }, { "p2pkh_version", 111u }, { "p2sh_version", 196u },
178-
{ "bech32_prefix", "bcrt" }, { "mainnet", false }, { "liquid", false }, { "development", true },
179-
{ "csv_buckets", std::vector<uint32_t>{ 144, 4320, 51840 } }, { "bip21_prefix", "bitcoin" },
180-
{ "electrum_url", "localhost:19002" }, { "tls", false }, { "server_type", "green" },
181-
{ "spv_enabled", false }, { "spv_cross_validation", false },
182-
{ "spv_cross_validation_servers", nlohmann::json::array() } })) },
170+
std::make_shared<nlohmann::json>(nlohmann::json({ { "name", "Localtest" }, { "network", "localtest" },
171+
{ "wamp_url", "ws://localhost:8080/v2/ws" }, { "wamp_onion_url", std::string() },
172+
{ "wamp_cert_pins", nlohmann::json::array() },
173+
{ "wamp_cert_roots", std::vector<std::string>{ GTS_Root_R1, IDENTX3, IDENTR3, IDENTR4, IDENTE1, IDENTE2 } },
174+
{ "address_explorer_url", std::string() }, { "tx_explorer_url", std::string() },
175+
{ "service_pubkey", "036307e560072ed6ce0aa5465534fb5c258a2ccfbc257f369e8e7a181b16d897b3" },
176+
{ "service_chain_code", "b60befcc619bb1c212732770fe181f2f1aa824ab89f8aab49f2e13e3a56f0f04" },
177+
{ "default_peers", nlohmann::json::array() }, { "p2pkh_version", 111u }, { "p2sh_version", 196u },
178+
{ "bech32_prefix", "bcrt" }, { "mainnet", false }, { "liquid", false }, { "development", true },
179+
{ "csv_buckets", std::vector<uint32_t>{ 144, 4320, 51840 } }, { "bip21_prefix", "bitcoin" },
180+
{ "electrum_url", "localhost:19002" }, { "tls", false }, { "server_type", "green" },
181+
{ "spv_enabled", false }, { "spv_cross_validation", false },
182+
{ "spv_cross_validation_servers", nlohmann::json::array() } })) },
183183

184184
{ "liquid",
185-
std::make_shared<nlohmann::json>(nlohmann::json(
186-
{ { "name", "Liquid" }, { "network", "liquid" }, { "wamp_url", "wss://liquidwss.greenaddress.it/v2/ws" },
187-
{ "wamp_onion_url", "ws://liquidbtc7u746j4.onion/v2/ws" },
188-
{ "wamp_cert_pins",
189-
std::vector<std::string>{ "25847d668eb4f04fdd40b12b6b0740c567da7d024308eb6c2c96fe41d9de218d",
190-
"730c1bdcd85f57ce5dc0bba733e5f1ba5a925b2a771d640a26f7a454224dad3b",
191-
"46494e30379059df18be52124305e606fc59070e5b21076ce113954b60517cda",
192-
"5a8f16fda448d783481cca57a2428d174dad8c60943ceb28f661ae31fd39a5fa",
193-
"b42688d73bac5099d9cf4fdb7b05f5e54e98c5aa8ab56ee06c297a9a84d2d5f1" } },
194-
{ "wamp_cert_roots", std::vector<std::string>{ GTS_Root_R1, IDENTX3, IDENTR3, IDENTR4, IDENTE1, IDENTE2 } },
195-
{ "address_explorer_url", "https://blockstream.info/liquid/address/" },
196-
{ "asset_registry_url", "https://assets.blockstream.info" },
197-
{ "asset_registry_onion_url", "http://vi5flmr4z3h3luup.onion" },
198-
{ "tx_explorer_url", "https://blockstream.info/liquid/tx/" },
199-
{ "service_pubkey", "02c408c3bb8a3d526103fb93246f54897bdd997904d3e18295b49a26965cb41b7f" },
200-
{ "service_chain_code", "02721cc509aa0c2f4a90628e9da0391b196abeabc6393ed4789dd6222c43c489" },
201-
{ "default_peers", nlohmann::json::array() }, { "p2pkh_version", 57u }, { "p2sh_version", 39u },
202-
{ "bech32_prefix", "ex" }, { "mainnet", true }, { "liquid", true }, { "development", false },
203-
{ "policy_asset", "6f0279e9ed041c3d710a9f57d0c02928416460c4b722ae3457a11eec381c526d" },
204-
{ "blinded_prefix", 12u }, { "ct_exponent", 0 }, { "ct_bits", 52 }, { "blech32_prefix", "lq" },
205-
{ "csv_buckets", std::vector<uint32_t>{ 25920, 51840, 65535 } }, { "bip21_prefix", "liquidnetwork" },
206-
{ "electrum_url", "blockstream.info:995" }, { "spv_enabled", false }, { "tls", true },
207-
{ "server_type", "green" }, { "spv_cross_validation", false },
208-
{ "spv_cross_validation_servers", nlohmann::json::array() } })) },
185+
std::make_shared<nlohmann::json>(nlohmann::json({ { "name", "Liquid" }, { "network", "liquid" },
186+
{ "wamp_url", "wss://liquidwss.greenaddress.it/v2/ws" },
187+
{ "wamp_onion_url", "ws://liquidbtc7u746j4.onion/v2/ws" },
188+
{ "wamp_cert_pins",
189+
std::vector<std::string>{ "25847d668eb4f04fdd40b12b6b0740c567da7d024308eb6c2c96fe41d9de218d",
190+
"730c1bdcd85f57ce5dc0bba733e5f1ba5a925b2a771d640a26f7a454224dad3b",
191+
"46494e30379059df18be52124305e606fc59070e5b21076ce113954b60517cda",
192+
"5a8f16fda448d783481cca57a2428d174dad8c60943ceb28f661ae31fd39a5fa",
193+
"b42688d73bac5099d9cf4fdb7b05f5e54e98c5aa8ab56ee06c297a9a84d2d5f1" } },
194+
{ "wamp_cert_roots", std::vector<std::string>{ GTS_Root_R1, IDENTX3, IDENTR3, IDENTR4, IDENTE1, IDENTE2 } },
195+
{ "address_explorer_url", "https://blockstream.info/liquid/address/" },
196+
{ "asset_registry_url", "https://assets.blockstream.info" },
197+
{ "asset_registry_onion_url", "http://vi5flmr4z3h3luup.onion" },
198+
{ "tx_explorer_url", "https://blockstream.info/liquid/tx/" },
199+
{ "service_pubkey", "02c408c3bb8a3d526103fb93246f54897bdd997904d3e18295b49a26965cb41b7f" },
200+
{ "service_chain_code", "02721cc509aa0c2f4a90628e9da0391b196abeabc6393ed4789dd6222c43c489" },
201+
{ "default_peers", nlohmann::json::array() }, { "p2pkh_version", 57u }, { "p2sh_version", 39u },
202+
{ "bech32_prefix", "ex" }, { "mainnet", true }, { "liquid", true }, { "development", false },
203+
{ "policy_asset", "6f0279e9ed041c3d710a9f57d0c02928416460c4b722ae3457a11eec381c526d" },
204+
{ "blinded_prefix", 12u }, { "ct_exponent", 0 }, { "ct_bits", 52 }, { "blech32_prefix", "lq" },
205+
{ "csv_buckets", std::vector<uint32_t>{ 25920, 51840, 65535 } }, { "bip21_prefix", "liquidnetwork" },
206+
{ "electrum_url", "blockstream.info:995" }, { "spv_enabled", false }, { "tls", true },
207+
{ "server_type", "green" }, { "spv_cross_validation", false },
208+
{ "spv_cross_validation_servers", nlohmann::json::array() } })) },
209209

210210
{ "localtest-liquid",
211211
std::make_shared<nlohmann::json>(nlohmann::json({ { "name", "Localtest Liquid" },
@@ -227,48 +227,48 @@ static std::map<std::string, std::shared_ptr<nlohmann::json>> registered_network
227227
{ "spv_cross_validation_servers", nlohmann::json::array() } })) },
228228

229229
{ "mainnet",
230-
std::make_shared<nlohmann::json>(nlohmann::json(
231-
{ { "name", "Bitcoin" }, { "network", "mainnet" }, { "wamp_url", "wss://prodwss.greenaddress.it/v2/ws" },
232-
{ "wamp_onion_url", "ws://s7a4rvc6425y72d2.onion/v2/ws" },
233-
{ "wamp_cert_pins",
234-
std::vector<std::string>{ "25847d668eb4f04fdd40b12b6b0740c567da7d024308eb6c2c96fe41d9de218d",
235-
"730c1bdcd85f57ce5dc0bba733e5f1ba5a925b2a771d640a26f7a454224dad3b",
236-
"46494e30379059df18be52124305e606fc59070e5b21076ce113954b60517cda",
237-
"5a8f16fda448d783481cca57a2428d174dad8c60943ceb28f661ae31fd39a5fa",
238-
"b42688d73bac5099d9cf4fdb7b05f5e54e98c5aa8ab56ee06c297a9a84d2d5f1" } },
239-
{ "wamp_cert_roots", std::vector<std::string>{ GTS_Root_R1, IDENTX3, IDENTR3, IDENTR4, IDENTE1, IDENTE2 } },
240-
{ "address_explorer_url", "https://blockstream.info/address/" },
241-
{ "tx_explorer_url", "https://blockstream.info/tx/" },
242-
{ "service_pubkey", "0322c5f5c9c4b9d1c3e22ca995e200d724c2d7d8b6953f7b38fddf9296053c961f" },
243-
{ "service_chain_code", "e9a563d68686999af372a33157209c6860fe79197a4dafd9ec1dbaa49523351d" },
244-
{ "default_peers", nlohmann::json::array() }, { "p2pkh_version", 0u }, { "p2sh_version", 5u },
245-
{ "bech32_prefix", "bc" }, { "mainnet", true }, { "liquid", false }, { "development", false },
246-
{ "csv_buckets", std::vector<uint32_t>{ 25920, 51840, 65535 } }, { "bip21_prefix", "bitcoin" },
247-
{ "electrum_url", "blockstream.info:700" }, { "spv_enabled", false }, { "tls", true },
248-
{ "server_type", "green" }, { "spv_cross_validation", false },
249-
{ "spv_cross_validation_servers", nlohmann::json::array() } })) },
230+
std::make_shared<nlohmann::json>(nlohmann::json({ { "name", "Bitcoin" }, { "network", "mainnet" },
231+
{ "wamp_url", "wss://prodwss.greenaddress.it/v2/ws" },
232+
{ "wamp_onion_url", "ws://s7a4rvc6425y72d2.onion/v2/ws" },
233+
{ "wamp_cert_pins",
234+
std::vector<std::string>{ "25847d668eb4f04fdd40b12b6b0740c567da7d024308eb6c2c96fe41d9de218d",
235+
"730c1bdcd85f57ce5dc0bba733e5f1ba5a925b2a771d640a26f7a454224dad3b",
236+
"46494e30379059df18be52124305e606fc59070e5b21076ce113954b60517cda",
237+
"5a8f16fda448d783481cca57a2428d174dad8c60943ceb28f661ae31fd39a5fa",
238+
"b42688d73bac5099d9cf4fdb7b05f5e54e98c5aa8ab56ee06c297a9a84d2d5f1" } },
239+
{ "wamp_cert_roots", std::vector<std::string>{ GTS_Root_R1, IDENTX3, IDENTR3, IDENTR4, IDENTE1, IDENTE2 } },
240+
{ "address_explorer_url", "https://blockstream.info/address/" },
241+
{ "tx_explorer_url", "https://blockstream.info/tx/" },
242+
{ "service_pubkey", "0322c5f5c9c4b9d1c3e22ca995e200d724c2d7d8b6953f7b38fddf9296053c961f" },
243+
{ "service_chain_code", "e9a563d68686999af372a33157209c6860fe79197a4dafd9ec1dbaa49523351d" },
244+
{ "default_peers", nlohmann::json::array() }, { "p2pkh_version", 0u }, { "p2sh_version", 5u },
245+
{ "bech32_prefix", "bc" }, { "mainnet", true }, { "liquid", false }, { "development", false },
246+
{ "csv_buckets", std::vector<uint32_t>{ 25920, 51840, 65535 } }, { "bip21_prefix", "bitcoin" },
247+
{ "electrum_url", "blockstream.info:700" }, { "spv_enabled", false }, { "tls", true },
248+
{ "server_type", "green" }, { "spv_cross_validation", false },
249+
{ "spv_cross_validation_servers", nlohmann::json::array() } })) },
250250

251251
{ "testnet",
252-
std::make_shared<nlohmann::json>(nlohmann::json(
253-
{ { "name", "Testnet" }, { "network", "testnet" }, { "wamp_url", "wss://testwss.greenaddress.it/v2/ws" },
254-
{ "wamp_onion_url", "ws://gu5ke7a2aguwfqhz.onion/v2/ws" },
255-
{ "wamp_cert_pins",
256-
std::vector<std::string>{ "25847d668eb4f04fdd40b12b6b0740c567da7d024308eb6c2c96fe41d9de218d",
257-
"730c1bdcd85f57ce5dc0bba733e5f1ba5a925b2a771d640a26f7a454224dad3b",
258-
"46494e30379059df18be52124305e606fc59070e5b21076ce113954b60517cda",
259-
"5a8f16fda448d783481cca57a2428d174dad8c60943ceb28f661ae31fd39a5fa",
260-
"b42688d73bac5099d9cf4fdb7b05f5e54e98c5aa8ab56ee06c297a9a84d2d5f1" } },
261-
{ "wamp_cert_roots", std::vector<std::string>{ GTS_Root_R1, IDENTX3, IDENTR3, IDENTR4, IDENTE1, IDENTE2 } },
262-
{ "address_explorer_url", "https://blockstream.info/testnet/address/" },
263-
{ "tx_explorer_url", "https://blockstream.info/testnet/tx/" },
264-
{ "electrum_url", "blockstream.info:993" }, { "spv_enabled", false }, { "tls", true },
265-
{ "service_pubkey", "036307e560072ed6ce0aa5465534fb5c258a2ccfbc257f369e8e7a181b16d897b3" },
266-
{ "service_chain_code", "b60befcc619bb1c212732770fe181f2f1aa824ab89f8aab49f2e13e3a56f0f04" },
267-
{ "default_peers", nlohmann::json::array() }, { "p2pkh_version", 111u }, { "p2sh_version", 196u },
268-
{ "bech32_prefix", "tb" }, { "mainnet", false }, { "liquid", false }, { "development", false },
269-
{ "csv_buckets", std::vector<uint32_t>{ 144, 4320, 51840 } }, { "bip21_prefix", "bitcoin" },
270-
{ "server_type", "green" }, { "spv_cross_validation", false },
271-
{ "spv_cross_validation_servers", nlohmann::json::array() } })) },
252+
std::make_shared<nlohmann::json>(nlohmann::json({ { "name", "Testnet" }, { "network", "testnet" },
253+
{ "wamp_url", "wss://testwss.greenaddress.it/v2/ws" },
254+
{ "wamp_onion_url", "ws://gu5ke7a2aguwfqhz.onion/v2/ws" },
255+
{ "wamp_cert_pins",
256+
std::vector<std::string>{ "25847d668eb4f04fdd40b12b6b0740c567da7d024308eb6c2c96fe41d9de218d",
257+
"730c1bdcd85f57ce5dc0bba733e5f1ba5a925b2a771d640a26f7a454224dad3b",
258+
"46494e30379059df18be52124305e606fc59070e5b21076ce113954b60517cda",
259+
"5a8f16fda448d783481cca57a2428d174dad8c60943ceb28f661ae31fd39a5fa",
260+
"b42688d73bac5099d9cf4fdb7b05f5e54e98c5aa8ab56ee06c297a9a84d2d5f1" } },
261+
{ "wamp_cert_roots", std::vector<std::string>{ GTS_Root_R1, IDENTX3, IDENTR3, IDENTR4, IDENTE1, IDENTE2 } },
262+
{ "address_explorer_url", "https://blockstream.info/testnet/address/" },
263+
{ "tx_explorer_url", "https://blockstream.info/testnet/tx/" }, { "electrum_url", "blockstream.info:993" },
264+
{ "spv_enabled", false }, { "tls", true },
265+
{ "service_pubkey", "036307e560072ed6ce0aa5465534fb5c258a2ccfbc257f369e8e7a181b16d897b3" },
266+
{ "service_chain_code", "b60befcc619bb1c212732770fe181f2f1aa824ab89f8aab49f2e13e3a56f0f04" },
267+
{ "default_peers", nlohmann::json::array() }, { "p2pkh_version", 111u }, { "p2sh_version", 196u },
268+
{ "bech32_prefix", "tb" }, { "mainnet", false }, { "liquid", false }, { "development", false },
269+
{ "csv_buckets", std::vector<uint32_t>{ 144, 4320, 51840 } }, { "bip21_prefix", "bitcoin" },
270+
{ "server_type", "green" }, { "spv_cross_validation", false },
271+
{ "spv_cross_validation_servers", nlohmann::json::array() } })) },
272272

273273
{ "regtest",
274274
std::make_shared<nlohmann::json>(nlohmann::json({ { "name", "Regtest" }, { "network", "regtest" },

0 commit comments

Comments
 (0)