Submit a new block to the network. params is optional and is currently ignored by bitcoind. See https://en.bitcoin.it/wiki/BIP_0022 for full specification.
(self, block, params=None)
| 752 | return r |
| 753 | |
| 754 | def submitblock(self, block, params=None): |
| 755 | """Submit a new block to the network. |
| 756 | |
| 757 | params is optional and is currently ignored by bitcoind. See |
| 758 | https://en.bitcoin.it/wiki/BIP_0022 for full specification. |
| 759 | """ |
| 760 | hexblock = hexlify_str(block.serialize()) |
| 761 | if params is not None: |
| 762 | return self._call('submitblock', hexblock, params) |
| 763 | else: |
| 764 | return self._call('submitblock', hexblock) |
| 765 | |
| 766 | def validateaddress(self, address): |
| 767 | """Return information about an address""" |
nothing calls this directly
no test coverage detected