Injecting the full ERC20 snapshot in under 6 minutes - FireStarter by eosargentina

View this thread on steempeak.com
· @eosargentina · (edited)
$20.58
Injecting the full ERC20 snapshot in under 6 minutes - FireStarter
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](https://github.com/EOSArgentina/firestarter/blob/284d9e7456bdebe269146bda509001a196aa4800/inject/injector.py#L101) (4500 actions that create 1500 accounts)

# 3. After the injection, we setup back the parameters to the genesis value
![photo-1451224222030-cee2f5dbcd10.jpeg](https://ipfs.busy.org/ipfs/QmeEzmFnfeanBFRvP8TChK2CResKUY8o5BVjN9KzExhshy)

[Source](https://unsplash.com/photos/C2a4RGapd8s)
πŸ‘  , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
post_id51,562,349
authoreosargentina
permlinkinjecting-the-full-erc20-snapshot-in-under-6-minutes-firestarter
categoryeosio
json_metadata"{"tags": ["eosio", "eos", "blockproducer"], "links": ["https://github.com/EOSArgentina/firestarter/blob/284d9e7456bdebe269146bda509001a196aa4800/inject/injector.py#L101", "https://unsplash.com/photos/C2a4RGapd8s"], "format": "markdown", "app": "busy/2.4.0", "community": "busy"}"
created2018-06-04 00:54:36
last_update2018-06-04 00:55:51
depth0
children2
net_rshares5,627,456,614,305
last_payout2018-06-11 00:54:36
cashout_time1969-12-31 23:59:59
total_payout_value16.232 SBD
curator_payout_value4.347 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length1,175
author_reputation3,311,311,214,825
root_title"Injecting the full ERC20 snapshot in under 6 minutes - FireStarter"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (25)
@genereos ·
Great job Guys!
πŸ‘  
properties (23)
post_id51,564,863
authorgenereos
permlinkre-eosargentina-injecting-the-full-erc20-snapshot-in-under-6-minutes-firestarter-20180604t012712703z
categoryeosio
json_metadata"{"tags": ["eosio"], "app": "steemit/0.1"}"
created2018-06-04 01:27:12
last_update2018-06-04 01:27:12
depth1
children0
net_rshares1,219,838,946
last_payout2018-06-11 01:27:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length15
author_reputation1,698,243,652,461
root_title"Injecting the full ERC20 snapshot in under 6 minutes - FireStarter"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@dailyupvotes ·
re-eosargentina-injecting-the-full-erc20-snapshot-in-under-6-minutes-firestarter-20180604t020837061z
You got a 64.52% upvote from @dailyupvotes courtesy of @eosargentina!

Please upvote this comment to support the service.
properties (22)
post_id51,568,291
authordailyupvotes
permlinkre-eosargentina-injecting-the-full-erc20-snapshot-in-under-6-minutes-firestarter-20180604t020837061z
categoryeosio
json_metadata"{"app": "postpromoter/2.0.0"}"
created2018-06-04 02:08:36
last_update2018-06-04 02:08:36
depth1
children0
net_rshares0
last_payout2018-06-11 02:08:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length122
author_reputation747,021,898,927
root_title"Injecting the full ERC20 snapshot in under 6 minutes - FireStarter"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000