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

Recover a PoV & PersistedValidationData #1423

Open
pepyakin opened this issue Jul 4, 2022 · 3 comments
Open

Recover a PoV & PersistedValidationData #1423

pepyakin opened this issue Jul 4, 2022 · 3 comments

Comments

@pepyakin
Copy link
Contributor

pepyakin commented Jul 4, 2022

Several times I felt the need in getting a PoV for a given parablock. Specifically, for debugging or benchmarking. I think it would be great if cumulus allowed me to recreate the collation for a given parachain block.

Assuming I had an archive parachain node that runs with an archive relay node, I should theoretically be able to recreate a PoV for the given block, given that all the required data is supplied (specifically, PersistedValidationData and/or relay-parent).

Alternatively, a service that crawls the relay chain and recovers the PoV & PersistedValidationData would work as well.

@bkchr
Copy link
Member

bkchr commented Jul 6, 2022

Should not be that complicated, the only missing piece would be the relay parent. The relay parent is only in the runtime and not on the client side. It would be solvable, but would maybe require a new runtime api.

Would you like to have it as CLI or RPC?

@pepyakin
Copy link
Contributor Author

pepyakin commented Jul 6, 2022

For my particular use case, I'd say CLI would be more appropriate. However, I'd also gladly accept RPC.

@pepyakin pepyakin changed the title Recover a PoV & PeristedValidationData Recover a PoV & PersistedValidationData Jul 6, 2022
@crystalin
Copy link

I agree it would be a nice feature. Also through CLI is enough for us, something like:
./parachain pov extract <hash or number>

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

3 participants