building an architecture with a blockchain cache

+1 vote
Hi,

We're working on a architecture that allows the use of a local cache. Does multichain have some kind of trigger for the local cache to update?

In other words: when node #1 adds for example an asset or a stream item, is it possible to trigger the other nodes to update their cache?
asked Jul 7, 2017 by anonymous

1 Answer

0 votes

Take a look at the -walletnotify and -blocknotify runtime parameters, which update you on updates to the local node's wallet and any new block respectively. Note that you can't use these to receive immediate notifications of new transactions that don't directly affect the node's wallet, such as the creation of a new asset. For those you'll need to poll the memory pool using getrawmempool or getmempoolinfo.

answered Jul 7, 2017 by MultiChain
...