MCPcopy Index your code
hub / github.com/petertodd/python-bitcoinlib / submitblock

Method submitblock

bitcoin/rpc.py:754–764  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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"""

Callers

nothing calls this directly

Calls 3

hexlify_strFunction · 0.85
serializeMethod · 0.45
_callMethod · 0.45

Tested by

no test coverage detected