mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 12:46:44 +00:00
jsre executes js file AFTER ethereum starts (allows scripted add peer without wait, etc)
This commit is contained in:
parent
d82df7e30f
commit
470812464e
1 changed files with 5 additions and 7 deletions
|
|
@ -112,13 +112,6 @@ func main() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// better reworked as cases
|
|
||||||
if StartJsConsole {
|
|
||||||
InitJsConsole(ethereum)
|
|
||||||
} else if len(InputFile) > 0 {
|
|
||||||
ExecJsFile(ethereum, InputFile)
|
|
||||||
}
|
|
||||||
|
|
||||||
if StartRpc {
|
if StartRpc {
|
||||||
utils.StartRpc(ethereum, RpcPort)
|
utils.StartRpc(ethereum, RpcPort)
|
||||||
}
|
}
|
||||||
|
|
@ -129,6 +122,11 @@ func main() {
|
||||||
|
|
||||||
utils.StartEthereum(ethereum, UseSeed)
|
utils.StartEthereum(ethereum, UseSeed)
|
||||||
|
|
||||||
|
if StartJsConsole {
|
||||||
|
InitJsConsole(ethereum)
|
||||||
|
} else if len(InputFile) > 0 {
|
||||||
|
ExecJsFile(ethereum, InputFile)
|
||||||
|
}
|
||||||
// this blocks the thread
|
// this blocks the thread
|
||||||
ethereum.WaitForShutdown()
|
ethereum.WaitForShutdown()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue