subscribing and pulling off-chain data

+1 vote
1. Does turning autosubscribe on causes the download of off-chain data from all streams or only for the stream items I am accessing?

2. At what point does the pulling of off-chain data actually takes place?

3. Does the original issuer need to maintain a copy perpetually or downstream subscribers are also maintaining redundant copies?
asked May 3, 2022 by anonymous

1 Answer

0 votes

If you're subscribed to a stream then all offchain items for that stream will be automatically downloaded, as soon as the item is seen, and locally stored (this behavior can optionally be changed in MultiChain Enterprise only). The same applies if the subscription is created by autosubscribe.

The downloading is fast but asynchronous – see the getchunkqueueinfo command.

Downstream subscribers will also maintain redundant copies and deliver them to other nodes in the network requesting them, so the original issuer doesn't (in theory) have to maintain their copy perpetually. But you will need to use MultiChain Enterprise (and the purgepublisheditems command) in order to remove the local copy from the original publishing node. And of course this should be done with serious caution!

answered May 4, 2022 by MultiChain
Clarification on autosubscribe