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
No known key found for this signature in database
GPG Key ID: CE58F7F8E20FD9A2

@ -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
}