mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 22:25:24 +01:00
Merge pull request #6826 from Roasbeef/bitcoind-taproot-after-19
chainreg: update tapoort node awareness to account for bitcoind 19+
This commit is contained in:
commit
d0d4782c3e
2 changed files with 15 additions and 2 deletions
|
@ -14,11 +14,22 @@ func backendSupportsTaproot(rpc *rpcclient.Client) bool {
|
|||
if err == nil {
|
||||
// If this call worked, then we'll check that the taproot
|
||||
// deployment is defined.
|
||||
if chainInfo.SoftForks != nil {
|
||||
switch {
|
||||
// Bitcoind versions before 0.19 and also btcd use the
|
||||
// SoftForks fields.
|
||||
case chainInfo.SoftForks != nil:
|
||||
_, ok := chainInfo.SoftForks.Bip9SoftForks["taproot"]
|
||||
if ok {
|
||||
return ok
|
||||
}
|
||||
|
||||
// Bitcoind versions after 0.19 will use the UnifiedSoftForks
|
||||
// field that factors in the set of "buried" soft forks.
|
||||
case chainInfo.UnifiedSoftForks != nil:
|
||||
_, ok := chainInfo.UnifiedSoftForks.SoftForks["taproot"]
|
||||
if ok {
|
||||
return ok
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -34,7 +34,9 @@ of the draft BIP.
|
|||
## Taproot
|
||||
|
||||
[`lnd` will now refuse to start if it detects the full node backend does not
|
||||
support Tapoot](https://github.com/lightningnetwork/lnd/pull/6798).
|
||||
support Tapoot](https://github.com/lightningnetwork/lnd/pull/6798). [With this
|
||||
change](https://github.com/lightningnetwork/lnd/pull/6826), the officially
|
||||
supported versions of bitcoind are: 21, 22, and 23.
|
||||
|
||||
[`lnd` will now use taproot addresses for co-op closes if the remote peer
|
||||
supports the feature.](https://github.com/lightningnetwork/lnd/pull/6633)
|
||||
|
|
Loading…
Add table
Reference in a new issue