Better command help for getblocktemplate #16594

issue red0bear openend this issue on August 13, 2019
  1. red0bear commented at 12:07 pm on August 13, 2019: none

    I’m testing command here but always get error. Following the help doesn’t help too. Can you give me a good example how to build this command ? I already have command client working fine.

    bitcoin-cli getblocktemplate {“rules”:[“segwit”]} –> like in example but give error.

  2. maflcko commented at 1:09 pm on August 13, 2019: member
    What is the error?
  3. maflcko added the label Questions and Help on Aug 13, 2019
  4. maflcko added the label Waiting for author on Aug 13, 2019
  5. red0bear commented at 1:16 pm on August 13, 2019: none
    @MarcoFalke , Error: Error parsing JSON:{
  6. maflcko removed the label Waiting for author on Aug 13, 2019
  7. maflcko removed the label Questions and Help on Aug 13, 2019
  8. maflcko added the label Bug on Aug 13, 2019
  9. maflcko added the label Docs on Aug 13, 2019
  10. maflcko commented at 1:40 pm on August 13, 2019: member
    Oh, I see we are not quoting correctly in the rpc help
  11. maflcko added the label good first issue on Aug 13, 2019
  12. maflcko added this to the milestone 0.18.2 on Aug 13, 2019
  13. emilengler commented at 4:28 pm on August 13, 2019: contributor
    See #16596
  14. Relaxo143 commented at 8:37 pm on August 13, 2019: none
    why is there a new minor version (0.18.2) being developed?
  15. maflcko commented at 8:46 pm on August 13, 2019: member
  16. fanquake closed this on Aug 14, 2019

  17. fanquake referenced this in commit 0753c73927 on Aug 14, 2019
  18. fanquake referenced this in commit 279e1341e8 on Aug 15, 2019
  19. ken2812221 referenced this in commit df0dcb984a on Aug 16, 2019
  20. sidhujag referenced this in commit 7b161f1f46 on Aug 17, 2019
  21. fanquake referenced this in commit 66c1c636d5 on Aug 24, 2019
  22. openGLnoob commented at 4:49 pm on August 28, 2019: none

    Hmm. With 0.18.1 on Win7 when I have bitcoin-cli getblocktemplate '{"rules":["segwit"]}' I get error also:

    0error: Error parsing JSON:'{rules:[segwit]}'
    
  23. openGLnoob commented at 6:18 pm on August 28, 2019: none

    SOLVED! On Win7 you need replace all " to \" and all ' to ". That will work:

    0bitcoin-cli getblocktemplate "{\"rules\":[\"segwit\"]}"
    

    The same goes for curl.

  24. emilengler commented at 7:29 pm on August 28, 2019: contributor
    Same on most Unix shells as well but this is more an issue/feature of your shell
  25. HashUnlimited referenced this in commit 7b63dd94b4 on Aug 30, 2019
  26. fanquake referenced this in commit 7bd8f4e432 on Sep 23, 2019
  27. laanwj referenced this in commit 29d70264fb on Nov 25, 2019
  28. bitcoin 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-07-06 01:12 UTC

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