Ms.new genesis (#400)

* Use new puzzle hash
* New genesis block and protocol version
* Fix chia show
This commit is contained in:
Mariano Sorgente 2020-09-10 02:16:29 -07:00 committed by Gene Hoffman
parent daea33beae
commit efd9fdcafe
4 changed files with 7 additions and 4 deletions

View File

@ -65,7 +65,7 @@ testnet_kwargs = {
"NUMBER_OF_HEADS": 3, # The number of tips each full node keeps track of and propagates
# DIFFICULTY_STARTING is the starting difficulty for the first epoch, which is then further
# multiplied by another factor of 2^32, to be used in the VDF iter calculation formula.
"DIFFICULTY_STARTING": 2 ** 19,
"DIFFICULTY_STARTING": 2 ** 20,
"DIFFICULTY_FACTOR": 3, # The next difficulty is truncated to range [prev / FACTOR, prev * FACTOR]
# These 3 constants must be changed at the same time
"DIFFICULTY_EPOCH": 256, # The number of blocks per epoch
@ -91,7 +91,7 @@ testnet_kwargs = {
"PROPAGATION_DELAY_THRESHOLD": 1500,
# Hardcoded genesis block, generated using tests/block_tools.py
# Replace this any time the constants change.
"GENESIS_BLOCK": b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x95\xa4\xa44`\nqY(\xd5\xfc|\x17\xcfMX\xf0\xab\x87z\xbd\xc6/\x0c\x90\xa2n\xa0\x1dDQ1\x11\x874\xcaH\x85nX\x99\xb2\xf0:\xea\xcc1z\x8c(zk\xfd;\x19\xd5%\xae\xb5?S\xbc\xb4$\x8cm\xb1\x87U\x1d\xc1\xf7y\x90\xdb\x99H\xe7x\xa7h\xa8\x8c\x81\xf1\x91\xa7\xae\x92\xde\x8eN\xdf7\xb9\x89\x17\x00\x00\x00\xb8\xbb<\x1a\xc9\xdav\xf3U\xee\x81\xe1\x93\x14\xedn\xb1\xb1\xc2\xd1Xz\x0e\x8f\xff<.\xb4y\xaa\xbbT\x07\x04\xe2\xb4<\xeb\xff1\xdc\xe9o9\xcb\x7f\xd51l\xc4\xf0\xb7Vu\xc4^\xb0{\xb6\xa8\x90+-\xedK\xf0\xe4\xd6&\x96H\xce\x931\x9f\xba\x01\x026\xef\xb4-\xe3V>\xa8Sr\x1e\x05L\xbc\x00N\xddU$\xad\x88,Z\xa4\xd7\xf1+\xc1\x0b\x9d\xd1\x84krS\x9e>J\x12\x9c\x83T\x10\x1d:\x15\xc4\x84\xe7\x988+NgM\xd9\xeaa\x1a\xd8l\xcd\xc78rT\xeb.\xf2\xde\xb1\xf8\x03a\xb3)+Z\x95\xdd\xc4\xf7{M\xd4!\xe2\xd2\x01\x04t\xb8\x85\x9f#\x84h=\' \xad\xcb\xecW\x1a\xc4\x06\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00@&}\x00\x1f\xca&E\xb4\x8b\x12O1\xae\xa5\xe7nn\x9e\xe2\xb6\xb2\xf8|n\xb9O\xca\xe7\xe1o\xf7\xee^\x05B\xb3\x0c?S\xa7\xc7\xd3\x0b\xcf\xe2\x9e#\x94*\xac<\x05\xab\xc0\x99\xd5\xc3\x87l\xe8n\x8f^\x7f#\xe8\x9c\x00\x04[\x80\xda\x03f\xec1\xa4W\xe7Q\xd4\xdd\x92\x0c\xb9\xc4?:\x0f\xcc\xb3 \xc7@v^J\xbar\x10\x99\x12\xf0\xfd\xbc\xbc\x060\x9a\x9e\xee\nP\x8e\x98dQ\xc2\xa8?\xd5LN.\x02\x925\x91\x13\x83q\xe5\x00\x00\x00\x00\x82\x00n\x0b\x02\xab3\x98\xf5\xd8b\x99^\xb5\xa8\xf5\x1a\x8b"\xfc\x8bs\xb2\xa8\xa9\xc2\x97\xcb3\xbdEK^\xf8\x98\x0f\xa7\xbf\xa9\x16\xe5a\xf4O4z\x11\xd0\xf4\xb7Nn\x01\xed\xdc\xd4K\x8e?g)\x12\x1f\x82\xa7!\x00"\xb7=\xb3_h\xaf\xeb\x02\x9c\x82\xe0\xf4\xa7\xf1\xa4*\xe9\xa2\xf0\xdfN\x85L\x95\x00\xfa7\x14U\xb2&\xa8~\xafV\x1a\xa0P*\xb0\xa8\x05*)\x90\x9f\xae)J\r\xc1\xd8\xea\xcf\xac\x93\x8b\xf3\x99\x8a\t\x12\x8b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00_\r\xe8Ox0\xd0\xc5\x07\xf578\xb3\xb1\x94\x06u\x9b\xe2\xe4\xd1\x8dy\xe9\xf9\xd9\xe0@\xc5\x94Rra\xc9\xdb\xb9\xdb\xa7\x90I\x1a& \xba!\xc4\x15\xc7\r\xb4\xebm\x02\xe2-\xb5@\x10\x1b\x99\x9fKM\x92\x03f/0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00@&}\x02/\x0c}QHy\xe0\xb4>S\x0f-u6\xb9\xf8\x14l\xc4\xaf\xde5Y\xace\xafm\x9e\xe1@\'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb2\x01\x07(\xde3\xeb<\xc8M\x7f\xd9{R\x0f\xf0\x87\x92\x89\x99\xd4{\xa3\xb4\xc9\x052\xe9\r\xb9T\xcb\x00\x00\x01\xd1\xa9J \x00\xb2\x01\x07(\xde3\xeb<\xc8M\x7f\xd9{R\x0f\xf0\x87\x92\x89\x99\xd4{\xa3\xb4\xc9\x052\xe9\r\xb9T\xcb\x00\x00\x00\x00\x81\x94\xcb\x15@w27\x92\x055\x15\xc6\xa6\x15\xbf\xb4H6\x1cmi\x9d\x1a\x04\xc3\x12z\xfd\xc3\xb8\xbb\xf5\x00[>\x89P\x82K:\x17\xa0\x83\xc3\xeb\xae\x91\x02\xb8\xb5!\x96\x92\xa0:\x8b\xbc\x0cs\x1fT\x80\xa8(\x12\xa4Y\x14t\xc3M\xc7\xf4\xa6\xb6\xf2\xfbd\xbf\xd7 Z\rsCB\xdd\xf5\xf1S4\xa80\xc6\xc5\x00\x00\x00\x00\x00\x00\x00\x00x\nA\x07\xb3\xd1\xc5H\xfb[\xd2]\xc7sI5\x82Tlp\x14\x17\x8a\xe4h\x05\x9d%\xf6AH\xbd\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x87\xde.\xeb\xe7Z\xe4\x97\xfd\xff\xe5\xdc\xbf\xe33\x9b\xe4N\xaa\xc1\xda5"\xac\x9an\xeaf8\x00\xc2*\x14\x95\x00B>!\x0e\xb5\xff\x97)y\xf3k \xbc\x01\xca^\xae\xae\x11\x15\xa40\xe1A\xa4PI\x05\x04\xbe\x0c\x04W{\x0b\x83k>\xd1\xd4\xadq\xf2Y\xb0W\xfc\xe1H\xb6\xc2Dy\xa0\xe6\x0e\xe6\x9e\xcd\xde\x0f\x00\x00\x00\x00\x04\x01sq\xa8', # noqa: E501
"GENESIS_BLOCK": b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x81\x8f\x0c\xec\x97\x85V`C\xfc\xe4\xf9A\xb6\xa1\xa8-@\x82`\r[v\x8f,\x86\xf1X\xc2?\xf6q\xf8\xfb\x8e\rnZ\xbaw\x11CN\xb1\xa9\xf9\xbb0\x93\x10\x8fc\xc3f&\x9b\x07>H\xf1\xa5\x841\xc8\xd9\xcaO\xd4\xb8\x93\x11\xa3\xd9\xfa\xb2U\x10\xcd\xec\x92*AA\xd9\xfd7\xcc\xf7]\xaf\x91V\xe3\x10\x1aa\x17\x00\x00\x00\xb8`\xbfL[I\x16\xd5\x01>\tw>S\xf0#8\xed\xc6\x88\xc5#=i2\x0c\x8d\xbe\x85\xeb\x8f\xee\x1b\x06a\x99\x1c\xba\xfa\xcba\xe6\x04Q\xf4\xc7\xe92RrU l\x01\xee 7)\xff\xa5\xa68\xb5\x10\xbbrQb\xb0\x01\'K\xf1\x07).Z.\')\xee`b\xab\x01\xa9\x82S\x91\x16\x9c\x96\x95\xaf\xe5\xe5\xca\xb7@\x03\xf4$\x87\xe6N\xd3\xfb\xd39Y4D\x91\xed\x14\xda4\xa8\xbfO@\xb4\xd3\x8d\xa9\x9f\xc5\xd4\xf1`o\x9bg\x81\x12\xb0i\xdfJ\xeb*\xd2*`\x95\xf0\xd0j\xa4\x8e\xa6\xcf\xaaHn\xd9\xfe_\xc9\xd9\x85\x8a\xa5\xe8\x1c\x9dk\xc5\xf0\xda\xfe\xd7R\xb5\xbe\x1e\xe0qw\x7f}x\xa7\xa6[\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00P\xa2\xa9\x00cN 4\xf5\xb9]\xefu\t\x1a\x92\x85\xd0,\x8e\xca5\xff7N\xb3N-\x94-\xb4\xa3q[\xfd\xf0\x0b4\x8a/&#v\x19Y\\\xf8\x83o\x1b\x1b\x85\xe18\xbd\xce\xd5\x98\x11r\xaa\xd8\x1d8\xbe<Q\x9e\x00\x17sy\x96\x19\x86Go<\x1a\xa1\x94\xc6\xd2\xea\xe1~\xc4\xc8\xf6 \x83}(\xce\x86\xea\xbd\xc0\xe0\xc8_9\xe1`S\xbeZ\xc4y\x1d\xebx\xa1\x1e"g\x16\xbbC\x0b\rhkU\x13\xf2i^[\xa8t(\x95\x00\x00\x00\x00\x82\x00F\x129)\x8a>[/\x8b\xbb\xa4\xf0\x86\x10\x93\x9b\x05\xd1\x1c$\xfc\xae\xbbI\xa8\x835Qj\xba\x87E\xf8a5t\x81i\xa6Lm\x82\xc5#C!\\f\xc5\x18\x80\x97y\xd5P\xe42\xa0\x15\x8b 6\x19l\x00\x18\xb9-\x85\x15\x9c\xed\xe4\xf2\x83j\x8d^\xca&/\xf6X@P\x8eC,\xaea\x85\x0c\xa66\x16,F\xf8\x07V\xf8\x83\xd3\x18\xd2R\xdf\xf8:\x8f\n\x85\xa6\'\xb5\x8bt%\xf5\xbaz\x03\x01\x1a\xa5\xd6m\x10\xcb\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00_Y\xda\xc6Z\xb0?\x8fN^\x06\\w#Y\xc3n\xb4\x083\x1d\x01\xb4\xd8Y\xbb\xcf\xa9\xd8\t\x8a8N\xe5a\xa2\x0e\x0cM\xe8Kj\xfb99\xd4\x02\xca\xa2\x14\n\xf4\xafB%\xbf\xf8;\x83\xd7\xee&RS\x8e\x0b\xab\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00P\xa2\xa9\x8c-\x02\x9a\xb0\x08s^m1Z\xf5\x0f\xa7\x1d\x87`|\x92\xeb\x07\xb9\xaa\x90\xc1\xefz\xa2\x10\xf4\xf2\x8d\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00z\x91k\xdcP\xd3\xd03{\t\x98f\x8aOC\x96p3\x94g\xd7\xe9\x03\x9b\x86P\xba{\x1dO\xc1\xa0\x00\x00\x01\xd1\xa9J \x00z\x91k\xdcP\xd3\xd03{\t\x98f\x8aOC\x96p3\x94g\xd7\xe9\x03\x9b\x86P\xba{\x1dO\xc1\xa0\x00\x00\x00\x00\xa8\x81\xb2#\xdf\'\xe1\x14\x94p\xa6\xd2\xa4\xe6\x0c\xf7\xd3\x0b9\xdf3C\xf8\'\x98\xeb\xaf\xe8\xeef\xe5\xa8w\xd2\x94h?\x00\xe1\xb0\xd6\xee\x9a\xcb\xbeNM\x80\x17\xca(?o\xf5J\xa8\x9c\xf1\xb7\xd2\x87/\x9f\xb6\x18\xee\xf2\xf6\xcb*\xbc\xb7D\xb7\xf8\xaf\x9b\x99\xe1Z\xb0\x05\xbe\xdf\x85\x10\x0eS\x98\xd1\x14\x1b\xcf\xfe\xa5\xe0\x00\x00\x00\x00\x00\x00\x00\x00\xa1\x999\xae\xe9\xf1n\xc1\xc1\xc6q<\xe97%_\x1e\x1b\xd0>\xcd\xa8\x94\xd8;\xe4\x9f\xa7\xb1V\xa5Q\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x92.\xa5X;>\x8d\x90!Op[q\x90g\xdc,\xee\x1b!\xb7hI\x06q\xf9mq3\xd7,\xb6\x1f,qf\xa3\xdf \x8ac\xbf\x91p\xb1\xd6\xe0\x87\x0cJ\xa0\xb22z?X\x90\x0e\xa9\x85@\x0b\x90\t\x84\xd1e\xd9f\xb9U\x11\xfa+\xa2\xc8+\xa3\x0e\xdf\xcc\x04\x94\xdaC\x1c\xea\xf6\xd5\x18n\x00\x15\xa5S\x11\x00\x00\x00\x00\x04\x01A\xbap', # noqa: E501
# Target tx count per sec
"TX_PER_SEC": 20,
# Size of mempool = 10x the size of block

View File

@ -5,7 +5,7 @@ from src.types.sized_bytes import bytes32
from src.util.cbor_message import cbor_message
from src.util.ints import uint16
protocol_version = "0.0.17"
protocol_version = "0.0.18"
"""
Handshake when establishing a connection between two servers.

View File

@ -52,6 +52,8 @@ class FullNodeRpcClient(RpcClient):
response = await self.fetch(
"get_header", {"header_hash": header_hash.hex()}
)
if response["header"] is None:
return None
except aiohttp.client_exceptions.ClientResponseError as e:
if e.message == "Not Found":
return None

View File

@ -690,7 +690,8 @@ if __name__ == "__main__":
b"0",
bytes32(
bytes.fromhex(
"b2010728de33eb3cc84d7fd97b520ff087928999d47ba3b4c90532e90db954cb"
# "txch102gkhhzs60grx7cfnpng5n6rjecr89r86l5s8xux2za8k820cxsq64ssdg
"7a916bdc50d3d0337b0998668a4f439670339467d7e9039b8650ba7b1d4fc1a0"
)
),
)