Streams have no stream items

+1 vote
After my upgrade from 1 to 2.1.2, I have no stream items in any of my streams.

 

{"method":"liststreamitems","params":["JackBritain"],"id":"23499862-1621867726","chain_name":"clicktochain"}

[
]

They are all reading as empty.

   "indexes" : {
            "items" : true,
            "keys" : true,
            "publishers" : true,
            "items-local" : true,
            "keys-local" : true,
            "publishers-local" : true
        },
        "synchronized" : true,
        "items" : 0,
        "confirmed" : 0,
        "keys" : 0,
        "publishers" : 0
    },
    {
        "name" : "DNG",
        "createtxid" : "533be2a23f8b61325c991b66405d94e1442acde72e121106923460a8993577e2",
        "streamref" : "2885-267-15187",
        "restrict" : {
            "write" : true,
            "read" : false
        },
        "details" : {
            "Token" : "CA-ca51710111516ec63af15"
        },
        "subscribed" : true,
        "retrieve" : true,
        "indexes" : {
            "items" : true,
            "keys" : true,
            "publishers" : true,
            "items-local" : true,
            "keys-local" : true,
            "publishers-local" : true
        },
        "synchronized" : true,
        "items" : 0,
        "confirmed" : 0,
        "keys" : 0,
        "publishers" : 0
    },
asked May 24 by MaSsv

1 Answer

0 votes

As a first step, can you please try stopping your node than re-running it with the -rescan runtime parameter?

answered May 25 by MultiChain
I sent two files to you. I noticed a difference in the result of  getrawransaction tx 1
I have send 1.0 and 2.1.2 outputs.
First, I think you mislabelled the files, 1.0 is 2.1.2 and vice versa.

Anyway, it looks OK, some fields are added in version 2.1.2

Some fields are deprecated in 2.1.2, see

https://www.multichain.com/developers/json-rpc-api/

Maybe what you are missing is top-level "data" field, which in 2.1.2 is returned for each output separately (because in 2.0+, multiple data outputs are allowed). In any case, it has nothing to do with streams,  

To restore all these missing fields you should run 2.1.2 with -v1apicompatible runtime parameter
Sorry about the file names :)

Ok, I will get further information regarding my streams - I have code that *is* calling streams, creating them etc - but I see the data I am after wasn't there after all.
This has come as a surprise. I will follow up once I have checked what is going on there.

thanks for your help, I learnt something valuable here, thanks.
As a follow up to -v1apicompatible

Would this flag have any consequence on running -rescan or looking at liststreamitems ?
No, the only difference is how the keys are represented in liststreamitems (see the link I sent, search for v1apicompatible).

But this will not affect the fact that there are no stream items.
...