You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the SW contract itself is updated on the client, to get the latest state of a contract, the client needs to go through each interaction to find its latest valid state.
If I create a PST token, it may have millions of actions, I have to verify it whenever I do a transfer.
Is there any better way to do it?
Thanks.
George Wu
The text was updated successfully, but these errors were encountered:
I'm aware of 3 different ways to tackle this problem:
Submit your transactions in batches using some type of bundler middleware. This will reduce the amount of transactions that need to be processed when computing the state
Regularly create snapshots of your state and only compute the changes since the snapshot block
Regularly redeploy a new contract using the last computed state as the new initial state
I am a newcomer to smartweave.
According to the tutorial,
https://cedriking.medium.com/lets-buidl-smartweave-contracts-6353d22c4561
Since the SW contract itself is updated on the client, to get the latest state of a contract, the client needs to go through each interaction to find its latest valid state.
If I create a PST token, it may have millions of actions, I have to verify it whenever I do a transfer.
Is there any better way to do it?
Thanks.
George Wu
The text was updated successfully, but these errors were encountered: