Bitcoin Forum
April 25, 2024, 02:20:06 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Re: listtransactions output is not in order  (Read 749 times)
BTC-TradingCo (OP)
Member
**
Offline Offline

Activity: 69
Merit: 10



View Profile WWW
April 01, 2015, 08:39:28 PM
 #1

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,

The BTC Trading Corp Stock Exchange Demo: https://demo.btct.co
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714011606
Hero Member
*
Offline Offline

Posts: 1714011606

View Profile Personal Message (Offline)

Ignore
1714011606
Reply with quote  #2

1714011606
Report to moderator
burnside
Legendary
*
Offline Offline

Activity: 1106
Merit: 1004


Lead Blockchain Developer


View Profile WWW
April 01, 2015, 11:42:06 PM
 #2

Tried "-zapwallettxes=1".

No change.

Note that this wallet is over 560M and has around 170,000 transactions in it.
emrebey
Sr. Member
****
Offline Offline

Activity: 476
Merit: 250


View Profile
April 03, 2015, 06:42:34 PM
 #3

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
cr1776
Legendary
*
Offline Offline

Activity: 4018
Merit: 1299


View Profile
April 03, 2015, 08:06:55 PM
 #4

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.
HeadsOrTails
Full Member
***
Offline Offline

Activity: 233
Merit: 100



View Profile
April 16, 2015, 12:09:56 PM
 #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?
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!