Left comments on all PluGeth code injections

This commit is contained in:
philip-morlier
2022-04-04 15:40:56 -05:00
committed by Austin Roberts
parent 4211c5c401
commit fd0aaa1d6b
8 changed files with 22 additions and 3 deletions
+2 -1
View File
@@ -328,6 +328,7 @@ func prepare(ctx *cli.Context) {
// It creates a default node based on the command line arguments and runs it in
// blocking mode, waiting for it to be shut down.
func geth(ctx *cli.Context) error {
//begin PluGeth code injection
if err := plugins.Initialize(path.Join(ctx.GlobalString(utils.DataDirFlag.Name), "plugins"), ctx); err != nil {
return err
}
@@ -346,7 +347,7 @@ func geth(ctx *cli.Context) error {
}
defer stack.Close()
stack.RegisterAPIs(pluginGetAPIs(stack, wrapperBackend))
//end PluGeth code injection
startNode(ctx, stack, backend, false)
stack.Wait()
return nil