create account

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

View this thread on: hive.blogpeakd.comecency.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)
authoreosargentina
permlinkinjecting-the-full-erc20-snapshot-in-under-6-minutes-firestarter
categoryeosio
json_metadata{"community":"busy","app":"busy/2.4.0","format":"markdown","links":["https://github.com/EOSArgentina/firestarter/blob/284d9e7456bdebe269146bda509001a196aa4800/inject/injector.py#L101","https://unsplash.com/photos/C2a4RGapd8s"],"tags":["eosio","eos","blockproducer"]}
created2018-06-04 00:54:36
last_update2018-06-04 00:55:51
depth0
children2
last_payout2018-06-11 00:54:36
cashout_time1969-12-31 23:59:59
total_payout_value16.232 HBD
curator_payout_value4.347 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,175
author_reputation3,312,690,232,047
root_title"Injecting the full ERC20 snapshot in under 6 minutes - FireStarter"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id59,125,314
net_rshares5,627,456,614,305
author_curate_reward""
vote details (25)
@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)
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
last_payout2018-06-11 02:08:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length122
author_reputation746,471,883,194
root_title"Injecting the full ERC20 snapshot in under 6 minutes - FireStarter"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id59,131,969
net_rshares0
@genereos ·
Great job Guys!
πŸ‘  
properties (23)
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
last_payout2018-06-11 01:27:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length15
author_reputation1,697,447,856,870
root_title"Injecting the full ERC20 snapshot in under 6 minutes - FireStarter"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id59,128,175
net_rshares1,219,838,946
author_curate_reward""
vote details (1)