Bitcoin Forum
January 27, 2023, 07:11:53 PM *
News: Latest Bitcoin Core release: 24.0.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Re: listtransactions output is not in order  (Read 730 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
1674846713
Hero Member
*
Offline Offline

Posts: 1674846713

View Profile Personal Message (Offline)

Ignore
1674846713
Reply with quote  #2

1674846713
Report to moderator
1674846713
Hero Member
*
Offline Offline

Posts: 1674846713

View Profile Personal Message (Offline)

Ignore
1674846713
Reply with quote  #2

1674846713
Report to moderator
1674846713
Hero Member
*
Offline Offline

Posts: 1674846713

View Profile Personal Message (Offline)

Ignore
1674846713
Reply with quote  #2

1674846713
Report to moderator
The grue lurks in the darkest places of the earth. Its favorite diet is adventurers, but its insatiable appetite is tempered by its fear of light. No grue has ever been seen by the light of day, and few have survived its fearsome jaws to tell the tale.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
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: 3598
Merit: 1273


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!