Skip to content

Conversation

@nothingmuch
Copy link
Contributor

It's somewhat surprising that a transaction's nLockTime field is ignored
when all nSequence fields are final, so this change aims to clarify this
behavior and cross reference relevant details of OP_CHECKLOCKTIMEVERIFY.

@amitiuttarwar
Copy link
Contributor

ACK 5546ed61c65c167ba839df7b5277f8689242ae8b. Sheds light on a confusing corner of the code.

Copy link

@ariard ariard left a comment

Choose a reason for hiding this comment

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

ACK 5546ed6

Thanks for documenting this foresight of OP_CLTV design.

@DrahtBot
Copy link
Contributor

DrahtBot commented Feb 17, 2020

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

No conflicts as of last run.

Copy link

@michaelfolkson michaelfolkson left a comment

Choose a reason for hiding this comment

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

ACK c4a022d4f75384ba9d6978971fcaeabd072a9acc. Nice addition.

@amitiuttarwar
Copy link
Contributor

@nothingmuch could you squash the fixup commit ?

@nothingmuch
Copy link
Contributor Author

Done. I've also included @michaelfolkson's suggestion.

@nothingmuch
Copy link
Contributor Author

After rereading the diff I added a minor rewording of the comment explaining nLockTime covenants, since I felt it lacked clarity, and force pushed that so that the PR is still squashed at the moment.

@michaelfolkson
Copy link

ACK ae93eb3379604a5ee83242f420bb5431fa238b9e. British English spelling of "behaviour" but not worth another force push to change in my view.

Copy link
Contributor

@amitiuttarwar amitiuttarwar left a comment

Choose a reason for hiding this comment

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

ACK ae93eb3379604a5ee83242f420bb5431fa238b9e

one comment, but not worth holding up the PR. its been open for a while and overall this documentation helps clarify some unexpected logic, so def an improvement in my eyes.

@theStack
Copy link
Contributor

Concept ACK, definitely makes sense to document unexpected behaviour in more detail.

@nothingmuch
Copy link
Contributor Author

i fixed both "behaviour" and "the the", will squash & rebase after i reread everything tomorrow

@nothingmuch
Copy link
Contributor Author

so, despite previous ACKs i couldn't resist rephrasing the paragraph about the locktime covenants, since i could barely understand what i had originally meant by it... squashed and rebased on master

@amitiuttarwar
Copy link
Contributor

ACK abc8f3bae2cd9a65e170528d77973307050c5b47.

Hoping this PR can get merged soon!

@benthecarman
Copy link
Contributor

ACK abc8f3b

@Zero-1729
Copy link
Contributor

ACK abc8f3b. Looks good.

Copy link
Member

@maflcko maflcko left a comment

Choose a reason for hiding this comment

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

Seems fine to better explain how IsFinalTx works, but I am not sure about starting a section about "covenants".

Copy link

@78051301012 78051301012 left a comment

Choose a reason for hiding this comment

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

src/script/interpreter.cpp

Copy link

@ariard ariard left a comment

Choose a reason for hiding this comment

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

ACK 047c607

It's somewhat surprising that a transaction's nLockTime field is ignored
when all nSequence fields are final, so this change aims to clarify this
behavior and cross reference relevant details of OP_CHECKLOCKTIMEVERIFY.
@nothingmuch nothingmuch requested a review from maflcko June 28, 2021 18:30
@maflcko
Copy link
Member

maflcko commented Jun 29, 2021

ACK f9e37f3

@maflcko maflcko merged commit e1a13f1 into bitcoin:master Jun 30, 2021
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Jun 30, 2021
f9e37f3 doc: IsFinalTx comment about nSequence & OP_CLTV (Yuval Kogman)

Pull request description:

  It's somewhat surprising that a transaction's `nLockTime` field is ignored
  when all `nSequence` fields are final, so this change aims to clarify this
  behavior and cross reference relevant details of `OP_CHECKLOCKTIMEVERIFY`.

ACKs for top commit:
  MarcoFalke:
    ACK f9e37f3

Tree-SHA512: 88460dacbe4b8115fb1948715f09b21d4f34ba1da9e88d52f0b774a969f845e9eddc5940e7fee66eacdd3062dc40d6d44c3f282b0e5144411fd47eb2320b44f5
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Sep 24, 2021
f9e37f3 doc: IsFinalTx comment about nSequence & OP_CLTV (Yuval Kogman)

Pull request description:

  It's somewhat surprising that a transaction's `nLockTime` field is ignored
  when all `nSequence` fields are final, so this change aims to clarify this
  behavior and cross reference relevant details of `OP_CHECKLOCKTIMEVERIFY`.

ACKs for top commit:
  MarcoFalke:
    ACK f9e37f3

Tree-SHA512: 88460dacbe4b8115fb1948715f09b21d4f34ba1da9e88d52f0b774a969f845e9eddc5940e7fee66eacdd3062dc40d6d44c3f282b0e5144411fd47eb2320b44f5
gwillen pushed a commit to ElementsProject/elements that referenced this pull request Jun 1, 2022
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Aug 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants