Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

user.p.bscdex. 平行链同步时, 共识停在7316高度 #1128

Open
linj-disanbo opened this issue Jan 6, 2022 · 1 comment
Open

user.p.bscdex. 平行链同步时, 共识停在7316高度 #1128

linj-disanbo opened this issue Jan 6, 2022 · 1 comment

Comments

@linj-disanbo
Copy link
Collaborator

linj-disanbo commented Jan 6, 2022

问题现象

使用最新的 https://github.com/Trouble-CXB/plugin/tree/feature_exchange (更新了33cn/plugin 的代码后 )
做平行链 user.p.bscdex. 同步测试. 共识会停在 7316 高度. 对比日志发现 (未更新 33cn/plugin 正常同步)

  1. 7317 高度的执行情况没有 执行完成后的 共识相关的日志
  2. 7318 高度在指定 Preexec 时, 只执行了一种 (正常3种)
执行日志:  7316
t=2022-01-06T15:46:29+0800 lvl=dbug msg=SendAddBlockEvent module=blockchain Height=7316
t=2022-01-06T15:46:29+0800 lvl=dbug msg=isRecordBlockSequence module=blockchain lastSequence=7316 height=7316
t=2022-01-06T15:46:29+0800 lvl=dbug msg="ProcAddParaChainBlockMsg result:" module=blockchain height=7316 sequence=0 ismain=true isorphan=false hash=0xca130ed6c2730e91885ec5048f1115e9e674520acf6c1bb822bb70104b080bbb err=nil
t=2022-01-06T15:46:29+0800 lvl=dbug msg="Para sync - create new Block" module=para newblock.ParentHash=0x17c3005d897905d06f1d104073a534f2d03f8b68551c2b0637ddcf9ade7c19da newblock.Height=7316 newblock.TxHash=0xabc8deb0afb234061bd38a45034ea534e254cc8428d1f8dfbf479e4ba8df927e newblock.BlockTime=1640234317
t=2022-01-06T15:46:29+0800 lvl=info msg="Para sync -    add block" module=para lastBlock.Height=7316 lastLocalHeight=7702
t=2022-01-06T15:46:29+0800 lvl=dbug msg="paracross.Commit check input" module=execs.paracross height=7316 mainHeight=17905880 mainHash=0xdda05414bb3e082e6262f9f75ea0f2fd8bb533690c1fdebef3b32f26a22ff499 blockHash=0xca130ed6c2730e91885ec5048f1115e9e674520acf6c1bb822bb70104b080bbb
t=2022-01-06T15:46:29+0800 lvl=dbug msg=ProcGetBlockDetailsMsg module=blockchain Start=7316 End=7316 Isdetail=false
t=2022-01-06T15:46:29+0800 lvl=dbug msg="paracross.Commit first commit" module=execs.paracross key=mavl-paracross-titleHeight-user.p.bscdex.-7316
t=2022-01-06T15:46:29+0800 lvl=dbug msg="paracross.Commit check input" module=execs.paracross height=7316 mainHeight=17905880 mainHash=0xdda05414bb3e082e6262f9f75ea0f2fd8bb533690c1fdebef3b32f26a22ff499 blockHash=0xca130ed6c2730e91885ec5048f1115e9e674520acf6c1bb822bb70104b080bbb
t=2022-01-06T15:46:29+0800 lvl=dbug msg=ProcGetBlockDetailsMsg module=blockchain Start=7316 End=7316 Isdetail=false
t=2022-01-06T15:46:29+0800 lvl=dbug msg="paracross.Commit check input" module=execs.paracross height=7316 mainHeight=17905880 mainHash=0xdda05414bb3e082e6262f9f75ea0f2fd8bb533690c1fdebef3b32f26a22ff499 blockHash=0xca130ed6c2730e91885ec5048f1115e9e674520acf6c1bb822bb70104b080bbb
t=2022-01-06T15:46:29+0800 lvl=dbug msg=ProcGetBlockDetailsMsg module=blockchain Start=7316 End=7316 Isdetail=false
t=2022-01-06T15:46:29+0800 lvl=dbug msg="paracross.Commit commit" module=execs.paracross stat.title=user.p.bscdex. stat.height=7316 notes=4
t=2022-01-06T15:46:29+0800 lvl=dbug msg="paracross.Commit commit done" module=execs.paracross height=7316 statusBlockHash=0xca130ed6c2730e91885ec5048f1115e9e674520acf6c1bb822bb70104b080bbb
t=2022-01-06T15:46:29+0800 lvl=dbug msg="paracross.Commit check input" module=execs.paracross height=7316 mainHeight=17905880 mainHash=0xdda05414bb3e082e6262f9f75ea0f2fd8bb533690c1fdebef3b32f26a22ff499 blockHash=0xca130ed6c2730e91885ec5048f1115e9e674520acf6c1bb822bb70104b080bbb
t=2022-01-06T15:46:29+0800 lvl=dbug msg=ProcGetBlockDetailsMsg module=blockchain Start=7316 End=7316 Isdetail=false
t=2022-01-06T15:46:29+0800 lvl=dbug msg="paracross.Commit record" module=execs.paracross node=[1L9MA4Z2c3JzFSw3YESG9riXRtwLPdbmjC] titile=user.p.bscdex. height=7316
t=2022-01-06T15:46:29+0800 lvl=dbug msg=ProcGetBlockDetailsMsg module=blockchain Start=7316 End=7316 Isdetail=false

执行日志: 7317
t=2022-01-06T15:46:29+0800 lvl=dbug msg=SendAddBlockEvent module=blockchain Height=7317
t=2022-01-06T15:46:29+0800 lvl=dbug msg=isRecordBlockSequence module=blockchain lastSequence=7317 height=7317
t=2022-01-06T15:46:29+0800 lvl=dbug msg="ProcAddParaChainBlockMsg result:" module=blockchain height=7317 sequence=0 ismain=true isorphan=false hash=0xaee63d38216cafb721965055a7d51e8bf626fb48077e33558b0b8aec8138add8 err=nil
t=2022-01-06T15:46:29+0800 lvl=dbug msg="Para sync - create new Block" module=para newblock.ParentHash=0xca130ed6c2730e91885ec5048f1115e9e674520acf6c1bb822bb70104b080bbb newblock.Height=7317 newblock.TxHash=0x5c75bc11eb1fdcfe37a1b3983a69e9bc4a2412e90fb3ca0362edd4c92781fea5 newblock.BlockTime=1640234320
t=2022-01-06T15:46:29+0800 lvl=info msg="Para sync -    add block" module=para lastBlock.Height=7317 lastLocalHeight=7702


PreExec: 
t=2022-01-06T15:46:29+0800 lvl=dbug msg=PreExecBlock module=util height=7316 CheckTxDup=135.786µs
t=2022-01-06T15:46:29+0800 lvl=info msg=PreExecBlock module=util height=7316 ExecTx=1.912634ms
t=2022-01-06T15:46:29+0800 lvl=info msg=PreExecBlock module=util height=7316 WaitDupCheck=230ns
t=2022-01-06T15:46:29+0800 lvl=dbug msg=PreExecBlock module=util height=7317 CheckTxDup=105.595µs
t=2022-01-06T15:46:29+0800 lvl=info msg=PreExecBlock module=util height=7317 ExecTx=1.723691ms
t=2022-01-06T15:46:29+0800 lvl=info msg=PreExecBlock module=util height=7317 WaitDupCheck=277ns
t=2022-01-06T15:46:29+0800 lvl=dbug msg=PreExecBlock module=util height=7318 CheckTxDup=73.758µs

没有共识状态不一致的报错

@linj-disanbo
Copy link
Collaborator Author

github.com/33cn/chain33 v1.65.6-0.20211130044919-77e92a34438a 这个分支是正常的.
github.com/33cn/chain33 v1.66.2-0.20211229030529-aa88f85c957a plugin 升级了 chain33 后, 这个版本不正常

不同步原因是由于 遍历数据时 localdb.List 一直返回第一页, 造成死循环. 33cn/chain33#1203

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant