Skip to content

listaccounts is non-deterministic, despite the docs indicating it likely should be #5960

Answered by vbaranov
OliverNChalk asked this question in Support
Discussion options

You must be logged in to vote

Thank you for rising this question. Indeed, addresses are sorted by the time of insertion

order_by: [asc: address.inserted_at],
. And indeed, on different runs of mentioned API endpoint the order of results is changing. And this non-determinism happens because some addresses has exactly the insertion timestamp:

select inserted_at from addresses where hash in ('\x1a9c379a297134135D89A08CA9427f6DfB1a081D', '\xF16AE3939552e336852F55FE7a8402d4eE5c9a8c');
        inserted_at
---------------------------
 2018-10-06 22:36:19.65109
 2018-10-06 22:36:19.65109
(2 rows)

This happens most likely because …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vbaranov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants