lnwallet: add getter for channelState.RemoteNextCommitment

This commit is contained in:
Johan T. Halseth committed 2017-10-02 13:29:32 +02:00
1 parent f22b9523d1
commit 6b3844ea66
1 file changed
+8
+8
View File
@@ -4000,3 +4000,11 @@ func CreateCooperativeCloseTx(fundingTxIn *wire.TxIn,
func (lc *LightningChannel) CalcFee(feeRate uint64) uint64 {
return (feeRate * uint64(commitWeight)) / 1000
}
// RemoteNextRevocation returns the channelState's RemoteNextRevocation.
func (lc *LightningChannel) RemoteNextRevocation() *btcec.PublicKey {
lc.Lock()
defer lc.Unlock()
return lc.channelState.RemoteNextRevocation
}