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

web-client: Cannot request pre-migration transaction #3201

Closed
sisou opened this issue Dec 17, 2024 · 2 comments
Closed

web-client: Cannot request pre-migration transaction #3201

sisou opened this issue Dec 17, 2024 · 2 comments

Comments

@sisou
Copy link
Member

sisou commented Dec 17, 2024

Requesting a pre-migration transaction through the web-client for hash e5ccd2e7b892474b29af0d9fdc5a802989a8e48d77fb6fe85966a3f8fb65049e which was in block #3388464, I get this instead from all peers:

await $.client.getTransaction("e5ccd2e7b892474b29af0d9fdc5a802989a8e48d77fb6fe85966a3f8fb65049e")
...
2024-12-17T09:18:25.655000064Z DEBUG consensus_proxy      | Performing txn proof request without block number
2024-12-17T09:18:25.735000064Z DEBUG consensus_proxy      | New txns proof and block from peer peer=... block=#3456000:MA:968f7ad967
2024-12-17T09:18:25.880999936Z DEBUG consensus_proxy      | Error on remote side while requesting block proof error=bad block number 3456000 peer=12D3KooWKTLbkE3MP6EhuXYGbF7i2tVqCwf5ATVc3ffW2gANREbE
...
Error: Transaction not found

I can get this transaction via RPC (from a pre-migration-enabled node) just fine.

@sisou
Copy link
Member Author

sisou commented Dec 17, 2024

The request handler for the RequestBlocksProof message has a condition that returns the BadBlockNumber error for the PoS genesis block.

So the bug seems to be that the web-client requests a proof for that block, when it can't and also shouldn't.

@sisou
Copy link
Member Author

sisou commented Dec 17, 2024

Already fixed (but not released) in 8e40a65 as part of #3187.

@sisou sisou closed this as completed Dec 17, 2024
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

1 participant