Author

Topic: Re: listtransactions output is not in order (Read 786 times)

full member
Activity: 233
Merit: 102
April 16, 2015, 07:09:56 AM
#5
Quote
I think your answer is in the comments above from 2013-2014 - it isn't supposed to be chronological and the code won't be changed.

I knew this to be the case, but now I think about it, Why on Earth does the listunspent array get sorted by TxID  Huh when ....

1) TxID is a hash (ie not a value, per se) &

2) Tx priority is determined by everything BUT TxID!?


Isn't sorting by TxID logically equivalent to re-ordering chronological appointments alphabetically, from April to September?
legendary
Activity: 4256
Merit: 1313
I see you looked here:
https://github.com/bitcoin/bitcoin/issues/2853


I think your answer is in the comments above from 2013-2014 - it isn't supposed to be chronological and the code won't be changed.

HOWEVER, I would imagine you could write a patch and push it, something like:
listtransactionschrono

which would behave how you'd like.
sr. member
Activity: 476
Merit: 250
from the wiki:

Quote
listtransactions

Returns up to [count] most recent transactions skipping the first [from] transactions for account [account]. If [account] not provided it'll return recent transactions from all accounts.

you should issue a ticket on github.

https://github.com/bitcoin/bitcoin/issues
legendary
Activity: 1106
Merit: 1006
Lead Blockchain Developer
Tried "-zapwallettxes=1".

No change.

Note that this wallet is over 560M and has around 170,000 transactions in it.
member
Activity: 69
Merit: 10
Sigh:

0.10.0, this still doesn't work, even in the most basic fashion.

~$ ./bitcoin-cli listtransactions "someuser" 100 | grep time
"time" : 1362497078,
"time" : 1362497078,
"time" : 1362511807,
"time" : 1362512629,
"time" : 1362512629,
"time" : 1362533147,
"time" : 1362533148,
"time" : 1362600301,
"time" : 1362774870,
"time" : 1362777300,
"time" : 1362787505,
"time" : 1362795145,
"time" : 1362795145,
"time" : 1362810319,
"time" : 1362810320,
"time" : 1362816319,
"blocktime" : 1362892319,
"time" : 1362891827,
"timereceived" : 1362891827
"time" : 1362900226,
"time" : 1362900226,
"time" : 1362903509,
"time" : 1362903902,
"time" : 1363046425,
"time" : 1358656002,
"time" : 1358706907,
"time" : 1358706927,
"time" : 1358804344,
"time" : 1358804996,
"time" : 1358859744,
"time" : 1358859745,
"time" : 1358899370,
"time" : 1358899370,
"time" : 1358899372,
"time" : 1358899372,
"time" : 1358904719,
"time" : 1358904719,
"time" : 1358988793,
"time" : 1358988794,
"time" : 1359088721,
"time" : 1359088721,
"time" : 1359093098,
"time" : 1359093099,
"time" : 1359187505,
"time" : 1359187513,
"time" : 1359402161,
"time" : 1359402161,
"time" : 1359417604,
"blocktime" : 1359451646,
"time" : 1359451080,
"timereceived" : 1359451080
"time" : 1359454691,
"time" : 1359454692,
"time" : 1359608999,
"time" : 1359609303,
"time" : 1359609324,
"time" : 1359623896,
"time" : 1359623896,
"time" : 1359778649,
"time" : 1359778649,
"time" : 1359833102,
"time" : 1359920106,
"time" : 1359921919,
"blocktime" : 1359939536,
"time" : 1359939449,
"timereceived" : 1359939449
"time" : 1359943341,
"time" : 1359943341,
"time" : 1359943343,
"time" : 1359943344,
"time" : 1360022405,
"time" : 1360054005,
"blocktime" : 1360122677,
"time" : 1360122176,
"timereceived" : 1360122176
"time" : 1360123276,
"time" : 1360123276,
"time" : 1360123278,
"time" : 1360123278,
"time" : 1360147690,
"time" : 1360147690,
"time" : 1360366744,
"time" : 1360366744,
"time" : 1360368306,
"time" : 1360480803,
"time" : 1360481339,
"time" : 1360483174,
"time" : 1360486819,
"time" : 1360747325,
"time" : 1360747325,
"time" : 1361084414,
"time" : 1361084710,
"time" : 1361093570,
"time" : 1361093570,
"time" : 1361110493,
"time" : 1361232016,
"time" : 1361429756,
"time" : 1361430012,
"time" : 1361431112,
"time" : 1361652605,
"time" : 1361658617,
"time" : 1361836830,
"time" : 1362116442,
"time" : 1362116703,
"time" : 1362118131,
"time" : 1362118132,
"time" : 1362118133,
"time" : 1362118133,
Jump to: