mirror of https://github.com/BTCPrivate/lnd.git
peer+rpc: properly set ChainHash in ChannelCloseSummary instances
This commit is contained in:
parent
841f4f73cf
commit
e337a329cd
1
peer.go
1
peer.go
|
@ -1722,6 +1722,7 @@ func (p *peer) handleClosingSigned(localReq *htlcswitch.ChanClose,
|
||||||
chanInfo := channel.StateSnapshot()
|
chanInfo := channel.StateSnapshot()
|
||||||
closeSummary := &channeldb.ChannelCloseSummary{
|
closeSummary := &channeldb.ChannelCloseSummary{
|
||||||
ChanPoint: *chanPoint,
|
ChanPoint: *chanPoint,
|
||||||
|
ChainHash: chanInfo.ChainHash,
|
||||||
ClosingTXID: closingTxid,
|
ClosingTXID: closingTxid,
|
||||||
RemotePub: &chanInfo.RemoteIdentity,
|
RemotePub: &chanInfo.RemoteIdentity,
|
||||||
Capacity: chanInfo.Capacity,
|
Capacity: chanInfo.Capacity,
|
||||||
|
|
|
@ -918,6 +918,7 @@ func (r *rpcServer) forceCloseChan(channel *lnwallet.LightningChannel) (*chainha
|
||||||
chanInfo := channel.StateSnapshot()
|
chanInfo := channel.StateSnapshot()
|
||||||
closeInfo := &channeldb.ChannelCloseSummary{
|
closeInfo := &channeldb.ChannelCloseSummary{
|
||||||
ChanPoint: *chanPoint,
|
ChanPoint: *chanPoint,
|
||||||
|
ChainHash: chanInfo.ChainHash,
|
||||||
ClosingTXID: closeTx.TxHash(),
|
ClosingTXID: closeTx.TxHash(),
|
||||||
RemotePub: &chanInfo.RemoteIdentity,
|
RemotePub: &chanInfo.RemoteIdentity,
|
||||||
Capacity: chanInfo.Capacity,
|
Capacity: chanInfo.Capacity,
|
||||||
|
|
Loading…
Reference in New Issue