question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[core-api] order of transactions with same timestamp

See original GitHub issue

Describe the bug The API returns transactions with the same timestamp in an unpredictable and wrong manner.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://dexplorer.ark.io/api/v2/wallets/cam/transactions?page=1&limit=5&orderBy=timestamp:desc
  2. Go to https://dexplorer.ark.io/api/v2/wallets/cam/transactions?page=2&limit=5&orderBy=timestamp:desc
  3. Search for: 64c15a316786216825f68240ce733db052d2788f43ea94acdb5acabe484382c4
  4. The same transaction is present in both responses

Both JSON responses: https://pastebin.com/UFrG0qhZ

Expected behavior The above mentioned transaction should not be present on the second page, if it is on the first.

Additional context The results should be sorted by an additional fallback parameter with a unique value, e.g. the transaction id.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
datedcommented, Feb 1, 2019

Yea pagination introduces a whole set of problems on its own which have to be dealt with by the application, but this can be done only if the ordering is deterministic (if the dataset doesn’t change that is).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Handling Concurrency Conflicts - EF Core - Microsoft Learn
Managing conflicts when the same data is updated concurrently with Entity Framework Core.
Read more >
bloomberg open api – core developer guide
The Core API “Developer's Guide” is the starting point for learning the core ... Processing of interval data is the same as processing...
Read more >
Multiple blocks with same timestamp in clique network. #21184
Notice that two blocks are mined (one containing each transaction) and they both have the same timestamp (if they don't run test again)....
Read more >
Given transaction number does not match any in-progress ...
I am getting above error when trying to create transactions for multiple orders and I am using async/await to create multiple transactions ......
Read more >
Transaction over multiple events with same timestamp
For the above logs, is there any mechanism to tell Splunk to use sequence of events in the source-log-file along with the timestamp...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found