From b03b3b342efdcdccbdb92d203b2e2a27bfc55dda Mon Sep 17 00:00:00 2001 From: Lev Gorodetskiy Date: Sat, 18 May 2024 17:03:40 -0300 Subject: [PATCH] Update node version and params --- src/pytezos/sandbox/node.py | 2 +- src/pytezos/sandbox/parameters.py | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/pytezos/sandbox/node.py b/src/pytezos/sandbox/node.py index cac1b6b3..1386710b 100644 --- a/src/pytezos/sandbox/node.py +++ b/src/pytezos/sandbox/node.py @@ -22,7 +22,7 @@ from pytezos.sandbox.parameters import LATEST from pytezos.sandbox.parameters import sandbox_addresses -DOCKER_IMAGE = 'bakingbad/sandboxed-node:v19.2-1' +DOCKER_IMAGE = 'bakingbad/sandboxed-node:v20.0-rc1-1' MAX_ATTEMPTS = 60 ATTEMPT_DELAY = 0.5 TEZOS_NODE_PORT = 8732 diff --git a/src/pytezos/sandbox/parameters.py b/src/pytezos/sandbox/parameters.py index b4e9e0b7..af168cd0 100644 --- a/src/pytezos/sandbox/parameters.py +++ b/src/pytezos/sandbox/parameters.py @@ -81,7 +81,6 @@ 'bootstrap1': 'tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx', } -# https://gitlab.com/tezos/tezos/-/blob/master/src/proto_019_PtParisB/lib_parameters/default_parameters.ml#L317 sandbox_params: Dict[str, Any] = { # NOTE: Built-in accounts 'bootstrap_accounts': [ @@ -98,12 +97,14 @@ '100500000000', ], ], - # NOTE: Shorter cycles and voting periods - 'preserved_cycles': 2, + # NOTE: Shorter cycles, voting periods and other parameters + # NOTE: From https://gitlab.com/tezos/tezos/-/blob/master/src/proto_019_PtParisB/lib_parameters/default_parameters.ml#L317 + 'blocks_preservation_cycles': 1, + 'consensus_rights_delay': 2, + 'delegate_parameters_activation_delay': 2, 'blocks_per_cycle': 8, 'blocks_per_commitment': 4, 'nonce_revelation_threshold': 4, - 'blocks_per_stake_snapshot': 4, 'cycles_per_voting_period': 8, 'proof_of_work_threshold': str((1 << 63) - 1), 'vdf_difficulty': '50000',