-
Notifications
You must be signed in to change notification settings - Fork 407
Move justice transactions signature behind signer interface #560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move justice transactions signature behind signer interface #560
Conversation
3fa527a
to
2f041ee
Compare
Rebased on top of #598 |
Codecov Report
@@ Coverage Diff @@
## master #560 +/- ##
==========================================
- Coverage 91.10% 91.08% -0.03%
==========================================
Files 34 34
Lines 20447 20520 +73
==========================================
+ Hits 18628 18690 +62
- Misses 1819 1830 +11
Continue to review full report at Codecov.
|
I'm really not a fan of the direction this is going in terms of OnchainTxHandler. More caching in OnchainTxHandler doesn't feel like the solution - its bad enough with the local_commitment and prev_local_commitment having almost entirely duplicated data but doing the same for remote commitment txn seems wrong. Its not that expensive to copy the data, and we shouldn't ever be in a state where we're tracking 10 different copies of remote HTLCs. |
…TxCache Used in next commits to avoid passing script between ChannelMonitor and OnchainTxHandler. ChannelMonitor duplicata will be removed in future commits.
As we can't predict if any and which revoked commitment tx is going to appear onchain we have by design to cache all htlc information to regenerate htlc script if needed.
As we cache more and more transaction elements in OnchainTxHandler we should dry up completly InputMaterial until them being replaced directly by InputDescriptor
By moving script generation inside OnchainTxHandler, we may dry-up further ChannelMonitor in next commits.
2f041ee
to
abf18a1
Compare
Closed by #610 |
1 similar comment
Closed by #610 |
Build on top of #559.