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
d6d4b15b
Commit
d6d4b15b
authored
Jun 04, 2019
by
mdj33
Committed by
vipwzw
Jun 05, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove empty interval
parent
7910a9d5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
chain33.toml
chain33.toml
+2
-1
superaccount.go
plugin/dapp/paracross/executor/superaccount.go
+4
-5
No files found.
chain33.toml
View file @
d6d4b15b
...
@@ -216,6 +216,7 @@ superManager=[
...
@@ -216,6 +216,7 @@ superManager=[
]
]
[exec.sub.paracross]
[exec.sub.paracross]
nodeGroupFrozenCoins
=
0
nodeGroupFrozenCoins
=
0
paraConsensusStopBlocks
=
100
#平行链共识停止后主链等待的高度
paraConsensusStopBlocks
=
30000
plugin/dapp/paracross/executor/superaccount.go
View file @
d6d4b15b
...
@@ -383,7 +383,7 @@ func (a *action) superManagerVoteProc(title string) error {
...
@@ -383,7 +383,7 @@ func (a *action) superManagerVoteProc(title string) error {
consensHeight
:=
data
.
(
*
pt
.
ParacrossStatus
)
.
Height
consensHeight
:=
data
.
(
*
pt
.
ParacrossStatus
)
.
Height
//如果group建立后一直没有共识,则从approve时候开始算
//如果group建立后一直没有共识,则从approve时候开始算
if
consensHeight
==
-
1
{
if
consensHeight
==
-
1
{
consensMainHeight
=
status
.
Main
Height
consensMainHeight
=
status
.
Height
}
else
{
}
else
{
stat
,
err
:=
a
.
exec
.
paracrossGetStateTitleHeight
(
title
,
consensHeight
)
stat
,
err
:=
a
.
exec
.
paracrossGetStateTitleHeight
(
title
,
consensHeight
)
if
err
!=
nil
{
if
err
!=
nil
{
...
@@ -393,10 +393,9 @@ func (a *action) superManagerVoteProc(title string) error {
...
@@ -393,10 +393,9 @@ func (a *action) superManagerVoteProc(title string) error {
consensMainHeight
=
stat
.
(
*
pt
.
ParacrossHeightStatus
)
.
MainHeight
consensMainHeight
=
stat
.
(
*
pt
.
ParacrossHeightStatus
)
.
MainHeight
}
}
//return err to stop tx pass to para chain
//return err to stop tx pass to para chain
if
a
.
exec
.
GetMainHeight
()
<=
consensMainHeight
+
confStopBlocks
*
int64
(
status
.
EmptyBlockInterval
)
{
if
a
.
height
<=
consensMainHeight
+
confStopBlocks
{
clog
.
Error
(
"superManagerVoteProc, super manager height not reach"
,
"currHeight"
,
a
.
exec
.
GetMainHeight
(),
return
errors
.
Wrapf
(
pt
.
ErrParaConsensStopBlocksNotReach
,
"consensHeight"
,
consensHeight
,
"mainHeight"
,
consensMainHeight
,
"confHeight"
,
confStopBlocks
,
"interval"
,
status
.
EmptyBlockInterval
)
"supermanager height not reach,current:%d less consens:%d plus confStopBlocks:%s"
,
a
.
height
,
consensMainHeight
,
confStopBlocks
)
return
pt
.
ErrParaConsensStopBlocksNotReach
}
}
return
nil
return
nil
...
...
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