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
93bd040a
Commit
93bd040a
authored
Oct 12, 2019
by
liuyuhang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'remotes/upstream/master' into mod_global_config
# Conflicts: # plugin/consensus/para/parasync.go
parents
aacdd6ce
91390fe4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
5 deletions
+9
-5
chain33.para.toml
chain33.para.toml
+2
-2
parasync.go
plugin/consensus/para/parasync.go
+4
-3
game_test.go
plugin/dapp/game/executor/game_test.go
+0
-0
filtertxs.go
plugin/dapp/paracross/executor/filtertxs.go
+3
-0
No files found.
chain33.para.toml
View file @
93bd040a
...
...
@@ -90,8 +90,8 @@ coinDevFund=12
[consensus.sub.para]
#主链节点的grpc服务器ip,当前可以支持多ip负载均衡,如“1
01.37.227.226:8802,39.97.20.242:8802,47.107.15.126
:8802,jiedian2.bityuan.com,cloud.bityuan.com”
#ParaRemoteGrpcClient="1
83.129.226.74:8802,183.129.226.75:8802,101.37.227.226:8802,39.97.20.242:8802,47.107.15.126:8802,jiedian2.bityuan.com,cloud.bityuan.com
"
#主链节点的grpc服务器ip,当前可以支持多ip负载均衡,如“1
18.31.177.1:8802,39.97.2.127:8802,120.77.111.44
:8802,jiedian2.bityuan.com,cloud.bityuan.com”
#ParaRemoteGrpcClient="1
18.31.177.1:8802,39.97.2.127:8802,120.77.111.44:8802,jiedian2.bityuan.com,cloud.bityuan.com,183.129.226.74:8802,183.129.226.75:8802
"
ParaRemoteGrpcClient
=
"localhost:8802"
#主链指定高度的区块开始同步
startHeight
=
345850
...
...
plugin/consensus/para/parasync.go
View file @
93bd040a
...
...
@@ -362,12 +362,13 @@ func (client *blockSyncClient) addMinerTx(preStateHash []byte, block *types.Bloc
status
:=
&
pt
.
ParacrossNodeStatus
{
Title
:
cfg
.
GetTitle
(),
Height
:
block
.
Height
,
PreBlockHash
:
block
.
ParentHash
,
PreStateHash
:
preStateHash
,
MainBlockHash
:
localBlock
.
MainHash
,
MainBlockHeight
:
localBlock
.
MainHeight
,
}
if
!
pt
.
IsParaForkHeight
(
cfg
,
status
.
MainBlockHeight
,
pt
.
ForkLoopCheckCommitTxDone
)
{
status
.
PreBlockHash
=
block
.
ParentHash
status
.
PreStateHash
=
preStateHash
}
tx
,
err
:=
pt
.
CreateRawMinerTx
(
cfg
,
&
pt
.
ParacrossMinerAction
{
Status
:
status
,
IsSelfConsensus
:
client
.
paraClient
.
isParaSelfConsensusForked
(
status
.
MainBlockHeight
),
...
...
plugin/dapp/game/executor/game_test.go
0 → 100644
View file @
93bd040a
This diff is collapsed.
Click to expand it.
plugin/dapp/paracross/executor/filtertxs.go
View file @
93bd040a
...
...
@@ -6,6 +6,7 @@ package executor
import
(
"bytes"
"encoding/hex"
"github.com/33cn/chain33/common"
"github.com/33cn/chain33/types"
...
...
@@ -65,6 +66,7 @@ func filterParaTxGroup(cfg *types.Chain33Config, tx *types.Transaction, allTxs [
}
if
!
checkReceiptExecOk
(
allTxs
[
i
]
.
Receipt
)
{
clog
.
Error
(
"filterParaTxGroup rmv tx group"
,
"txhash"
,
hex
.
EncodeToString
(
allTxs
[
i
]
.
Tx
.
Hash
()))
return
nil
,
endIdx
}
}
...
...
@@ -90,6 +92,7 @@ func FilterTxsForPara(cfg *types.Chain33Config, main *types.ParaTxDetail) []*typ
}
//单独的paracross tx 如果主链执行失败也要排除, 6.2fork原因 没有排除 非user.p.xx.paracross的平行链交易
if
main
.
Header
.
Height
>=
forkHeight
&&
bytes
.
HasSuffix
(
tx
.
Execer
,
[]
byte
(
pt
.
ParaX
))
&&
!
checkReceiptExecOk
(
main
.
TxDetails
[
i
]
.
Receipt
)
{
clog
.
Error
(
"FilterTxsForPara rmv tx"
,
"txhash"
,
hex
.
EncodeToString
(
tx
.
Hash
()))
continue
}
...
...
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