Set the SigHashType of htlc signatures w/ anchors to SinglePlusAnyoneCanPay#5
Open
ksedgwic wants to merge 22 commits into
Open
Set the SigHashType of htlc signatures w/ anchors to SinglePlusAnyoneCanPay#5ksedgwic wants to merge 22 commits into
ksedgwic wants to merge 22 commits into
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
devrandom
reviewed
Dec 31, 2021
devrandom
left a comment
Member
There was a problem hiding this comment.
I also reviewed all uses of SigHashType::All, and it seems we got all the relevant ones.
541d6f6 to
b9d4a0c
Compare
devrandom
reviewed
Jan 1, 2022
devrandom
reviewed
Jan 1, 2022
devrandom
reviewed
Jan 1, 2022
Member
|
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
Author
Well, you still have to have the deref nm - I figured it out |
883626f to
2d87938
Compare
devrandom
reviewed
Jan 3, 2022
…e-update-gossip-log Log gossip rejections due to stale channel_updates at GOSSIP level
This will be needed for JavaScript bindings eventually.
devrandom
reviewed
Jan 5, 2022
…ings-no-std Support building `cfg=c_bindings` with `no-std`
f6b6880 to
dd4f402
Compare
devrandom
approved these changes
Jan 6, 2022
372bae7 to
38550ee
Compare
…-invoice-nostd Adapt lightning-invoice to no_std
5291a52 to
1d59f65
Compare
1d59f65 to
9c2270c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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