GBT segwit rule in RPC error msg missing single quotes #18012

pull Bushstar wants to merge 1 commits into bitcoin:master from Bushstar:patch-5 changing 1 files +1 −1
  1. Bushstar commented at 10:40 AM on January 28, 2020: contributor

    The PR #16596 to fix issue #16594 did not update the error text when getblocktemplate is called without specifying the segwit rule, only the GBT example text. It's possible that this error message is where the user reporting the issue got the incorrect information from. Calling getblocktemplate without rules generates the following.

    getblocktemplate must be called with the segwit rule set (call with {"rules": ["segwit"]}) (code -8)```
    
    Using that example.
    
    

    getblocktemplate {"rules": ["segwit"]}```

    Generates the following error.

    Error: Error parsing JSON:{rules:```
    
    This commit updates the error text produced when calling getblocktemplate without the segwit rule to.
    
    

    getblocktemplate must be called with the segwit rule set (call with '{"rules": ["segwit"]}') (code -8)```

    Using that example the following call will work.

    getblocktemplate '{"rules": ["segwit"]}'```
    
  2. GBT rule example missing single quotes a5cc88f59e
  3. fanquake added the label RPC/REST/ZMQ on Jan 28, 2020
  4. luke-jr commented at 2:54 AM on January 29, 2020: member

    Concept NACK. The interface is JSON, not sh.

  5. Bushstar closed this on Jan 29, 2020

  6. DrahtBot locked this on Feb 15, 2022

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: 2026-04-13 15:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me