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: memberutACK 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: memberRebased. 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: preferassert_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: memberThe following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
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, 2018
DrahtBot added the label Needs rebase on Dec 21, 2018DrahtBot commented at 12:56 pm on December 21, 2018: memberlaanwj removed the label Needs rebase on Oct 24, 2019DrahtBot locked this on Dec 16, 2021
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-11-21 09:12 UTC
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-11-21 09:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me