mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-17 19:03:42 +01:00
feechange: fix db updates.
Found by PVS Studio. Reported-by: Jon Griffiths <jgriffiths@blockstream.io> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
fa402aac31
commit
c1d6df58aa
@ -135,7 +135,7 @@ void feechange_changestate(struct peer *peer,
|
||||
|| newstate == SENT_FEECHANGE_COMMIT)
|
||||
db_new_feechange(peer, f);
|
||||
else if (newstate == RCVD_FEECHANGE_ACK_REVOCATION
|
||||
|| SENT_FEECHANGE_ACK_REVOCATION)
|
||||
|| newstate == SENT_FEECHANGE_ACK_REVOCATION)
|
||||
db_remove_feechange(peer, f, oldstate);
|
||||
else
|
||||
db_update_feechange_state(peer, f, oldstate);
|
||||
|
Loading…
Reference in New Issue
Block a user