Improve mempool_package_limits.py #22901
pull naiza2000 wants to merge 10 commits into bitcoin:master from naiza2000:master changing 3 files +39 −39-
naiza2000 commented at 10:16 am on September 6, 2021: contributor
-
Improve rpc_packages.py 37e1d34c8e
-
Improve test_framework/wallet.py 28a120f790
-
Improve make_chain() in wallet.py caa72d8ea8
-
Improve mempool_package_limits.py 8ff1a13e64
-
Merge branch 'bitcoin:master' into master b72d61fddf
-
fanquake added the label Tests on Sep 6, 2021
-
DrahtBot commented at 10:29 am on September 6, 2021: contributor
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Conflicts
No conflicts as of last run.
-
fanquake requested review from glozow on Sep 6, 2021
-
in test/functional/test_framework/wallet.py:203 in b72d61fddf outdated
204 }] if parent_locking_script else None 205 signedtx = node.signrawtransactionwithkey(hexstring=rawtx, privkeys=privkeys, prevtxs=prevtxs) 206 assert signedtx["complete"] 207 tx = tx_from_hex(signedtx["hex"]) 208- return (tx, signedtx["hex"], my_value, tx.vout[0].scriptPubKey.hex()) 209+ return tx, signedtx["hex"], my_value, tx.vout[0].scriptPubKey.hex()
glozow commented at 1:53 pm on September 6, 2021:I think #21800 (review) suggested changing this return value to a named tuple instead?in test/functional/test_framework/wallet.py:275 in b72d61fddf outdated
239@@ -238,18 +240,18 @@ def bulk_transaction(tx, node, target_weight, privkeys, prevtxs=None): 240 """Pad a transaction with extra outputs until it reaches a target weight (or higher). 241 returns CTransaction object 242 """ 243- tx_heavy = deepcopy(tx)
glozow commented at 1:55 pm on September 6, 2021:Can also remove the import as well, iircin test/functional/test_framework/wallet.py:185 in b72d61fddf outdated
181@@ -182,28 +182,30 @@ def sendrawtransaction(self, *, from_node, tx_hex): 182 from_node.sendrawtransaction(tx_hex) 183 self.scan_tx(from_node.decoderawtransaction(tx_hex)) 184 185-def make_chain(node, address, privkeys, parent_txid, parent_value, n=0, parent_locking_script=None, fee=DEFAULT_FEE): 186- """Build a transaction that spends parent_txid.vout[n] and produces one output with 187+def make_chain(node, address, privkeys, parent_txid, parent_value, parent_locking_script=None, fee=DEFAULT_FEE):
glozow commented at 1:59 pm on September 6, 2021:https://github.com/bitcoin/bitcoin/pull/21800/files#r685091478 also suggested renaming this function
I’d suggest something like
create_child
?glozow commented at 1:59 pm on September 6, 2021: memberConcept 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?
in test/functional/rpc_packages.py:136 in b72d61fddf outdated
132@@ -133,7 +133,7 @@ def test_independent(self): 133 def test_chain(self): 134 node = self.nodes[0] 135 first_coin = self.coins.pop() 136- (chain_hex, chain_txns) = create_raw_chain(node, first_coin, self.address, self.privkeys) 137+ chain_hex, chain_txns = create_raw_chain(node, first_coin, self.address, self.privkeys)
glozow commented at 2:01 pm on September 6, 2021:You need to add the chain length here now that the default has been removedfanquake added the label Waiting for author on Sep 10, 2021glozow commented at 6:56 am on September 27, 2021: member@naiza2000 still working on this?Improve wallet.py c43fd4f44dnaiza2000 commented at 3:03 pm on September 28, 2021: contributor@naiza2000 still working on this?
Yes, I was out of town for the last few days, I have started working on it again.
fanquake removed the label Waiting for author on Sep 29, 2021Rename make_chain() in wallet.py a65cd63449resolve issues 269aeea72eMerge branch 'bitcoin:master' into master adb1c5d4edDrahtBot added the label Needs rebase on Oct 5, 2021DrahtBot removed the label Needs rebase on Oct 5, 2021Merge branch 'bitcoin:master' into master 108603ef83glozow commented at 11:30 am on October 5, 2021: memberNeeds rebase and squash?MarcoFalke added the label Waiting for author on Nov 9, 2021MarcoFalke commented at 9:11 am on November 9, 2021: memberCan be closed?MarcoFalke closed this on Nov 13, 2021
MarcoFalke added the label Up for grabs on Nov 13, 2021glozow removed the label Up for grabs on Aug 4, 2022bitcoin locked this on Aug 4, 2023
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-03 15:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me