peer+rpc: properly set ChainHash in ChannelCloseSummary instances

This commit is contained in:
Olaoluwa Osuntokun committed 2017-11-10 19:51:09 -08:00
1 parent 841f4f73cf
commit e337a329cd
2 files changed
+2

No files matched your search

+1
View File
@@ -918,6 +918,7 @@ func (r *rpcServer) forceCloseChan(channel *lnwallet.LightningChannel) (*chainha
chanInfo := channel.StateSnapshot()
closeInfo := &channeldb.ChannelCloseSummary{
ChanPoint: *chanPoint,
ChainHash: chanInfo.ChainHash,
ClosingTXID: closeTx.TxHash(),
RemotePub: &chanInfo.RemoteIdentity,
Capacity: chanInfo.Capacity,