Injecting the full ERC20 snapshot in under 6 minutes - FireStarter

in #eosio6 years ago (edited)

Firestarter is a tool to Boot and Validate the network. The strategy behind the code is to inject the erc20 snapshot in the least amount of time possible. In order to do this we have combined these techniques:

1. We modified the following Blockchain parameters:

bparams['max_block_cpu_usage'] = 100000000
bparams['max_transaction_cpu_usage'] = 99999899

What we achieve with this is to allow cpu-costly transactions into a block.

At the same we run nodeos with the following commands to allow more time for the transaction to be processed:

--max-transaction-time 100000

2. Grouping many transactions into one tx

We also don’t rely on Cleos to send one transaction at the time, instead we build one big transaction that groups 4500 actions into 1 tx (4500 actions that create 1500 accounts)

3. After the injection, we setup back the parameters to the genesis value

photo-1451224222030-cee2f5dbcd10.jpeg

Source

Sort:  

You got a 64.52% upvote from @dailyupvotes courtesy of @eosargentina!

Please upvote this comment to support the service.

Coin Marketplace

STEEM 0.26
TRX 0.11
JST 0.033
BTC 64266.94
ETH 3077.24
USDT 1.00
SBD 3.87