Remove support for push_amount#697
Conversation
8c41b22 to
1e8e148
Compare
1e8e148 to
31732b8
Compare
With the updated on-the-fly funding protocol, we're using liquidity ads instead of an unofficial `push_amount` TLV. We can thus remove usage of `push_amount`s everywhere, which simplifies the codebase.
31732b8 to
13f3819
Compare
| readNumber() | ||
| readNumber() |
There was a problem hiding this comment.
At this state, the initial LocalCommit/RemoteCommit objects were already fully generated, and we don't need local/remote push_msat to validate signatures.
We would only need local/remote push_msat if we were to do a rbf, which we are not doing in Phoenix due to zeroconf.
So we can safely discard those values.
There was a problem hiding this comment.
I don't understand what you're saying at all...if we update the app and read data that was generated by the previous version of the app, we have to skip over the local_push_amount and remote_push_amount to be able to read the rest of the state data? If I remove those two lines, the rest of the decoding will fail?
There was a problem hiding this comment.
Those are just review notes confirming that it is okay to discard those two fields after reading, which is not obvious. In particular it wasn't obvious that we wouldn't need this information to validate the signatures received in that state.
There was a problem hiding this comment.
Got it, I thought you were saying I could remove those two lines!
| readNumber() | ||
| readNumber() |
There was a problem hiding this comment.
Same remark as above, those are safe to discard.
With the updated on-the-fly funding protocol, we're using liquidity ads instead of an unofficial
push_amountTLV. We can thus remove usage ofpush_amounts everywhere, which simplifies the codebase.