Skip to content

Conversation

@naiza2000
Copy link
Contributor

Follow-up to #21800 adding changes suggested in #21800 (review)

@fanquake fanquake added the Tests label Sep 6, 2021
@DrahtBot
Copy link
Contributor

DrahtBot commented Sep 6, 2021

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

Conflicts

No conflicts as of last run.

@fanquake fanquake requested a review from glozow September 6, 2021 10:29
Copy link
Member

@glozow glozow left a comment

Choose a reason for hiding this comment

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

Concept ACK, thanks for working on this

Linking the suggestions in the PR description and/or describing the changes within the commit messages would help reviewers understand what the improvements are. Also, you seem to have a merge commit that should be squashed?

assert signedtx["complete"]
tx = tx_from_hex(signedtx["hex"])
return (tx, signedtx["hex"], my_value, tx.vout[0].scriptPubKey.hex())
return tx, signedtx["hex"], my_value, tx.vout[0].scriptPubKey.hex()
Copy link
Member

Choose a reason for hiding this comment

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

I think #21800 (comment) suggested changing this return value to a named tuple instead?

"""Pad a transaction with extra outputs until it reaches a target weight (or higher).
returns CTransaction object
"""
tx_heavy = deepcopy(tx)
Copy link
Member

Choose a reason for hiding this comment

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

Can also remove the import as well, iirc


def make_chain(node, address, privkeys, parent_txid, parent_value, n=0, parent_locking_script=None, fee=DEFAULT_FEE):
"""Build a transaction that spends parent_txid.vout[n] and produces one output with
def make_chain(node, address, privkeys, parent_txid, parent_value, parent_locking_script=None, fee=DEFAULT_FEE):
Copy link
Member

Choose a reason for hiding this comment

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

node = self.nodes[0]
first_coin = self.coins.pop()
(chain_hex, chain_txns) = create_raw_chain(node, first_coin, self.address, self.privkeys)
chain_hex, chain_txns = create_raw_chain(node, first_coin, self.address, self.privkeys)
Copy link
Member

Choose a reason for hiding this comment

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

You need to add the chain length here now that the default has been removed

@jnewbery
Copy link
Contributor

jnewbery commented Sep 9, 2021

Concept ACK. Will review once @glozow's comments have been addressed and the CI failures are fixed.

@glozow
Copy link
Member

glozow commented Sep 27, 2021

@naiza2000 still working on this?

@naiza2000
Copy link
Contributor Author

@naiza2000 still working on this?

Yes, I was out of town for the last few days, I have started working on it again.

@glozow
Copy link
Member

glozow commented Oct 5, 2021

Needs rebase and squash?

@maflcko
Copy link
Member

maflcko commented Nov 9, 2021

Can be closed?

@glozow
Copy link
Member

glozow commented Nov 13, 2021

Can be closed?

Seems so. I can open a PR to clean up all the followups from #21800

@maflcko maflcko closed this Nov 13, 2021
@fanquake
Copy link
Member

fanquake commented Aug 4, 2022

Seems so. I can open a PR to clean up all the followups from #21800

@glozow did this happen? Can we remove up for grabs?

@bitcoin bitcoin locked and limited conversation to collaborators Aug 4, 2023
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.

6 participants