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

[venus] 在主网模拟升级 #5403

Closed
1 of 11 tasks
Tracked by #5406 ...
simlecode opened this issue Oct 21, 2022 · 1 comment
Closed
1 of 11 tasks
Tracked by #5406 ...

[venus] 在主网模拟升级 #5403

simlecode opened this issue Oct 21, 2022 · 1 comment
Assignees
Labels
C-enhancement Category: feature enhancement P2 Medium - we should get to this soon

Comments

@simlecode
Copy link
Collaborator

simlecode commented Oct 21, 2022

链服务模块 / Chain Service Components

  • venus
  • venus-auth
  • venus-gateway
  • venus-messager
  • venus-miner
  • 文档 / docs

订单服务模块 / Deal Service Components

  • venus-market
  • 文档 / docs

算力服务模块 / Storage Power Service Components

  • venus-sector-manager
  • venus-worker
  • 文档 / docs

描述 / Description

venus 和 lotus 在主网模拟升级,比较actor迁移后的state和升级后算出的root是否一样

模拟结果

模拟高度

2345100

venus

actor 迁移:
2022-11-17T17:49:30.824+0800 WARN fork fork/fork.go:536 COMPLETED migration {"height": "2345100", "from": "bafy2bzacecjk4xcvp46lvb6psl6u6xce2crft4buitgsp3hxjfidsok3tfrrg", "to": "bafy2bzacecxwxncnk6qvmybql7td4a43aitsjzw77i53elv22joksprvns5ui", "duration": 278.55202688}

升级后计算的root:
2022-11-17T17:40:04.582+0800 INFO chainsync.dispatcher dispatcher/dispatcher.go:221 failed sync of { bafy2bzacedengil7x7gyksffywqsp7puifh3awvuqmfx5xnhru3qpupjvtvza bafy2bzaceajkyad6slhubytslbh35tomcp75o6ln262wjqdwfhudjb6ryoku6
bafy2bzaced4oddoh3b5efveoslpkywnu6jz247cb5uo3scgidvko5wvcfq57a } at 2345404 process message failed failed to sync tipset { bafy2bzacebaleavnhv2jmrlntfzcaskaq6lw3zysgkhneb7sjhaxbnt3726py bafy2bzacec4naocqbqs7xb3ifj223hgko7ez4wpnnczkxcwqq
eoq2hvdphawa bafy2bzacedkbnnicwy5rncbrsnjbtchmhghj5ettqg22f2dp4k5eqqpegfm2q }, number 6 of 8 in chain: validate mining failed 3 errors occurred:
* tipset({ bafy2bzacec6li4m54bczd56erpvuirsbaqerfdqcbpf3pfmaimvdluke64ouw bafy2bzacea5yllggenlffd6h2d5xerpny6eqpzi6gstddb7wqv2omy3sd34lk bafy2bzacebrtdfi3khrtxszle6b5rzuh33ir67pvoozunop6bjh3zjzkxps24 bafy2bzacebvsjffw7vgb2fqswpk3t
uomov4i6vgqujeviorkbvxp4aqviqdp6 }) state root does not match, computed bafy2bzaceclosipn6hjey35n67pe4e5ucc5bbni27y3r3d5vty36ienkhrzu4, expected: bafy2bzacebo5ogrbypcxwfbw2wf23bqrn62ltinw2lp4sh6q22mkgp3jpapne

lotus

actor 迁移:
COMPLETED migration {"height": "2345100", "from": "bafy2bzacecjk4xcvp46lvb6psl6u6xce2crft4buitgsp3hxjfidsok3tfrrg", "to": "bafy2bzacecxwxncnk6qvmybql7td4a43aitsjzw77i53elv22joksprvns5ui", "duration": 7977.127771274}

升级后计算的root:
2022-11-18T09:13:05.581+0800 ERROR chain chain/sync_manager.go:254 error during sync in [bafy2bzacebrzrwv6zzyxareqtwie6znhzpvzp6f2nwkn3k3i4wyftg7wwuyiw]: collectChain failed: chain linked to block marked previously as bad ([bafy2bzacebrzrwv6zzyxareqtwie6znhzpvzp6f2nwkn3k3i4wyftg7wwuyiw], bafy2bzacecjk66mtd4zqcmkyxrptdfm2mdgqwvdywqwhzu3giqk7vil7jrs4w) (reason: linked to bafy2bzacecybjlhh3vwj5evs7ozusdl3rmgbueo5ur7yyzgw47ri74mqm7skm caused by: [bafy2bzacebaleavnhv2jmrlntfzcaskaq6lw3zysgkhneb7sjhaxbnt3726py] 1 error occurred:
* parent state root did not match computed state (bafy2bzacebo5ogrbypcxwfbw2wf23bqrn62ltinw2lp4sh6q22mkgp3jpapne != bafy2bzaceclosipn6hjey35n67pe4e5ucc5bbni27y3r3d5vty36ienkhrzu4):
github.com/filecoin-project/lotus/chain/consensus/filcns.(*FilecoinEC).ValidateBlock.func4
/root/lotus/chain/consensus/filcns/filecoin.go:185

@simlecode simlecode added P3 Low - not important right now C-enhancement Category: feature enhancement labels Oct 21, 2022
@simlecode simlecode mentioned this issue Oct 21, 2022
38 tasks
@Fatman13 Fatman13 mentioned this issue Nov 4, 2022
45 tasks
@simlecode simlecode self-assigned this Nov 17, 2022
@simlecode simlecode moved this to In Progress in Venus Project Nov 17, 2022
Repository owner moved this from In Progress to Done in Venus Project Nov 18, 2022
@simlecode simlecode added P2 Medium - we should get to this soon and removed P3 Low - not important right now labels Mar 1, 2023
@simlecode simlecode reopened this Mar 1, 2023
@github-project-automation github-project-automation bot moved this from Done to In Progress in Venus Project Mar 1, 2023
@simlecode
Copy link
Collaborator Author

NV 18 模拟升级

模拟高度:2642149

版本:

  • venus:v1.10.0
  • lotus: v1.20.0

模拟结果

venus

2023-03-02T13:45:01.952+0800 INFO chainsync.dispatcher dispatcher/dispatcher.go:221 failed sync of { bafy2bzaceanbxi7yed4berftponmznqqcz2venzyotg5tt4znep5zmgvams3c bafy2bzaced2ydqch5cqktd3whlffjw75erzkelvlvsarzbz27c53gbjigkbqi bafy2bzacebsfx5uotwn7dzcag7wum3xh47sjrdh56ppwivvz3g7vg4mxopssa bafy2bzacebkeaqimemhy7lbosldvcveqrsj22r47ekbgcaxb25qvn5pi4hmjo bafy2bzacedtjqbxnuwy6n4tuecfcftnd2dux23kfjr5d5k2orryslzdtdnqpk bafy2bzacebiosep3tpsjrchyjy6oqjduivs6c2ppmmdslajsyikyp26zk4kw6 bafy2bzacedsph4nsind2ulllqf3pswwwisw3lcfexfmhmzqxxbm4c2foe7aoy bafy2bzaced7mpfr24yvg74ngmi47ycdh5y3no6jxztitsong2nyox3cjmsq6c } at 2647650 process message failed failed to sync tipset { bafy2bzaceaps5oes64lknuufpiztuby3pwx3a5lnwcnpy74v5ch4ilgwunoie bafy2bzacec327cws2yj4qu73yh4z2ksg7tsal3rjinahkhii2ag7i4slthsoi bafy2bzaceb35v5stpccgvtieyoqjawaqa5emycdd3f6valeo5bbbdw77ol5go bafy2bzacecxgrpa3qbtsguwt3tcm67jjh3v3jb2vuega5d2acrjru5ua5fmmc bafy2bzacednms7ayhkjf7lx37bjmrypp7s3aanfxws44to55yl4hpztlezwdg bafy2bzacebp2m2m64tdjcsovapgbbem5zsoolzzpbbe44vf2zbzzac4ebmuse bafy2bzaced5rdeliyslaqo4ba35t5if2tbt6laxxq3kls5wkd7wr6xxdavvwo bafy2bzaceccfubrlmkvxxcmr5j4jta7p63mjrbfgt7cx3buht2a6b5fshdkig bafy2bzacea3kgcwuc2hs2mg6s53nflk4sn5ep4dgeh7qybbkvwqj7ujnu5dp6 bafy2bzaced4b53txdxjmkfxnqxuapwfilhtnprysgd6kmuomhiyiayjilxklm }, number 2 of 8 in chain: validate mining failed 1 error occurred:
* block had invalid messages: block had invalid secpk message at index 0: 'GasLimit' field cannot be less than the cost of storing a message on chain 606710 < 750463

lotus

2023-03-02T14:26:00.441+0800 ERROR chain chain/sync_manager.go:254 error during sync in [bafy2bzacecl5asslvbx2so67hngogqx6ezhdnunovnlfgdouexkzaneruqado]: collectChain failed: chain linked to block marked previously as bad ([bafy2bzacecl5asslvbx2so67hngogqx6ezhdnunovnlfgdouexkzaneruqado], bafy2bzaceaul6lycjk7njcw4nysth4f3xf2bgdyxqz4yyp2xhsatyaotb3bnc) (reason: linked to bafy2bzaceau7pj7hzeeoibfxqprn2cnw4jem3ib252pvd4jhrgbcqms4qmmcs caused by: [bafy2bzacecxgrpa3qbtsguwt3tcm67jjh3v3jb2vuega5d2acrjru5ua5fmmc] 1 error occurred:
* block had invalid messages:
github.com/filecoin-project/lotus/chain/consensus/filcns.(*FilecoinEC).ValidateBlock.func1
/root/hj/lotus/chain/consensus/filcns/filecoin.go:136

  • block had invalid secpk message at index 0:
    github.com/filecoin-project/lotus/chain/consensus/filcns.(*FilecoinEC).checkBlockMessages
    /root/hj/lotus/chain/consensus/filcns/filecoin.go:585
  • msg bafy2bzaceadsbguy4fhyo3xcnmbmklpfrm67ppnhvdhtsprqaa3ell6dvuv4m invalid for block inclusion:
    github.com/filecoin-project/lotus/chain/consensus/filcns.(*FilecoinEC).checkBlockMessages.func1
    /root/hj/lotus/chain/consensus/filcns/filecoin.go:514
  • 'GasLimit' field cannot be less than the cost of storing a message on chain 606710 < 750463:
    github.com/filecoin-project/lotus/chain/types.(*Message).ValidForBlockInclusion
    /root/hj/lotus/chain/types/message.go:212

@github-project-automation github-project-automation bot moved this from In Progress to Done in Venus Project Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: feature enhancement P2 Medium - we should get to this soon
Projects
Archived in project
Development

No branches or pull requests

1 participant