PQS Ledger offsets seem to be off
- huwOP
Hi there, I am encountering some strange behaviour with PQS. I use
submitAndWaitForTransactionTreeto create a contract and get the ledger offset from the response. I then find the contract that I just created using theactive()function provided by PQS. The offset available in the result ofactive()appears to be greater than the offset returned by the ledger API. I am testing this on Daml sandbox. - huw
After doing some more investigation, it seems that this issue only occurs if I run the query immediately after scribe has started (and the health check returns OK). If I add a delay of a few seconds and then run the command and the query, it works as expected