|
|
@ -193,11 +193,6 @@ func setupGenesisAccount() (isLeader bool) { |
|
|
|
|
|
|
|
|
|
|
|
fmt.Printf("My Genesis Account: %v\n", *genesisAccount) |
|
|
|
fmt.Printf("My Genesis Account: %v\n", *genesisAccount) |
|
|
|
|
|
|
|
|
|
|
|
// Set up manual call for garbage collection.
|
|
|
|
|
|
|
|
if *enableGC { |
|
|
|
|
|
|
|
memprofiling.MaybeCallGCPeriodically() |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return isLeader |
|
|
|
return isLeader |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -440,6 +435,11 @@ func main() { |
|
|
|
|
|
|
|
|
|
|
|
initSetup() |
|
|
|
initSetup() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Set up manual call for garbage collection.
|
|
|
|
|
|
|
|
if *enableGC { |
|
|
|
|
|
|
|
memprofiling.MaybeCallGCPeriodically() |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
isLeader := false |
|
|
|
isLeader := false |
|
|
|
if !*isExplorer { // Explorer node doesn't need the following setup
|
|
|
|
if !*isExplorer { // Explorer node doesn't need the following setup
|
|
|
|
isLeader = setupGenesisAccount() |
|
|
|
isLeader = setupGenesisAccount() |
|
|
|