Uh oh!
There was an error while loading. Please reload this page.
send warning when we receive a old commitment transaction - #1430
Conversation
f40c9bb to
136171dCompareUh oh!
There was an error while loading. Please reload this page.
7ae6fdc to
fc33225Comparec70e6d3 to
d04ca27CompareCodecov Report
@@ Coverage Diff @@## main #1430 +/- ##
==========================================
+ Coverage 90.89% 91.36% +0.46%
==========================================
Files 75 75 Lines 41657 43716 +2059 Branches 41657 43716 +2059 ==========================================
+ Hits 37866 39941 +2075 + Misses 3791 3775 -16
Continue to review full report at Codecov.
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
5ada132 to
3e41b90CompareUh oh!
There was an error while loading. Please reload this page.
vincenzopalazzo
left a comment
There was a problem hiding this comment.
OK! I tried to make a little bit of refactoring and applied the changes that you suggested.
The only think that is unclear to me right now, is this case
https://github.com/lightningdevkit/rust-lightning/blob/main/lightning/src/ln/channel.rs#L3708-L3712
Why in this case there is a CloseDelayBroadcast why does mean? i was not able to find some comments about the meaning, and I didn't check if the spec has some info about this case!
TheBlueMatt
left a comment
There was a problem hiding this comment.
Sorry for the delay in reviewing this!
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
c80ea92 to
5a55542CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
5a55542 to
43edafaComparevincenzopalazzo
commented
Apr 27, 2022
Rebased on master, I reorganized the test in a more clean way where the different cases are executed at the end of the function. In this way, it is cleaner to the reader what we are trying to do! |
TheBlueMatt
left a comment
There was a problem hiding this comment.
Awesome! One note - we don't like having intermediate commits that fail tests. We don't test for it in CI (only that it compiles), but if at all possible try to make sure each individual commit passes tests as well, ensuring we can git bisect easily.
Uh oh!
There was an error while loading. Please reload this page.
53d7cda to
8931516Comparevincenzopalazzo
commented
Apr 28, 2022
Sorry! I rebased and squash the commit in a single one! |
TheBlueMatt
left a comment
There was a problem hiding this comment.
Basically looks good, one comment on the second branch of the test.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
8931516 to
6dac37bCompare6dac37b to
c341020CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
d3651e1 to
833a74eCompareTheBlueMatt
commented
May 3, 2022
Hmm, was there a conflict? In general please avoid rebase'ing unless there's a conflict with the current upstream git. |
TheBlueMatt
left a comment
There was a problem hiding this comment.
Basically LGTM, lets get another reviewer.
Uh oh!
There was an error while loading. Please reload this page.
833a74e to
ae47520CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
ae47520 to
5dd4662Comparevincenzopalazzo
commented
May 3, 2022
I clean up the code and remove the enum. thanks, @valentinewallace to point me on this, and also for the grammar mistake! I also rebased on top of the last master! |
TheBlueMatt
commented
May 3, 2022
Generally please avoid this unless there is a conflict. Rebases make it harder to diff-tree and see changes to a PR, range-diff can be a bit more finicky and hard to read. |
vincenzopalazzo
commented
May 3, 2022
Ops! sorry @TheBlueMatt |
5dd4662 to
a399d1fCompareUh oh!
There was an error while loading. Please reload this page.
6ecb4d6 to
040b3cdCompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
During a `channel_reestablish` now we send a warning message when we receive a old commitment transaction from the peer. In addition, this commit include the update of functional test to make sure that the receiver will generate warn messages. Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
040b3cd to
e6300daCompare
During a
channel_reestablishnow we send a warning message when we receive an old commitment transaction.Fixes#1207 with the following consideration lightning/bolts#934 (comment)