Skip to content
Permalink
Browse files

Add RPC support

  • Loading branch information...
maran committed Apr 23, 2015
1 parent 737754c commit cf1c3e8a385de334ed06316da346cdf6a99b72c7
Showing with 6 additions and 0 deletions.
  1. +6 −0 main.go
@@ -79,9 +79,15 @@ func run(ctx *cli.Context) {

ethereum, err := eth.New(cfg)
utils.StartEthereum(ethereum)

if err != nil {
utils.Fatalf("%v", err)
}

if ctx.GlobalBool(utils.RPCEnabledFlag.Name) {
utils.StartRPC(ethereum, ctx)
}

events := ethereum.EventMux().Subscribe(
core.ChainEvent{},
core.TxPreEvent{},

0 comments on commit cf1c3e8

Please sign in to comment.
You can’t perform that action at this time.