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
350b2a9a
Commit
350b2a9a
authored
Jun 05, 2019
by
vipwzw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto ci
parent
7d840b68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
rpc.go
plugin/dapp/paracross/rpc/rpc.go
+11
-11
No files found.
plugin/dapp/paracross/rpc/rpc.go
View file @
350b2a9a
...
...
@@ -49,7 +49,7 @@ func (c *Jrpc) GetHeight(req *types.ReqString, result *interface{}) error {
}
data
,
err
:=
c
.
cli
.
GetTitle
(
context
.
Background
(),
req
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
}
*
result
=
*
data
...
...
@@ -71,7 +71,7 @@ func (c *channelClient) ListTitles(ctx context.Context, req *types.ReqNil) (*pt.
// ListTitles get paracross consensus titles list
func
(
c
*
Jrpc
)
ListTitles
(
req
*
types
.
ReqNil
,
result
*
interface
{})
error
{
data
,
err
:=
c
.
cli
.
ListTitles
(
context
.
Background
(),
req
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
}
*
result
=
data
...
...
@@ -95,7 +95,7 @@ func (c *Jrpc) GetTitleHeight(req *pt.ReqParacrossTitleHeight, result *interface
return
types
.
ErrInvalidParam
}
data
,
err
:=
c
.
cli
.
GetTitleHeight
(
context
.
Background
(),
req
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
}
*
result
=
data
...
...
@@ -130,7 +130,7 @@ func (c *Jrpc) GetAssetTxResult(req *types.ReqHash, result *interface{}) error {
return
types
.
ErrInvalidParam
}
data
,
err
:=
c
.
cli
.
GetAssetTxResult
(
context
.
Background
(),
req
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
}
*
result
=
data
...
...
@@ -187,7 +187,7 @@ func (c *Jrpc) GetBlock2MainInfo(req *types.ReqBlocks, result *interface{}) erro
}
ret
,
err
:=
c
.
cli
.
GetBlock2MainInfo
(
context
.
Background
(),
req
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
}
*
result
=
*
ret
...
...
@@ -227,7 +227,7 @@ func (c *Jrpc) GetNodeAddrStatus(req *pt.ReqParacrossNodeInfo, result *interface
}
data
,
err
:=
c
.
cli
.
GetNodeAddrStatus
(
context
.
Background
(),
req
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
}
*
result
=
data
...
...
@@ -241,7 +241,7 @@ func (c *Jrpc) GetNodeIDStatus(req *pt.ReqParacrossNodeInfo, result *interface{}
}
data
,
err
:=
c
.
cli
.
GetNodeIDStatus
(
context
.
Background
(),
req
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
}
*
result
=
data
...
...
@@ -264,7 +264,7 @@ func (c *channelClient) ListNodeStatus(ctx context.Context, req *pt.ReqParacross
//ListNodeStatus list super node by status
func
(
c
*
Jrpc
)
ListNodeStatus
(
req
*
pt
.
ReqParacrossNodeInfo
,
result
*
interface
{})
error
{
data
,
err
:=
c
.
cli
.
ListNodeStatus
(
context
.
Background
(),
req
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
}
*
result
=
data
...
...
@@ -287,7 +287,7 @@ func (c *channelClient) GetNodeGroupAddrs(ctx context.Context, req *pt.ReqParacr
// GetNodeGroupAddrs get super node group addrs
func
(
c
*
Jrpc
)
GetNodeGroupAddrs
(
req
*
pt
.
ReqParacrossNodeInfo
,
result
*
interface
{})
error
{
data
,
err
:=
c
.
cli
.
GetNodeGroupAddrs
(
context
.
Background
(),
req
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
}
*
result
=
data
...
...
@@ -310,7 +310,7 @@ func (c *channelClient) GetNodeGroupStatus(ctx context.Context, req *pt.ReqParac
// GetNodeGroupStatus get super node group status
func
(
c
*
Jrpc
)
GetNodeGroupStatus
(
req
*
pt
.
ReqParacrossNodeInfo
,
result
*
interface
{})
error
{
data
,
err
:=
c
.
cli
.
GetNodeGroupStatus
(
context
.
Background
(),
req
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
}
*
result
=
data
...
...
@@ -333,7 +333,7 @@ func (c *channelClient) ListNodeGroupStatus(ctx context.Context, req *pt.ReqPara
//ListNodeGroupStatus list super node group by status
func
(
c
*
Jrpc
)
ListNodeGroupStatus
(
req
*
pt
.
ReqParacrossNodeInfo
,
result
*
interface
{})
error
{
data
,
err
:=
c
.
cli
.
ListNodeGroupStatus
(
context
.
Background
(),
req
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
}
*
result
=
data
...
...
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