Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setting up Babylone protocol #22

Open
frankhillard opened this issue Oct 31, 2019 · 0 comments
Open

setting up Babylone protocol #22

frankhillard opened this issue Oct 31, 2019 · 0 comments

Comments

@frankhillard
Copy link

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):

  • OS: ubuntu 18
  • Browser firefox
  • Version 1.0.0-pre-alpha.38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant