diff --git a/tutorials/bios-boot-tutorial/bios-boot-tutorial.py b/tutorials/bios-boot-tutorial/bios-boot-tutorial.py index 321160429fc..50b26ddd587 100755 --- a/tutorials/bios-boot-tutorial/bios-boot-tutorial.py +++ b/tutorials/bios-boot-tutorial/bios-boot-tutorial.py @@ -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') @@ -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/') @@ -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"),