Add ‘submitblock’ RPC, split out from ‘getblocktemplate’ RPC #1691

pull jgarzik wants to merge 4 commits into bitcoin:master from jgarzik:submitwork changing 7 files +395 −356
  1. jgarzik commented at 6:26 am on August 21, 2012: contributor

    Rather than having a dual-mode RPC call, create two RPC calls. Luke-Jr already updated BIP 22 to reflect this.

    getblocktemplate mode=template works as before.

    New RPC submitblock takes a parameter, a raw serialized block to be decoded and submitted. At Luke-Jr’s request, submitblock ignores an optional second parameter, if present (an Object for future options).

    Tertiary RPC cleanup commits are also included.

  2. RPC: split new 'submitblock' out of 'getblocktemplate' 79f2525ab6
  3. RPC, cosmetic: de-indent getblocktemplate() ddd1ffb4f1
  4. RPC, cosmetic: Create rpcmining.cpp as new home for mining-related RPC code 7600e7fc39
  5. RPC: submitblock returns null on success, string on error a2168d94c0
  6. luke-jr commented at 6:47 am on August 21, 2012: member
    ACK
  7. jgarzik referenced this in commit a483c27704 on Aug 21, 2012
  8. jgarzik merged this on Aug 21, 2012
  9. jgarzik closed this on Aug 21, 2012

  10. jgarzik deleted the branch on Aug 24, 2014
  11. owlhooter referenced this in commit 0fdd11ced5 on Oct 10, 2018
  12. DrahtBot locked this on Sep 8, 2021


jgarzik luke-jr


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 12:12 UTC

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