bitcoin/bitcoin — pull request #1691 by jgarzik (2012-08-21 06:26:52+00:00)
Title: Add 'submitblock' RPC, split out from 'getblocktemplate' RPC

Rather than having a dual-mode RPC call, create two RPC calls.

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.