I am trying to get all entries in the ledger (Fabric 1.4.4, using Java Chaincode):
QueryResultsIterator<KeyValue> iterator = ctx.getStub().getStateByRange("","");
But I always get an empty iterator. Is this the correct way to get all entries?
(At least a way to get all keys would work for me as then I can get states one by one, but for that I need all keys)