peer+rpc: properly set ChainHash in ChannelCloseSummary instances

This commit is contained in:
Olaoluwa Osuntokun 2017-11-10 15:24:04 -08:00
parent 841f4f73cf
commit e337a329cd
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21
2 changed files with 2 additions and 0 deletions

View File

@ -1722,6 +1722,7 @@ func (p *peer) handleClosingSigned(localReq *htlcswitch.ChanClose,
chanInfo := channel.StateSnapshot()
closeSummary := &channeldb.ChannelCloseSummary{
ChanPoint: *chanPoint,
ChainHash: chanInfo.ChainHash,
ClosingTXID: closingTxid,
RemotePub: &chanInfo.RemoteIdentity,
Capacity: chanInfo.Capacity,

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,