-
Notifications
You must be signed in to change notification settings - Fork 19
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
Sidechain does not send extrinsics to parachain #1036
Comments
upstream bug tracking issue: integritee-network/worker#1027 |
According to upstream, this one is solved. Can you confirm it? @zhizming-zhong |
cc @zhizming-zhong |
Another related issue: integritee-network/worker#970 |
Maybe we can get pending noce(via RPC) at this function(don't get nonce from cache): The nonce error is getting more and more, so it should be fixed as soon as possible and I think this solution should be the easiest. Let's find a better solution later. |
#> Maybe we can get pending noce(via RPC) at this function(don't get nonce from cache):
One more thingThis solution should not be able to completely solve this BUG. Beacuse the pending nonce returned from RPC is not guaranteed to be 100% correct. We need to design a mechanism to adjust nonce. We might check the extrinsic(system_dryRun) before sending to parentchain. Once there is a future nonce error, we should decode the opaque extrinsic and get the call parameters, and then use a new nonce to construct a new extrinsic. Some relevant code:
|
It is hard to decode the opaque extrinsic if we don't know the call type.
|
We'll first implement a simple workaround (try to forcibly reset the nonce when sending parentchain extrinsics fail) and see what we get. The dryRun way is not considered right now because:
|
Reproduce the issue
tee-worker base on this commit: https://github.com/litentry/tee-worker/tree/8ef02571b29a01c1a806c97c0513efab4a2c04cf
parachain base on this commit: https://github.com/litentry/litentry-parachain/tree/a7d1c942bc591382ccfc89533fe9439f2ea635e8
Launch parachain and worker
Execute script:
Log
There are some logs when tee-worker is running:
After sending the error extrinsics to parachain, we can see that there are error logs. The related log:
Also we can find that sending extrinsic failed and worker try to send new extrinsic to parachain, but we can't see the ProposedSidechainBlock event on fronend.
The text was updated successfully, but these errors were encountered: