Trust-Machines / BNS-V2

MIT License
10 stars 3 forks source link

Using a list of names per principal is limited to 1000 - but there will be more than that #47

Closed Patotking12 closed 1 month ago

Patotking12 commented 3 months ago

As stated by Hank having a list to keep track of the names owned by a principal is a bad idea, since we could reach the limit. In cases:

He suggested updating it to use a linked list approach here

We need to update accordingly

jcnelson commented 1 month ago

You may want to re-think updating the imported names' renewal times altogether, since there can be an effectively unbounded number of names in a namespace when it is launched. You'll only be able to update a (small) finite number of them in the namespace-launch contract-call.

IIRC back in the Blockstack days, we just computed the name's "registration" time as the maximum of the following:

Patotking12 commented 1 month ago

Ok looking into this