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
ece1e32f
Commit
ece1e32f
authored
Oct 11, 2021
by
mdj33
Committed by
33cn
Oct 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add dapp fork
parent
04d03dd3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
parasync.go
plugin/consensus/para/parasync.go
+1
-1
No files found.
plugin/consensus/para/parasync.go
View file @
ece1e32f
...
@@ -438,7 +438,7 @@ func (client *blockSyncClient) addBlock(lastBlock *types.Block, localBlock *pt.P
...
@@ -438,7 +438,7 @@ func (client *blockSyncClient) addBlock(lastBlock *types.Block, localBlock *pt.P
newBlock
.
Txs
=
types
.
TransactionSort
(
newBlock
.
Txs
)
newBlock
.
Txs
=
types
.
TransactionSort
(
newBlock
.
Txs
)
}
}
//在之前版本中CalcMerkleRoot的height是未初始化的MainHeight,等于0,在这个平行链的分叉ForkParaRootHash高度后统一采用新高度
//在之前版本中CalcMerkleRoot的height是未初始化的MainHeight,等于0,在这个平行链的分叉ForkParaRootHash高度后统一采用新高度
if
cfg
.
Is
Fork
(
newBlock
.
Height
,
pt
.
ForkParaRootHash
)
{
if
cfg
.
Is
DappFork
(
newBlock
.
Height
,
pt
.
ParaX
,
pt
.
ForkParaRootHash
)
{
newBlock
.
TxHash
=
merkle
.
CalcMerkleRoot
(
cfg
,
newBlock
.
GetMainHeight
(),
newBlock
.
Txs
)
newBlock
.
TxHash
=
merkle
.
CalcMerkleRoot
(
cfg
,
newBlock
.
GetMainHeight
(),
newBlock
.
Txs
)
}
else
{
}
else
{
newBlock
.
TxHash
=
merkle
.
CalcMerkleRoot
(
cfg
,
0
,
newBlock
.
Txs
)
newBlock
.
TxHash
=
merkle
.
CalcMerkleRoot
(
cfg
,
0
,
newBlock
.
Txs
)
...
...
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