lnwallet: properly examine and check error from AppendRemoteCommitChain

This commit is contained in:
Olaoluwa Osuntokun
2019-03-08 16:05:57 -08:00
parent 49c38ed56d
commit dac35c46f3

View File

@@ -3167,7 +3167,8 @@ func (lc *LightningChannel) SignNextCommitment() (lnwire.Sig, []lnwire.Sig, erro
if err != nil {
return sig, htlcSigs, err
}
if lc.channelState.AppendRemoteCommitChain(commitDiff); err != nil {
err = lc.channelState.AppendRemoteCommitChain(commitDiff)
if err != nil {
return sig, htlcSigs, err
}