No description provided.
Bugfix: RPC/Mining: Use pre-segwit sigops and limits, when working with non-segwit GBT clients #10595
pull luke-jr wants to merge 1 commits into bitcoin:master from luke-jr:gbt_nosegwit_fix changing 2 files +8 −2-
luke-jr commented at 7:20 AM on June 15, 2017: member
- fanquake added the label Mining on Jun 15, 2017
- fanquake added the label RPC/REST/ZMQ on Jun 15, 2017
-
sipa commented at 11:31 PM on June 16, 2017: member
utACK 4292a752c7eb59ef2cbee70b5cd186eedf16d0dc
- MarcoFalke added the label Needs rebase on Jun 6, 2018
- luke-jr force-pushed on Oct 15, 2018
-
luke-jr commented at 12:06 PM on October 15, 2018: member
Rebased. At this point, it might make sense to just drop support for pre-segwit miners, but this fix is simple, so it makes sense to get in (and backportable) first.
-
in test/functional/feature_segwit.py:229 in e36493be9a outdated
224 | @@ -225,6 +225,13 @@ def run_test(self): 225 | # Now try calling getblocktemplate() without segwit support. 226 | template = self.nodes[0].getblocktemplate() 227 | 228 | + # Check that we got a pre-Segwit template 229 | + assert(template['sizelimit'] == 1000000)
jnewbery commented at 1:26 PM on October 15, 2018:nit: prefer
assert_equal()for asserting equalityin test/functional/feature_segwit.py:230 in e36493be9a outdated
224 | @@ -225,6 +225,13 @@ def run_test(self): 225 | # Now try calling getblocktemplate() without segwit support. 226 | template = self.nodes[0].getblocktemplate() 227 | 228 | + # Check that we got a pre-Segwit template 229 | + assert(template['sizelimit'] == 1000000) 230 | + assert('weightlimit' not in template)
jnewbery commented at 1:26 PM on October 15, 2018:nit: assert is a statement, not a function. Please remove parens.
jnewbery commented at 1:28 PM on October 15, 2018: memberI agree that we should just drop support for non-segwit miners at this point. Doesn't seem worth the trouble of making this change.
Bugfix: RPC/Mining: Use pre-segwit sigops and limits, when working with non-segwit GBT clients a5464ad126luke-jr force-pushed on Oct 17, 2018DrahtBot removed the label Needs rebase on Oct 20, 2018DrahtBot commented at 9:16 PM on November 26, 2018: member<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--174a7506f384e20aa4161008e828411d-->
Conflicts
Reviewers, this pull request conflicts with the following ones:
- #14811 (Mining: Enforce that segwit option must be set in GBT by jnewbery)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
MarcoFalke commented at 12:52 PM on December 21, 2018: memberThis has been "fixed" by
- #14811 (Mining: Enforce that segwit option must be set in GBT by jnewbery)
MarcoFalke closed this on Dec 21, 2018DrahtBot added the label Needs rebase on Dec 21, 2018DrahtBot commented at 12:56 PM on December 21, 2018: member<!--cf906140f33d8803c4a75a2196329ecb-->Needs rebase
laanwj removed the label Needs rebase on Oct 24, 2019DrahtBot locked this on Dec 16, 2021ContributorsLabels
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: 2026-04-29 06:15 UTC
More mirrored repositories can be found on mirror.b10c.me