Skip to content

Commit

Permalink
Update node version and params
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout committed May 18, 2024
1 parent 089e557 commit b03b3b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/pytezos/sandbox/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 5 additions & 4 deletions src/pytezos/sandbox/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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': [
Expand All @@ -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',
Expand Down

0 comments on commit b03b3b3

Please sign in to comment.