mirror of
https://github.com/ACINQ/eclair.git
synced 2025-02-22 22:25:26 +01:00
Use bech32 addresses by default (#1717)
Drop mention of p2sh-segwit. We should encourage users to use bech32.
This commit is contained in:
parent
afa378fbb7
commit
c4c0248ee3
2 changed files with 4 additions and 4 deletions
|
@ -45,8 +45,8 @@ You will find detailed guides and frequently asked questions there.
|
|||
|
||||
Eclair needs a _synchronized_, _segwit-ready_, **_zeromq-enabled_**, _wallet-enabled_, _non-pruning_, _tx-indexing_ [Bitcoin Core](https://github.com/bitcoin/bitcoin) node.
|
||||
|
||||
You can configure your Bitcoin node to use either `p2sh-segwit` addresses or `bech32` addresses, Eclair is compatible with both modes.
|
||||
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.
|
||||
You must configure your Bitcoin node to use `bech32` (segwit) addresses.
|
||||
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.
|
||||
|
||||
Run bitcoind with the following minimal `bitcoin.conf`:
|
||||
|
||||
|
|
|
@ -177,10 +177,10 @@ class Setup(datadir: File,
|
|||
} yield (progress, ibd, chainHash, bitcoinVersion, unspentAddresses, blocks, headers)
|
||||
// blocking sanity checks
|
||||
val (progress, initialBlockDownload, chainHash, bitcoinVersion, unspentAddresses, blocks, headers) = await(future, 30 seconds, "bicoind did not respond after 30 seconds")
|
||||
assert(bitcoinVersion >= 170000, "Eclair requires Bitcoin Core 0.17.0 or higher")
|
||||
assert(bitcoinVersion >= 180000, "Eclair requires Bitcoin Core 0.18.0 or higher")
|
||||
assert(chainHash == nodeParams.chainHash, s"chainHash mismatch (conf=${nodeParams.chainHash} != bitcoind=$chainHash)")
|
||||
if (chainHash != Block.RegtestGenesisBlock.hash) {
|
||||
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).")
|
||||
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).")
|
||||
}
|
||||
assert(!initialBlockDownload, s"bitcoind should be synchronized (initialblockdownload=$initialBlockDownload)")
|
||||
assert(progress > 0.999, s"bitcoind should be synchronized (progress=$progress)")
|
||||
|
|
Loading…
Add table
Reference in a new issue