mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-30 07:35:07 +02:00
lnwire: remove kickoff feerate from propose/commit
This commit is contained in:
committed by
yyforyongyu
parent
36f53d74ab
commit
cbca5b1152
@@ -10,7 +10,6 @@ import (
|
||||
"github.com/btcsuite/btcd/btcutil"
|
||||
"github.com/btcsuite/btcd/chaincfg/chainhash"
|
||||
"github.com/lightningnetwork/lnd/fn/v2"
|
||||
"github.com/lightningnetwork/lnd/lnwallet/chainfee"
|
||||
"github.com/lightningnetwork/lnd/tlv"
|
||||
"github.com/stretchr/testify/require"
|
||||
"pgregory.net/rapid"
|
||||
@@ -832,7 +831,6 @@ func (dp *DynPropose) RandTestMessage(t *rapid.T) Message {
|
||||
)
|
||||
includeFundingKey := rapid.Bool().Draw(t, "includeFundingKey")
|
||||
includeChannelType := rapid.Bool().Draw(t, "includeChannelType")
|
||||
includeKickoffFeerate := rapid.Bool().Draw(t, "includeKickoffFeerate")
|
||||
|
||||
// Generate random values for each included field
|
||||
if includeDustLimit {
|
||||
@@ -868,13 +866,6 @@ func (dp *DynPropose) RandTestMessage(t *rapid.T) Message {
|
||||
msg.ChannelType = fn.Some(*RandChannelType(t))
|
||||
}
|
||||
|
||||
if includeKickoffFeerate {
|
||||
kf := chainfee.SatPerKWeight(rapid.Uint32().Draw(
|
||||
t, "kickoffFeerate"),
|
||||
)
|
||||
msg.KickoffFeerate = fn.Some(kf)
|
||||
}
|
||||
|
||||
return msg
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user