List streams command only returns a single record when streams=*

+1 vote
When I used the following command line or through json rpc calls:

liststreams "*" true 1000 -1

I'm expecting the call to return 1000 streams with verbose=true starting with the latest records (start = -1)

but instead I only get the latest stream.

Is this behavior correct ? Please advise if I'm setting the params incorrectly.
asked Apr 25, 2017 by Brian Tan

1 Answer

0 votes

Your problem here is the -1 which indicates to start at the last record, but then go forwards (so only one record is left before you get to the end of the list). You should use the below if you want to get information on the last 1000 streams:

liststreams * true 1000 -1000

answered Apr 26, 2017 by MultiChain
...