Skip to content

Conversation

@maflcko
Copy link
Member

@maflcko maflcko commented Apr 22, 2021

Allows to run the test even with no wallet compiled in

@practicalswift
Copy link
Contributor

Concept ACK: more MiniWallet is better :)

@DrahtBot
Copy link
Contributor

DrahtBot commented Apr 22, 2021

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

Conflicts

No conflicts as of last run.

MarcoFalke added 3 commits April 29, 2021 07:17
new_tx is a reference to tx. To avoid confusion and code-bloat, remove it
This avoids code-bloat and accidentally forgetting to call it
@maflcko maflcko force-pushed the 2104-testCltvNoWallet branch from fad5d81 to fa066f1 Compare April 29, 2021 05:18
Copy link
Contributor

@theStack theStack left a comment

Choose a reason for hiding this comment

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

ACK fa066f1 💽
Nice to see MiniWallet used more and more! The raw_script type introduced will also make it easier to convert other tests to use the internal wallet.

@maflcko maflcko merged commit 779aaa7 into bitcoin:master May 5, 2021
@maflcko maflcko deleted the 2104-testCltvNoWallet branch May 5, 2021 06:51
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request May 5, 2021
gwillen pushed a commit to ElementsProject/elements that referenced this pull request Jun 1, 2022
What a pain in the ass. This changes the `feature_cltv` functional test
to use the `MiniWallet`, an internal Pythonic wallet that produces
"signatures" consisting of several OP_NOPs in a row, so that this test
can be used when the wallet is disabled.

This means that the functions in feature_cltv which add a CLTV check and
change the locktime/sequence number no longer need to re-sign when they
change the txid, so they don't...HOWEVER, our Elements-specific
`feature_block_v4` test calls these functions with a real transaction
and depended on the re-signing behavior.

After several attempts at min-effort min-diff fixes I landed on this,
which simply sets the locktime at transaction creation and avoids having
to re-sign at all.

Also, I had to change the number of NOPs in the fake wallet code to make
a vsize assertion pass, presumably because of differences in Bitcoin/Elements
transaction serialization.
@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.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants