Skip to content

Commit

Permalink
Update electrum servers (#6)
Browse files Browse the repository at this point in the history
* chore: update mainnet electrum servers and certs

* fix: update threshold to 1/5 instead of 1/2 if servers > 15
  • Loading branch information
HashEngineering authored Jan 20, 2024
1 parent 0f9bfff commit f2a85d5
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 33 deletions.
64 changes: 32 additions & 32 deletions wallet/assets-prod/electrum-servers.txt
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
tls:electrum1.groestlcoin.org::48dce283a7456834ebdd4f3442f5526e4bfcd266f996534d717b7d07ac1e5d2b
tls:electrum2.groestlcoin.org::e9486872f728269837e01e37584230ae9800976db701eda480077380d43b8246
tls:electrum11.groestlcoin.org::
tls:electrum12.groestlcoin.org::
tls:electrum13.groestlcoin.org::
tls:electrum14.groestlcoin.org::
tls:electrum15.groestlcoin.org::
tls:electrum16.groestlcoin.org::
tls:electrum17.groestlcoin.org::
tls:electrum18.groestlcoin.org::
tls:electrum19.groestlcoin.org::
tls:electrum20.groestlcoin.org::
tls:electrum21.groestlcoin.org::
tls:electrum22.groestlcoin.org::
tls:electrum23.groestlcoin.org::
tls:electrum24.groestlcoin.org::
tls:electrum25.groestlcoin.org::
tls:electrum26.groestlcoin.org::
tls:electrum27.groestlcoin.org::
tls:electrum28.groestlcoin.org::
tls:electrum29.groestlcoin.org::
tls:electrum30.groestlcoin.org::
tls:electrum31.groestlcoin.org::
tls:electrum32.groestlcoin.org::
tls:electrum33.groestlcoin.org::
tls:electrum34.groestlcoin.org::
tls:electrum35.groestlcoin.org::
tls:electrum36.groestlcoin.org::
tls:electrum37.groestlcoin.org::
tls:electrum38.groestlcoin.org::
tls:electrum39.groestlcoin.org::
tls:electrum40.groestlcoin.org::
tls:electrum1.groestlcoin.org::bf7e706294637048301445edd4549903253fcbe681d4908de7291271e37fb7ab
tls:electrum2.groestlcoin.org::4a5ee775090917a91bf5becf71297325ad33096ef6f30d6705e8ee82c948cb56
tls:electrum11.groestlcoin.org::80a4a1a2a0ea4c6a0d6f5e3f6c6c302cbcfd46819d2f9b4fd973ac78050827f4
tls:electrum12.groestlcoin.org::11d59a82ccf892639b90d279a75504d29afb246355494356daa4a666a8ee2884
tls:electrum13.groestlcoin.org::0ce6d5c30258433d3f52e214bcfb58f3fcc14c28f1e129d615eec39b1b3a19f7
tls:electrum14.groestlcoin.org::579a40f9d131d36bdd88e8ce9db2146df4a2c5c16bda8a8ae93be54b7d740d13
tls:electrum15.groestlcoin.org::e0979b11ca24d1c1e18602dff23a3aa8de88c55daf0ad145b975b7eb2dc99028
tls:electrum16.groestlcoin.org::41ef5c4cbd6179b6f8f6b4c0aa13d6fde7c14041c5129be29d76a331361d5828
tls:electrum17.groestlcoin.org::e902979cf782495daae97b70f971398aca9c5e6d802978f88b5f9c0fc92d6583
tls:electrum28.groestlcoin.org::ea7bd19e0bf83dc4f21e0e685605dee40cff4bfd79ee10d3d70d0d67b69113ec
tls:electrum19.groestlcoin.org::4827f368db0b71866803e8cb8c2eea0b22ad376638660dda2cd3a06c6025f5f2
tls:electrum20.groestlcoin.org::7112580a66afc54c79f1cb86932e72c37912dac01f847dd081fff376df2e726c
tls:electrum21.groestlcoin.org::c42dda1aa2df455b84fe05a3b9e1e5ff100e4bdc94f5467268527383959fa29d
tls:electrum22.groestlcoin.org::d2eda3d98874f34e11926790682322cd967720f2d886d657028d7c20537d07d7
tls:electrum23.groestlcoin.org::ef437276c1e0c3ccd31e970ca49763b2d64e76c06479e62925e25c8e2629521a
tls:electrum24.groestlcoin.org::fac62b4dc05072f7967780b435c9ae2beda17f9ee4a24f4e35c06473564969dc
tls:electrum25.groestlcoin.org::f676475868b93e0d246d818b9e8093ddaaead2bfa7407d48687d2f9e4538cff2
tls:electrum26.groestlcoin.org::719f280723760592fbba706213def9a08bad09850f220534857abf9a71d1247a
tls:electrum27.groestlcoin.org::858cca2ac5e8ede25384553f394762f9d0eab44a55041b7412f3b36e5755154d
tls:electrum28.groestlcoin.org::ea7bd19e0bf83dc4f21e0e685605dee40cff4bfd79ee10d3d70d0d67b69113ec
tls:electrum29.groestlcoin.org::c107f5afb10f222b1485088a1da82a958edadac190e316ad7c046cb83ab6fd33
tls:electrum30.groestlcoin.org::6111b74910a610a823683a01b64612b34975f802bf69baff3fdfa6aa480ef8b5
tls:electrum31.groestlcoin.org::f5a63d140c143c486e3356b391681febba88f3735f4c02669de1b496fad1cfc1
tls:electrum32.groestlcoin.org::391ca58533b0e01b2f0d0607a0cae465e234e4169da2d9d436dae8234f4c953f
tls:electrum33.groestlcoin.org::a9be89b9147b244ae5c2db451b4557429fc1703fa26487fc41ef300229460c47
tls:electrum34.groestlcoin.org::545e50bee4680b2811f384167f558448bb2722ce36d54fcf215a39ec7802f5e3
tls:electrum35.groestlcoin.org::1192ccfe04c2644c5b766f8e10ef37a8cc1ddd90d09af4cf2ff397d47a61d616
tls:electrum36.groestlcoin.org::8e2788c1f1888dd3da76dd723e8da6efeca481c2faaaf79de71b30c800ca318e
tls:electrum37.groestlcoin.org::031feac4e3e7c92df8b295e9907442a903b2f44c10f19382450b105badddba70
tls:electrum38.groestlcoin.org::ade9658b566b6256e74a42543159c15333d844176d18e8faad9c340b117819bc
tls:electrum39.groestlcoin.org::d0b704af1f40dd0dca0f045c52b1555ff12f0c59ad61ce8ce74e24306a9bdc47
tls:electrum40.groestlcoin.org::62204b0dc3a6c1b389f654356868a004a49de3f61eddf15a3b71a4dc81b046c8
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ else if (!tx.getOutput(utxo.getIndex()).getScriptPubKey().equals(outputScript))
}
}

final int trustThreshold = servers.size() / 2;
final int trustThreshold = servers.size() / (servers.size() > 15 ? 5 : 2); // since there are 30+ servers, require 6 with good results.
for (final Iterator<Multiset.Entry<UTXO>> i = countedUtxos.entrySet().iterator(); i.hasNext();) {
final Multiset.Entry<UTXO> entry = i.next();
if (entry.getCount() < trustThreshold)
Expand Down

0 comments on commit f2a85d5

Please sign in to comment.