Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Fix bios-boot-tutorial.py startup error in eosio v1.8.x #7918

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tutorials/bios-boot-tutorial/bios-boot-tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ def startNode(nodeIndex, account):
' --private-key \'["' + account['pub'] + '","' + account['pvt'] + '"]\''
' --plugin eosio::http_plugin'
' --plugin eosio::chain_api_plugin'
' --plugin eosio::producer_plugin' +
' --plugin eosio::producer_plugin'
' --plugin eosio::producer_api_plugin' +
otherOpts)
with open(dir + 'stderr', mode='w') as f:
f.write(cmd + '\n\n')
Expand Down Expand Up @@ -284,6 +285,8 @@ def stepStartWallet():
def stepStartBoot():
startNode(0, {'name': 'eosio', 'pvt': args.private_key, 'pub': args.public_key})
sleep(1.5)
def stepActiveProtocolFeatures():
run('curl -X POST http://127.0.0.1:8000/v1/producer/schedule_protocol_feature_activations -d \'{"protocol_features_to_activate": ["0ec7e080177b2c02b278d5088611686b49d739925a92d9bfcacd7fc6b74053bd"]}\'')
def stepInstallSystemContracts():
run(args.cleos + 'set contract eosio.token ' + args.contracts_dir + '/eosio.token/')
run(args.cleos + 'set contract eosio.msig ' + args.contracts_dir + '/eosio.msig/')
Expand Down Expand Up @@ -334,6 +337,7 @@ def stepLog():
('w', 'wallet', stepStartWallet, True, "Start keosd, create wallet, fill with keys"),
('b', 'boot', stepStartBoot, True, "Start boot node"),
('s', 'sys', createSystemAccounts, True, "Create system accounts (eosio.*)"),
('f', 'features', stepActiveProtocolFeatures, True, "Activite polotools features"),
('c', 'contracts', stepInstallSystemContracts, True, "Install system contracts (token, msig)"),
('t', 'tokens', stepCreateTokens, True, "Create tokens"),
('S', 'sys-contract', stepSetSystemContract, True, "Set system contract"),
Expand Down