Really enjoying using your software.
I am storing items in a stream, and I'd like to be able to read the item number for a particular item. The reason for this is I want to tidy up some cached data once the item is confirmed a certain number of times, so I was thinking of:
- Using "getblockcount" to find out the length of the chain, then calculating N, which is the latest block for which I want to tidy up.
- Then calling "getblock N 4" to retrieve the transactions for that block
- Then maybe "getstreamitem mystream txid...." to get the items in turn.
But I can't see how to work out the item number from the data returned by getstreamitem.
Maybe I'm thinking about this the wrong way... is the item number actually stored in the database or is it just calculated on the fly when one calls liststreamitems?