lnwallet: properly examine and check error from AppendRemoteCommitChain
This commit is contained in:
parent
49c38ed56d
commit
dac35c46f3
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user