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

Contracts should have the main_chain field #528

Open
tdroxler opened this issue Mar 28, 2024 · 0 comments
Open

Contracts should have the main_chain field #528

tdroxler opened this issue Mar 28, 2024 · 0 comments

Comments

@tdroxler
Copy link
Member

We have some duplicates in our sub-contracts endpoint:
Examples:
1.
https://backend-v113.mainnet.alephium.org/contracts/24BbzydVTNxi3LbgcNx1Z7p689MMoqtyP8MQYvKzFbg8X/sub-contracts?page=24&limit=100
subcontract:286FrUurMmyJgiGy4ve1SrusoyE8aYBFx2nDAmQQrnWtf
2.
https://backend-v113.mainnet.alephium.org/contracts/24BbzydVTNxi3LbgcNx1Z7p689MMoqtyP8MQYvKzFbg8X/sub-contracts?page=24&limit=100
subcontract: xWin5eAirUowNHSAQn2RwsSxCmkPx4asytQcJ6NkcKBm
3.
https://backend-v113.mainnet.alephium.org/contracts/24BbzydVTNxi3LbgcNx1Z7p689MMoqtyP8MQYvKzFbg8X/sub-contracts?page=30&limit=100
subcontract: 27BV4H1cXRVpY3YviJeZ6ko8pARKyZq1E6gKwirVQFpoR

Because orphan block are also storing the contracts.

We probably need to also set the main_chain field into the contracts table.

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