Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

--sync fast from genesis #1684

Closed
crystalin opened this issue Sep 27, 2022 · 4 comments
Closed

--sync fast from genesis #1684

crystalin opened this issue Sep 27, 2022 · 4 comments

Comments

@crystalin
Copy link

crystalin commented Sep 27, 2022

From substrate 0.9.26:

Using --sync fast (or fast-unsafe) from genesis creates this error:

Sep 27 03:33:30 mkaki alphanet[27237]: 2022-09-27 03:33:30 [🌗] 💔 Verification failed for block 0xeb46e3ddc8037d8a800466f3fb210027c5191d04c7d69abcfc4a0676fba684ca received from peer: 12D3KooWNtwcFhwfsTb14BiUX4jTHvDVY424nyDySYWMNZjmFA2R, "Application(UnknownBlock(\"State already
discarded for BlockId::Hash(0xf95816c9150a7bae4bb59e7fdb9673c13cabd4d1eceb76fbd5e735e4b606f383)\"))"
Sep 27 03:33:30 mkaki alphanet[27237]: 2022-09-27 03:33:30 [🌗] 💔 Error importing block 0x15514b6e7b8171539baa201a10d453629aeeba6e65dbfb15a3f0afd41ecaec96: block has an unknown parent                                                                                                Sep 27 03:33:30 mkaki alphanet[27237]: 2022-09-27 03:33:30 [🌗] 💔 Error importing block 0x115ae550e1f639b7e1709424bc66802867735127db13b11fcba9f58872a07a7a: block has an unknown parent                                                                                                Sep 27 03:33:30 mkaki alphanet[27237]: 2022-09-27 03:33:30 [🌗] 💔 Verification failed for block 0xeb46e3ddc8037d8a800466f3fb210027c5191d04c7d69abcfc4a0676fba684ca,received from peer: 12D3KooWNtwcFhwfsTb14BiUX4jTHvDVY424nyDySYWMNZjmFA2R, "Application(UnknownBlock(\"State already
discarded for BlockId::Hash(0xf95816c9150a7bae4bb59e7fdb9673c13cabd4d1eceb76fbd5e735e4b606f383)\"))"
Sep 27 03:33:30 mkaki alphanet[27237]: 2022-09-27 03:33:30 [Relaychain] 🔍 Discovered new external address for our node: /ip4/45.61.161.227/tcp/30334/ws/p2p/12D3KooWFjH5syjkR1j7Hw3RoqyRFqocSbDjSBAN4T83pS8Q6W79                                                                       Sep 27 03:33:30 mkaki alphanet[27237]: 2022-09-27 03:33:30 [🌗] 🔍 Discovered new external address for our node: /ip4/45.61.161.227/tcp/30333/p2p/12D3KooWJqhGb6TW2hG4A7SdLihwNGdn1CC6n4f9Rh8uSmDr9C7o                                                                                  Sep 27 03:33:30 mkaki alphanet[27237]: 2022-09-27 03:33:30 [Relaychain] Received msg before first active leaves update. This is not expected - message will be dropped. msg=ActiveDisputes(Sender { complete: false })                                                                  Sep 27 03:33:30 mkaki alphanet[27237]: 2022-09-27 03:33:30 [Relaychain] error=Sender(AskActiveDisputesCanceled) ctx="on FromOrchestra"
Sep 27 03:33:30 mkaki alphanet[27237]: 2022-09-27 03:33:30 [🌗] 💔 Verification failed for block 0xeb46e3ddc8037d8a800466f3fb210027c5191d04c7d69abcfc4a0676fba684ca received from peer: 12D3KooWLkGLsJMmQDCXDitJn6y6ZTPXqmcQ7bkMDKpsx6YWiZDD, "Application(UnknownBlock(\"State already
discar

And the best stays at #1

To test:

wget https://github.com/PureStake/moonbeam/releases/download/v0.26.1/moonbeam
chmod u+x moonbeam
./moonbeam --tmp --sync=fast

However if I use --sync full for some blocks and them switch to --sync fast it works
(the node automatically switch to full if you initially started with full)

@bkchr
Copy link
Member

bkchr commented Sep 27, 2022

You will probably want to have this: #1619

@crystalin
Copy link
Author

I tried with it and still get the same issue (I tried with 0.9.40)

@bkchr
Copy link
Member

bkchr commented Apr 15, 2023

@crystalin you will need to adapt nimbus to work with header only sync/warp sync.

Something similar to paritytech/substrate#13221

@bkchr
Copy link
Member

bkchr commented May 13, 2023

@crystalin now that Nimbus supports warp sync fast sync should also work.

@bkchr bkchr closed this as completed May 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants