aboutsummaryrefslogtreecommitdiffstats
path: root/core/utils/utils.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2019-04-12 11:35:37 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-12 11:35:37 +0800
commit24c0cecbbf7ba84754ccc02d37c9540ce317976c (patch)
tree81031ec19affa0a0b962af627301963b077ea194 /core/utils/utils.go
parent1107fedc61b1b042216948d9fea78e7747f7599f (diff)
downloadtangerine-consensus-24c0cecbbf7ba84754ccc02d37c9540ce317976c.tar.gz
tangerine-consensus-24c0cecbbf7ba84754ccc02d37c9540ce317976c.tar.zst
tangerine-consensus-24c0cecbbf7ba84754ccc02d37c9540ce317976c.zip
core: add report bad peer interface to network (#559)
Diffstat (limited to 'core/utils/utils.go')
-rw-r--r--core/utils/utils.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/utils/utils.go b/core/utils/utils.go
index 1a372c7..dc29bdf 100644
--- a/core/utils/utils.go
+++ b/core/utils/utils.go
@@ -105,7 +105,7 @@ func VerifyDKGComplaint(
// channel of a network module. An context is required to stop the go routine
// automatically. An optinal message handler could be provided.
func LaunchDummyReceiver(
- ctx context.Context, recv <-chan interface{}, handler func(interface{})) (
+ ctx context.Context, recv <-chan types.Msg, handler func(types.Msg)) (
context.CancelFunc, <-chan struct{}) {
var (
dummyCtx, dummyCancel = context.WithCancel(ctx)