Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
f99e3d2e
Commit
f99e3d2e
authored
Jan 23, 2019
by
mdj33
Committed by
vipwzw
Jan 25, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
paracross adapt multi grpc ip
parent
1c8c5a8d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
14 deletions
+0
-14
para.go
plugin/consensus/para/para.go
+0
-12
paracommitmsg.go
plugin/consensus/para/paracommitmsg.go
+0
-2
No files found.
plugin/consensus/para/para.go
View file @
f99e3d2e
...
...
@@ -46,7 +46,6 @@ var (
blockSec
int64
=
5
//write block interval, second
emptyBlockInterval
int64
=
4
//write empty block every interval blocks in mainchain
zeroHash
[
32
]
byte
grpcRecSize
=
30
*
1024
*
1024
//the size should be limited in server
//current miner tx take any privatekey for unify all nodes sign purpose, and para chain is free
minerPrivateKey
=
"6da92a632ab7deb67d38c0f6560bcfed28167998f6496db64c258d5e8393a81b"
searchHashMatchDepth
int32
=
100
...
...
@@ -61,7 +60,6 @@ func init() {
type
client
struct
{
*
drivers
.
BaseClient
grpcClient
types
.
Chain33Client
paraClient
paracross
.
ParacrossClient
execAPI
api
.
ExecutorAPI
isCaughtUp
bool
commitMsgClient
*
commitMsgClient
...
...
@@ -121,16 +119,6 @@ func New(cfg *types.Consensus, sub []byte) queue.Module {
panic
(
err
)
}
plog
.
Debug
(
"New Para consensus client"
)
//msgRecvOp := grpc.WithMaxMsgSize(grpcRecSize)
//conn, err := grpc.Dial(grpcSite, grpc.WithInsecure(), msgRecvOp)
//if err != nil {
// panic(err)
//}
//_ = types.NewChain33Client(conn)
//grpcClient := types.NewChain33Client(conn)
grpcCli
,
err
:=
grpcclient
.
NewMainChainClient
(
grpcSite
)
if
err
!=
nil
{
panic
(
err
)
...
...
plugin/consensus/para/paracommitmsg.go
View file @
f99e3d2e
...
...
@@ -475,8 +475,6 @@ out:
isSync
=
true
}
//ret, err := client.paraClient.paraClient.GetTitle(context.Background(),
// &types.ReqString{Data: types.GetTitle()})
var
req
types
.
ChainExecutor
req
.
Driver
=
"paracross"
req
.
FuncName
=
"GetTitle"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment