Skip to content

Commit c4c0248

Browse files
authored
Use bech32 addresses by default (#1717)
Drop mention of p2sh-segwit. We should encourage users to use bech32.
1 parent afa378f commit c4c0248

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ You will find detailed guides and frequently asked questions there.
4545

4646
Eclair needs a _synchronized_, _segwit-ready_, **_zeromq-enabled_**, _wallet-enabled_, _non-pruning_, _tx-indexing_ [Bitcoin Core](https://github.com/bitcoin/bitcoin) node.
4747

48-
You can configure your Bitcoin node to use either `p2sh-segwit` addresses or `bech32` addresses, Eclair is compatible with both modes.
49-
If your wallet has "non-segwit UTXOs" (outputs that are neither `p2sh-segwit` or `bech32`), you must send them to a `p2sh-segwit` or `bech32` address before running eclair.
48+
You must configure your Bitcoin node to use `bech32` (segwit) addresses.
49+
If your wallet has "non-segwit UTXOs" (outputs that are neither `p2sh-segwit` or `bech32`), you must send them to a `bech32` address before running eclair.
5050

5151
Run bitcoind with the following minimal `bitcoin.conf`:
5252

eclair-core/src/main/scala/fr/acinq/eclair/Setup.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,10 @@ class Setup(datadir: File,
177177
} yield (progress, ibd, chainHash, bitcoinVersion, unspentAddresses, blocks, headers)
178178
// blocking sanity checks
179179
val (progress, initialBlockDownload, chainHash, bitcoinVersion, unspentAddresses, blocks, headers) = await(future, 30 seconds, "bicoind did not respond after 30 seconds")
180-
assert(bitcoinVersion >= 170000, "Eclair requires Bitcoin Core 0.17.0 or higher")
180+
assert(bitcoinVersion >= 180000, "Eclair requires Bitcoin Core 0.18.0 or higher")
181181
assert(chainHash == nodeParams.chainHash, s"chainHash mismatch (conf=${nodeParams.chainHash} != bitcoind=$chainHash)")
182182
if (chainHash != Block.RegtestGenesisBlock.hash) {
183-
assert(unspentAddresses.forall(address => !isPay2PubkeyHash(address)), "Your wallet contains non-segwit UTXOs. You must send those UTXOs to a p2sh-segwit or bech32 address to use Eclair (check out our README for more details).")
183+
assert(unspentAddresses.forall(address => !isPay2PubkeyHash(address)), "Your wallet contains non-segwit UTXOs. You must send those UTXOs to a bech32 address to use Eclair (check out our README for more details).")
184184
}
185185
assert(!initialBlockDownload, s"bitcoind should be synchronized (initialblockdownload=$initialBlockDownload)")
186186
assert(progress > 0.999, s"bitcoind should be synchronized (progress=$progress)")

0 commit comments

Comments
 (0)