mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 04:36:42 +00:00
jsre executes js file AFTER ethereum starts (allows scripted add peer without wait, etc)
This commit is contained in:
parent
c610c53a9e
commit
53aa639c51
1 changed files with 5 additions and 7 deletions
|
|
@ -124,13 +124,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)
|
||||||
}
|
}
|
||||||
|
|
@ -141,6 +134,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