chia-blockchain/chia/simulator/simulator_constants.py

14 lines
534 B
Python

from __future__ import annotations
if __name__ == "__main__":
from chia.simulator.block_tools import create_block_tools, test_constants
from chia.simulator.keyring import TempKeyring
from chia.util.default_root import DEFAULT_ROOT_PATH
with TempKeyring() as keychain:
# TODO: mariano: fix this with new consensus
bt = create_block_tools(root_path=DEFAULT_ROOT_PATH, keychain=keychain)
new_genesis_block = bt.create_genesis_block(test_constants, b"0")
print(bytes(new_genesis_block))