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

Error in call proof: UnusedProofEntry #567

Closed
Douglasacost opened this issue May 10, 2023 · 7 comments
Closed

Error in call proof: UnusedProofEntry #567

Douglasacost opened this issue May 10, 2023 · 7 comments

Comments

@Douglasacost
Copy link

Hello guys, I'm trying to implement this light-client on a webpage (Using the WASM strategy)

Here the RPC method sent
{"id":1,"jsonrpc":"2.0","method":"author_submitExtrinsic","params":["0x45028400c6f5bc3043731278e954cd2bf0456a0b7e5b28121af089fdc8353c8fe751255f016009373033f8488f20e970258013886c56c6ed73619820b1ed913ecf32b9db479803a0c524681cb9512dd11b3782eadf73abcdd728017ca0280b779c22bc2a8b2400510900020000dc4b5cae108e10211c6641d7f90dca8ad6f5727e4a307507f3341adffe2f37020700cc829c19"]}

I got this response
JSON-RPC response: {"jsonrpc":"2.0","method":"author_extrinsicUpdate","params":{"subscription":"0","result":"Dropped"}}

This trigger this warning [tx-service-para_eden] Failed to validate transaction 0xed38…bf7e: Error in call proof: UnusedProofEntry thus the transaction wasn't relayed

I have sent the transaction trough Polkadot.js app and works fine using the same method author_submitExtrinsic

Probably I'm missing something, could you help me to figure out what is wrong?

Here the implementation file: https://gist.github.com/Douglasacost/24597aaba31473c6903ba27828dfd2f3

@tomaka
Copy link
Contributor

tomaka commented May 10, 2023

Hi!

This is probably the same bug as #154 and #416.

It's a Substrate bug that was fixed by paritytech/substrate#13284

Given the fact that it keeps being reported, I might add a work-around in smoldot for the time being. The only issue with such a work-around is that it would prevent similar Substrate bugs from being discovered.

@tomaka
Copy link
Contributor

tomaka commented May 10, 2023

On a side note, looking at your code, there really is no need to batch JSON-RPC requests. If batching requests solves some kind of problem that you have, please report it as an issue.

@Douglasacost
Copy link
Author

On a side note, looking at your code, there really is no need to batch JSON-RPC requests. If batching requests solves some kind of problem that you have, please report it as an issue.

Not there is no issue, thanks for the observation

@Douglasacost
Copy link
Author

Hi!

This is probably the same bug as #154 and #416.

It's a Substrate bug that was fixed by paritytech/substrate#13284

Given the fact that it keeps being reported, I might add a work-around in smoldot for the time being. The only issue with such a work-around is that it would prevent similar Substrate bugs from being discovered.

is there something I can do from my side?

@tomaka
Copy link
Contributor

tomaka commented May 10, 2023

is there something I can do from my side?

The chain you're connecting to (para_eden) should update its version of Substrate

@Douglasacost
Copy link
Author

Hi @tomaka, para_eden has updated its substrate version (Runtime upgraded to spec version 21 (polkadot-0.9.40))
The error persist Failed to validate transaction 0xa8fe…af09: Error in call proof: UnusedProofEntry

Any other recommendation?

@Douglasacost
Copy link
Author

Start working with the recent substrate upgrade. Thanks @tomaka

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

2 participants