@@ -17,8 +17,8 @@ import (
1717 "github.com/lightningnetwork/lnd/lnwire"
1818)
1919
20- // anchorSize is the constant anchor output size.
21- const anchorSize = btcutil .Amount (330 )
20+ // AnchorSize is the constant anchor output size.
21+ const AnchorSize = btcutil .Amount (330 )
2222
2323// DefaultAnchorsCommitMaxFeeRateSatPerVByte is the default max fee rate in
2424// sat/vbyte the initiator will use for anchor channels. This should be enough
@@ -942,7 +942,7 @@ func CreateCommitTx(chanType channeldb.ChannelType,
942942 if localOutput || numHTLCs > 0 {
943943 commitTx .AddTxOut (& wire.TxOut {
944944 PkScript : localAnchor .PkScript (),
945- Value : int64 (anchorSize ),
945+ Value : int64 (AnchorSize ),
946946 })
947947 }
948948
@@ -951,7 +951,7 @@ func CreateCommitTx(chanType channeldb.ChannelType,
951951 if remoteOutput || numHTLCs > 0 {
952952 commitTx .AddTxOut (& wire.TxOut {
953953 PkScript : remoteAnchor .PkScript (),
954- Value : int64 (anchorSize ),
954+ Value : int64 (AnchorSize ),
955955 })
956956 }
957957 }
@@ -976,7 +976,7 @@ func CoopCloseBalance(chanType channeldb.ChannelType, isInitiator bool,
976976 // Since the initiator's balance also is stored after subtracting the
977977 // anchor values, add that back in case this was an anchor commitment.
978978 if chanType .HasAnchors () {
979- initiatorDelta += 2 * anchorSize
979+ initiatorDelta += 2 * AnchorSize
980980 }
981981
982982 // The initiator will pay the full coop close fee, subtract that value
0 commit comments