Commit 1bfa1d13 authored by Tei Im's avatar Tei Im

Add some comments

parent 6cca247a
...@@ -351,9 +351,11 @@ func checkConsolidation(cliCtx *cli.Context) error { ...@@ -351,9 +351,11 @@ func checkConsolidation(cliCtx *cli.Context) error {
rng := rand.New(rand.NewSource(1337)) rng := rand.New(rand.NewSource(1337))
// txMap maps txHash to blockID // txMap maps txHash to blockID
txMap := make(map[common.Hash]eth.BlockID) txMap := make(map[common.Hash]eth.BlockID)
// Submit random txs for each tx types
for i := 0; i < txCount; i++ { for i := 0; i < txCount; i++ {
txType := types.LegacyTxType txType := types.LegacyTxType
protected := true protected := true
// Generate all tx types alternately
switch i % 4 { switch i % 4 {
case 0: case 0:
protected = false // legacy unprotected TX (Homestead) protected = false // legacy unprotected TX (Homestead)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment