aboutsummaryrefslogtreecommitdiffstats
path: root/core/helper_test.go
diff options
context:
space:
mode:
authorchanghong <changhong.yu@shanbay.com>2017-05-11 09:55:48 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-05-25 22:14:33 +0800
commit17f0b1194232ebebc4e14f905e6e1d2d148aa5b6 (patch)
tree60663b43bff6e8df5b5a4693cbabc7756482136e /core/helper_test.go
parent07aae19e5da66ed404453e6be70ab84db516207b (diff)
downloadgo-tangerine-17f0b1194232ebebc4e14f905e6e1d2d148aa5b6.tar
go-tangerine-17f0b1194232ebebc4e14f905e6e1d2d148aa5b6.tar.gz
go-tangerine-17f0b1194232ebebc4e14f905e6e1d2d148aa5b6.tar.bz2
go-tangerine-17f0b1194232ebebc4e14f905e6e1d2d148aa5b6.tar.lz
go-tangerine-17f0b1194232ebebc4e14f905e6e1d2d148aa5b6.tar.xz
go-tangerine-17f0b1194232ebebc4e14f905e6e1d2d148aa5b6.tar.zst
go-tangerine-17f0b1194232ebebc4e14f905e6e1d2d148aa5b6.zip
core: typos and comments improve
1. fix typos 2. methods recevier of struct should be same 3. comments improve (cherry picked from commit 1ba979539582a00b7fd1a7c8a37a6852e59eac0d)
Diffstat (limited to 'core/helper_test.go')
-rw-r--r--core/helper_test.go14
1 files changed, 6 insertions, 8 deletions
diff --git a/core/helper_test.go b/core/helper_test.go
index fd6a5491c..698a2924c 100644
--- a/core/helper_test.go
+++ b/core/helper_test.go
@@ -21,8 +21,6 @@ import (
"fmt"
"github.com/ethereum/go-ethereum/core/types"
- // "github.com/ethereum/go-ethereum/crypto"
-
"github.com/ethereum/go-ethereum/ethdb"
"github.com/ethereum/go-ethereum/event"
)
@@ -38,24 +36,24 @@ type TestManager struct {
Blocks []*types.Block
}
-func (s *TestManager) IsListening() bool {
+func (tm *TestManager) IsListening() bool {
return false
}
-func (s *TestManager) IsMining() bool {
+func (tm *TestManager) IsMining() bool {
return false
}
-func (s *TestManager) PeerCount() int {
+func (tm *TestManager) PeerCount() int {
return 0
}
-func (s *TestManager) Peers() *list.List {
+func (tm *TestManager) Peers() *list.List {
return list.New()
}
-func (s *TestManager) BlockChain() *BlockChain {
- return s.blockChain
+func (tm *TestManager) BlockChain() *BlockChain {
+ return tm.blockChain
}
func (tm *TestManager) TxPool() *TxPool {