Anonset in "Information about Hush" #107

Open
opened 1 year ago by onryo · 1 comments
onryo commented 1 year ago
Collaborator

As was mentioned in #105 the anonset info would be cool to have.

As was mentioned in https://git.hush.is/hush/SilentDragonLite/issues/105#issuecomment-3569 the anonset info would be cool to have.
onryo added the
feature
label 1 year ago
duke commented 1 year ago
Owner

I am not for or against this, I will just describe some details about how this could work.

One way is to require that zindex=1 and if it isn't, don't render the data. The other way is to use our RPC's which dynamically calculate the anonset. Those can be slow for calculating the global anonset, but we can make them fast by embedding the data into the SD code. For instance, let's say we know the anonset at block H1 is X.
Now we want to update the current anonset at the current blockheight H2. We only have the calculate the anonset between H1 and H2, and then add it to X. This is much faster than calculating the global anonset in a loop, which is very slow and wasteful of CPU resources. And eventually it will be slow enough that the RPC method will timeout.

I am not for or against this, I will just describe some details about how this could work. One way is to require that `zindex=1` and if it isn't, don't render the data. The other way is to use our RPC's which dynamically calculate the anonset. Those can be slow for calculating the global anonset, but we can make them fast by embedding the data into the SD code. For instance, let's say we know the anonset at block H1 is X. Now we want to update the current anonset at the current blockheight H2. We only have the calculate the anonset between H1 and H2, and then add it to X. This is much faster than calculating the global anonset in a loop, which is very slow and wasteful of CPU resources. And eventually it will be slow enough that the RPC method will timeout.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.