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
d9c9b3b2
Commit
d9c9b3b2
authored
Jun 14, 2019
by
linj
Committed by
vipwzw
Jun 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
主链更新seq 实现, 在平行链上去主链seq 接口名变化
parent
2b61b2b1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
para.go
plugin/consensus/para/para.go
+2
-2
No files found.
plugin/consensus/para/para.go
View file @
d9c9b3b2
...
...
@@ -276,7 +276,7 @@ func (client *client) ProcEvent(msg *queue.Message) bool {
//get the last sequence in parachain
func
(
client
*
client
)
GetLastSeq
()
(
int64
,
error
)
{
blockedSeq
,
err
:=
client
.
GetAPI
()
.
GetLastBlockSequence
()
blockedSeq
,
err
:=
client
.
GetAPI
()
.
GetLastBlock
Main
Sequence
()
if
err
!=
nil
{
return
-
2
,
err
}
...
...
@@ -285,7 +285,7 @@ func (client *client) GetLastSeq() (int64, error) {
func
(
client
*
client
)
GetBlockedSeq
(
hash
[]
byte
)
(
int64
,
error
)
{
//from blockchain db
blockedSeq
,
err
:=
client
.
GetAPI
()
.
GetSequenceByHash
(
&
types
.
ReqHash
{
Hash
:
hash
})
blockedSeq
,
err
:=
client
.
GetAPI
()
.
Get
Main
SequenceByHash
(
&
types
.
ReqHash
{
Hash
:
hash
})
if
err
!=
nil
{
return
-
2
,
err
}
...
...
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