Skip to content

Conversation

apoelstra
Copy link
Member

Updates the CHANGELOG and also the doccomment on Transaction.

@apoelstra
Copy link
Member Author

apoelstra commented Dec 15, 2022

cc #1330
cc @Kixunil

Copy link
Collaborator

@Kixunil Kixunil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, could you also mention lack of Ord on LockTime doc together with a on-phrase note that Transaction uses consensus encoding?

@apoelstra apoelstra force-pushed the 2022-12--1330-followups branch from f1dda2d to 3131333 Compare December 15, 2022 16:54
@apoelstra
Copy link
Member Author

Done.

Kixunil
Kixunil previously approved these changes Dec 15, 2022
Copy link
Collaborator

@Kixunil Kixunil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 3131333ca1732b92ecb47e72a36ba98309ad0b2d

total ordering on locktimes will be forced to wrap this type. In `Transaction`, which
contains a `LockTime` but is `Ord`, we have manually sorted the locktimes based on
their consensus encoding. This ordering is somewhat arbitrary -- there is no total
ordering on locktimes since they may be measured in either blocks or heights.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ordering on locktimes since they may be measured in either blocks or heights.
ordering on locktimes since they may be measured in either blocks or seconds.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heh, oops, yep.

@@ -580,6 +580,19 @@ impl<E> EncodeSigningDataResult<E> {
///
/// We therefore deviate from the spec by always using the Segwit witness encoding
/// for 0-input transactions, which results in unambiguously parseable transactions.
///
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trailing whitespace here.

@apoelstra
Copy link
Member Author

Fixed Tobin's comments.

Copy link
Member

@tcharding tcharding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 02c1cd6

Copy link
Collaborator

@Kixunil Kixunil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 02c1cd6

Copy link
Member

@sanket1729 sanket1729 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 02c1cd6

@apoelstra apoelstra merged commit 0203107 into rust-bitcoin:master Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants