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
Accounts can own multiple names which is forbidden by the BNS contract #1540
Comments
Revoked names also result in multiple names resolving as owned by an address (see #1502). Example:
Update: Revoked names no longer resolve as of
|
For the account in the top level comment, one of the names is I guess carried over from Blockstack in a way that I don't entirely understand; BNS contract does not have any Names carried over from Blockstack did not need to have an NFT minted which should be considered a bug to be fixed in the the next iteration of BNS. The resolution by the API of a name without an NFT should also be considered a bug. https://stacks-node-api.mainnet.stacks.co/v1/names/bc-6276751a883e8520.id.blockstack
|
@0xbabo That's correct. When we boot an API node, we import old Blockstack v1 names into the new v2 tables. There are a lot of old subdomains imported during this process (a couple million IIRC), and some of them are owned by just one address. I think this is an artifact of the v1 chain but AFAIK wouldn't be possible to replicate from a v2 call to BNS to register a subdomain.
Yep, also correct. It actually makes it very difficult to determine name ownership on API responses because we can't just look at the NFT tables. |
Closing this, feel free to reopen if you have further questions |
API reports that this account owns 2 names
https://stacks-node-api.mainnet.stacks.co/v1/addresses/stacks/SP28NCDY6V4T7NJBMYGTJ55NHMXMC0GG806JW1ZTB
Meanwhile the contract function
resolve-principal
only reports one associated nameThis results in inconsistencies like Gamma resolving to one name (.btc) and Tradeport resolving to another (.id.blockstack).
The text was updated successfully, but these errors were encountered: