From 341c1678fc3d81761d45a4da24afb298f6dd49fd Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Thu, 18 Jan 2018 13:48:30 -0800 Subject: [PATCH] lnwallet: publicly export NewBreachRetribution --- lnwallet/channel.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lnwallet/channel.go b/lnwallet/channel.go index 419b3fe0..90322e6a 100644 --- a/lnwallet/channel.go +++ b/lnwallet/channel.go @@ -1707,10 +1707,10 @@ type BreachRetribution struct { HtlcRetributions []HtlcRetribution } -// newBreachRetribution creates a new fully populated BreachRetribution for the +// NewBreachRetribution creates a new fully populated BreachRetribution for the // passed channel, at a particular revoked state number, and one which targets // the passed commitment transaction. -func newBreachRetribution(chanState *channeldb.OpenChannel, stateNum uint64, +func NewBreachRetribution(chanState *channeldb.OpenChannel, stateNum uint64, broadcastCommitment *wire.MsgTx, breachHeight uint32) (*BreachRetribution, error) { @@ -3875,7 +3875,6 @@ func (lc *LightningChannel) ShortChanID() lnwire.ShortChannelID { // output modified by two-bits denoting if this is an incoming HTLC, and if the // HTLC is being applied to their commitment transaction or ours. func genHtlcScript(isIncoming, ourCommit bool, timeout uint32, rHash [32]byte, - keyRing *commitmentKeyRing) ([]byte, []byte, error) { keyRing *CommitmentKeyRing) ([]byte, []byte, error) { var (