stove-labs / granary

Tezos smart contract & dapp development toolkit
MIT License
67 stars 8 forks source link

setting up Babylone protocol #22

Open frankhillard opened 5 years ago

frankhillard commented 5 years ago

Hello, I'm trying to activate the "babylone" protocol while using the starter-kit. Naively, I was expecting to modify the starter-kit scripts and get a running node on babylone.

Steps to reproduce the behavior:

  1. add a new command in package.json ''' "activate-proto-babylone": "./activate_proto_babylone.sh", '''
  2. create a new "activate_proto_babylone.sh" (with the babylone protocol hash) '''

    !/bin/bash

    ./node_modules/.bin/granary client - import secret key activator unencrypted:edsk31vznjHSSpGExDMHYASz45VZqXN4DPxvsa4hAyY8dHM28cZzp6 --force ./node_modules/.bin/granary client - activate protocol PsBABY5HQTSkA4297zNHfsZNKtxULfL18y95qb3m53QJiXGmrbU with fitness 1 and key activator and parameters $PWD/protocol_parameters_babylone.json --timestamp $(TZ='AAA+1' date +%FT%TZ) ./node_modules/.bin/granary client - import secret key "bootstrap1" "unencrypted:edsk3gUfUPyBSfrS9CCgmCiQsTCHGkviBDusMxDJstFtojtc1zcpsh" ./node_modules/.bin/granary client - bake for bootstrap1 ./node_modules/.bin/granary client - rpc get /chains/main/blocks/head '''

  3. create a new 'protocol_parameters_babylone.json' ''' { "bootstrap_accounts": [ [ "edpkuBknW28nW72KG6RoHtYW7p12T6GKc7nAbwYX5m8Wd9sDVC9yav", "4000000000000" ] ], "time_between_blocks": [ "1", "0" ], "blocks_per_roll_snapshot": 4, "blocks_per_cycle": 8, "preserved_cycles": 2, "proof_of_work_threshold": "-1", "blocks_per_commitment": 4, "blocks_per_voting_period": 64, "endorsers_per_block": 32, "hard_gas_limit_per_operation": "800000", "hard_gas_limit_per_block": "8000000", "tokens_per_roll": "8000", "michelson_maximum_type_size": 1000, "seed_nonce_revelation_tip": "1", "origination_size": 257, "block_security_deposit": "512", "endorsement_security_deposit": "64", "block_reward": "16", "endorsement_reward": "2", "hard_storage_limit_per_operation": "60000", "cost_per_byte": "1000", "test_chain_duration": "1966080", "quorum_min": 2000, "quorum_max": 7000, "min_proposal_quorum": 500, "initial_endorsers": 24, "delay_per_missing_endorsement": "8" } '''
  4. npm run init
  5. npm run start
  6. in a new terminal, npm run activate-proto-babylone

I was expecting a running node in babylone

The script start (import secret key activator seems to work) and then "activate protocol" command fail/freeze ...

Desktop (please complete the following information):