Fix p2p issues in #465 (#489)

This commit is contained in:
Preston Van Loon
2018-09-09 18:15:24 -04:00
committed by GitHub
parent d4e8de95d8
commit db1138ae1f
22 changed files with 154 additions and 91 deletions

View File

@@ -28,6 +28,7 @@ go_library(
"//validator/rpcclient:go_default_library",
"//validator/txpool:go_default_library",
"//validator/types:go_default_library",
"@com_github_golang_protobuf//proto:go_default_library",
"@com_github_sirupsen_logrus//:go_default_library",
"@com_github_urfave_cli//:go_default_library",
],

View File

@@ -1,15 +1,16 @@
package node
import (
"github.com/golang/protobuf/proto"
"github.com/prysmaticlabs/prysm/shared/p2p"
pb "github.com/prysmaticlabs/prysm/proto/sharding/p2p/v1"
)
var topicMappings = map[pb.Topic]interface{}{
pb.Topic_COLLATION_BODY_REQUEST: pb.CollationBodyRequest{},
pb.Topic_COLLATION_BODY_RESPONSE: pb.CollationBodyResponse{},
pb.Topic_TRANSACTIONS: pb.Transaction{},
var topicMappings = map[pb.Topic]proto.Message{
pb.Topic_COLLATION_BODY_REQUEST: &pb.CollationBodyRequest{},
pb.Topic_COLLATION_BODY_RESPONSE: &pb.CollationBodyResponse{},
pb.Topic_TRANSACTIONS: &pb.Transaction{},
}
func configureP2P() (*p2p.Server, error) {