Skip to content

why do I see mostly-repeated data in vstorage? e.g. published.agoricNames.instance #9110

Answered by dckc
dckc asked this question in Q&A
Discussion options

You must be logged in to vote

If the vstorage entry is updated multiple times in a single block, there will be multiple values in the array known as "cells".

vstorage includes the history of values across blocks as well.

@agoric/rpc just polls the latest value periodically and takes the last/most recent value of the array.

@agoric/casting iterates and yields each individual value so followers can make sure they see every single update, even within the same block. This is useful for example when watching offer status updates, because each new offer shares/overwrites a single vstorage entry in the user's wallet.

ack: @samsiegart

Replies: 1 comment

Comment options

dckc
Mar 19, 2024
Collaborator Author

You must be logged in to vote
0 replies
Answer selected by LuqiPan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
1 participant