mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-15 11:21:03 +02:00
breacharbiter: use ToLocalPenaltyWitnessSize for stage 2 htlcs
This commit is contained in:
parent
381579477c
commit
d41d63a409
@ -8,17 +8,17 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
|
|
||||||
|
"github.com/btcsuite/btcd/blockchain"
|
||||||
|
"github.com/btcsuite/btcd/chaincfg/chainhash"
|
||||||
|
"github.com/btcsuite/btcd/txscript"
|
||||||
|
"github.com/btcsuite/btcd/wire"
|
||||||
|
"github.com/btcsuite/btcutil"
|
||||||
"github.com/coreos/bbolt"
|
"github.com/coreos/bbolt"
|
||||||
"github.com/davecgh/go-spew/spew"
|
"github.com/davecgh/go-spew/spew"
|
||||||
"github.com/lightningnetwork/lnd/chainntnfs"
|
"github.com/lightningnetwork/lnd/chainntnfs"
|
||||||
"github.com/lightningnetwork/lnd/channeldb"
|
"github.com/lightningnetwork/lnd/channeldb"
|
||||||
"github.com/lightningnetwork/lnd/htlcswitch"
|
"github.com/lightningnetwork/lnd/htlcswitch"
|
||||||
"github.com/lightningnetwork/lnd/lnwallet"
|
"github.com/lightningnetwork/lnd/lnwallet"
|
||||||
"github.com/btcsuite/btcd/blockchain"
|
|
||||||
"github.com/btcsuite/btcd/chaincfg/chainhash"
|
|
||||||
"github.com/btcsuite/btcd/txscript"
|
|
||||||
"github.com/btcsuite/btcd/wire"
|
|
||||||
"github.com/btcsuite/btcutil"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -993,7 +993,7 @@ func (b *breachArbiter) createJusticeTx(
|
|||||||
witnessWeight = lnwallet.AcceptedHtlcPenaltyWitnessSize
|
witnessWeight = lnwallet.AcceptedHtlcPenaltyWitnessSize
|
||||||
|
|
||||||
case lnwallet.HtlcSecondLevelRevoke:
|
case lnwallet.HtlcSecondLevelRevoke:
|
||||||
witnessWeight = lnwallet.SecondLevelHtlcPenaltyWitnessSize
|
witnessWeight = lnwallet.ToLocalPenaltyWitnessSize
|
||||||
|
|
||||||
default:
|
default:
|
||||||
brarLog.Warnf("breached output in retribution info "+
|
brarLog.Warnf("breached output in retribution info "+
|
||||||
|
Loading…
x
Reference in New Issue
Block a user