diff --git a/cmd/geth/main.go b/cmd/geth/main.go index c841f3c5cb..b7d2cf3554 100644 --- a/cmd/geth/main.go +++ b/cmd/geth/main.go @@ -319,7 +319,7 @@ func prepare(ctx *cli.Context) { // geth is the main entry point into the system if no special subcommand is ran. // 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 { +func geth(ctx *cli.Context) error { // TODO(Alec) code pointer if args := ctx.Args(); len(args) > 0 { return fmt.Errorf("invalid command: %q", args[0]) } diff --git a/cmd/utils/cmd.go b/cmd/utils/cmd.go index 06d296801a..ed1bf487ff 100644 --- a/cmd/utils/cmd.go +++ b/cmd/utils/cmd.go @@ -66,7 +66,7 @@ func Fatalf(format string, args ...interface{}) { os.Exit(1) } -func StartNode(ctx *cli.Context, stack *node.Node) { +func StartNode(ctx *cli.Context, stack *node.Node) { // TODO(Alec) code pointer if err := stack.Start(); err != nil { Fatalf("Error starting protocol stack: %v", err) } diff --git a/consensus/istanbul/backend/engine.go b/consensus/istanbul/backend/engine.go index 6fb4999563..41f5f100e6 100644 --- a/consensus/istanbul/backend/engine.go +++ b/consensus/istanbul/backend/engine.go @@ -1058,7 +1058,7 @@ func (sb *Backend) SetStartValidatingBlock(blockNumber *big.Int) error { } // SetStopValidatingBlock sets the block that the validator will stop just before (exclusive range) -func (sb *Backend) SetStopValidatingBlock(blockNumber *big.Int) error { +func (sb *Backend) SetStopValidatingBlock(blockNumber *big.Int) error { // TODO(Alec) code pointer if sb.replicaState == nil { return errNotAValidator } diff --git a/consensus/istanbul/core/handler.go b/consensus/istanbul/core/handler.go index a591fb217a..dbcb09e7b1 100644 --- a/consensus/istanbul/core/handler.go +++ b/consensus/istanbul/core/handler.go @@ -59,7 +59,7 @@ func (c *core) Start() error { } // Stop implements core.Engine.Stop -func (c *core) Stop() error { +func (c *core) Stop() error { // TODO(Alec) code pointer c.stopAllTimers() c.unsubscribeEvents() diff --git a/core/blockchain.go b/core/blockchain.go index 5ebb1a9f72..48b0e8b0e3 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -1018,7 +1018,7 @@ func (bc *BlockChain) ContractCodeWithPrefix(hash common.Hash) ([]byte, error) { // Stop stops the blockchain service. If any imports are currently in progress // it will abort them using the procInterrupt. -func (bc *BlockChain) Stop() { +func (bc *BlockChain) Stop() { // TODO(Alec) code pointer if !atomic.CompareAndSwapInt32(&bc.running, 0, 1) { return } diff --git a/eth/backend.go b/eth/backend.go index 0aea69f1e6..92a683efe9 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -600,7 +600,7 @@ func (s *Ethereum) Start() error { // Stop implements node.Lifecycle, terminating all internal goroutines used by the // Ethereum protocol. -func (s *Ethereum) Stop() error { +func (s *Ethereum) Stop() error { // TODO(Alec) code pointer // Stop all the peer-related stuff first. s.stopAnnounce() s.ethDialCandidates.Close() diff --git a/node/node.go b/node/node.go index a05209dd02..1f689a9117 100644 --- a/node/node.go +++ b/node/node.go @@ -215,7 +215,7 @@ func (n *Node) Start() error { // Close stops the Node and releases resources acquired in // Node constructor New. -func (n *Node) Close() error { +func (n *Node) Close() error { // TODO(Alec) code pointer n.startStopLock.Lock() defer n.startStopLock.Unlock()