lnwallet: properly examine and check error from AppendRemoteCommitChain

This commit is contained in:
Olaoluwa Osuntokun committed 2019-03-08 19:15:07 -08:00
1 parent 49c38ed56d
commit dac35c46f3
1 file changed
+2 -1
+2 -1
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
}