-
Couldn't load subscription status.
- Fork 0
Set the SigHashType of htlc signatures w/ anchors to SinglePlusAnyoneCanPay #5
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
base: master
Are you sure you want to change the base?
Conversation
...as otherwise the struct is rather useless.
The bindings generation really should support generic bounds other than Deref::Target in where clauses, but currently does not. To avoid needing to add support during the current release process, we simply swap around the arguments to move them to the first <> instead of the where.
This further reduces noise at the TRACE level during initial gossip sync.
…r-bindings-tweaks Minor Bindings Tweaks
…lightningdevkit update repo name to use lightningdevkit
212c41a to
071cfad
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also reviewed all uses of SigHashType::All, and it seems we got all the relevant ones.
541d6f6 to
b9d4a0c
Compare
|
Prefer `.iter()` in that case
…On Sun, Jan 2, 2022, 17:19 Ken Sedgwick ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In lightning/src/chain/package.rs
<#5 (comment)>
:
> @@ -1027,6 +1047,8 @@ mod tests {
let package = PackageTemplate::build_package(txid, 0, revk_outp, 0, true, 100);
// (nVersion (4) + nLocktime (4) + count_tx_in (1) + prevout (36) + sequence (4) + script_length (1) + count_tx_out (1) + value (8) + var_int (1)) * WITNESS_SCALE_FACTOR
// + witness marker (2) + WEIGHT_REVOKED_OUTPUT
- assert_eq!(package.package_weight(&Script::new()), (4 + 4 + 1 + 36 + 4 + 1 + 1 + 8 + 1) * WITNESS_SCALE_FACTOR + 2 + WEIGHT_REVOKED_OUTPUT as usize);
+ for opt_anchors in &[false, true] {
You do for rust-1.41.0:
```error[E0277]: [bool; 2] is not an iterator
63
--> lightning/src/chain/package.rs:1050:22
64
|
65
1050 | for opt_anchors in [false, true] {
66
| ^^^^^^^^^^^^^ borrow the array with `&` or call `.iter()` on it to
iterate over it
67
|
68
= help: the trait `std::iter::Iterator` is not implemented for `[bool; 2]`
69
= note: arrays are not iterators, but slices like the following are: `&[1,
2, 3]`
70
= note: required by `std::iter::IntoIterator::into_iter`
71
—
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA2EWFPIB4XCD3ESWHTTIDUUCCLHANCNFSM5K5IGVOA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because your review was requested.Message ID:
***@***.***>
|
b9d4a0c to
1781b28
Compare
Well, you still have to have the deref nm - I figured it out |
883626f to
2d87938
Compare
…e-update-gossip-log Log gossip rejections due to stale channel_updates at GOSSIP level
This will be needed for JavaScript bindings eventually.
…ings-no-std Support building `cfg=c_bindings` with `no-std`
f6b6880 to
dd4f402
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK
372bae7 to
38550ee
Compare
…-invoice-nostd Adapt lightning-invoice to no_std
5291a52 to
1d59f65
Compare
1d59f65 to
9c2270c
Compare
Survey of Needed Unit Tests
channelmonitor.rstests:test_claim_txn_weight_computationkeysinterface.rsInMemorySignersign_counterparty_commitmentsign_counterparty_htlc_transactionpackage.rsPackageSolvingData::finalize_input:CounterpartyOfferedHTLCOutputCounterpartyReceivedHTLCOutputchan_utils.rsTrusTrustedCommitmentTransactionget_htlc_sigsget_signed_htlc_txchannel.rscommitment_signedenforcing_trait_impls.rsEnforcingSigner:sign_holder_commitment_and_htlcsRelated Issue and Unit Test Implications
chan_utils.rsHTLC_{SUCCESS,TIMEOUT}_TX_WEIGHTChannel<Signer>:build_commitment_transactionget_inbound_pending_htlc_statsget_outbound_pending_htlc_statsnext_local_commit_tx_fee_msatnext_remote_commit_tx_fee_msatupdate_add_htlcsend_htlctests::test_timeout_vs_success_htlc_dust_limitfunctional_tests.rs:tests::test_chan_reserve_dust_inbound_htlcs_outbound_chantests::do_test_max_dust_htlc_exposure