Listtransactions bad transaction numbering #323

issue DrHaribo opened this issue on June 16, 2011
  1. DrHaribo commented at 8:35 PM on June 16, 2011: none

    For account "*" the transaction numbering becomes incorrect when crossing multiple accounts.

    Demonstration:

    bitcoind listtransactions "*" 3 0

    [ { "account" : "", "category" : "generate", "amount" : 50.00000000, "confirmations" : 557, "txid" : "54b109e159488391717d1abebc51bbd52f6eae853a6e9bff2a43db0c1039d738", "time" : 1308006088 }, { "account" : "test", "address" : "mm1nWPrMuSV2QCLyWo26AH2Pq8AoBGKBcZ", "category" : "receive", "amount" : 1.00000000, "confirmations" : 164, "txid" : "9eb0feec97f1c5df9e8af9aac1cddf9bc01a05ec168dadb8977e2a5d026fcb1c", "time" : 1308087257 }, { "account" : "", "address" : "mm1nWPrMuSV2QCLyWo26AH2Pq8AoBGKBcZ", "category" : "send", "amount" : -1.00000000, "fee" : 0.00000000, "confirmations" : 164, "txid" : "9eb0feec97f1c5df9e8af9aac1cddf9bc01a05ec168dadb8977e2a5d026fcb1c", "time" : 1308087257 } ]

    It would be natural to assume that if we list the second transaction (number one counting from zero), it would be the transaction in the "test" account. But instead we get the third transaction:

    bitcoind listtransactions "*" 1 1

    [ { "account" : "", "category" : "generate", "amount" : 50.00000000, "confirmations" : 557, "txid" : "54b109e159488391717d1abebc51bbd52f6eae853a6e9bff2a43db0c1039d738", "time" : 1308006088 } ]

  2. jgarzik closed this on Jul 5, 2012

  3. ptschip referenced this in commit 1d56e4c72c on Mar 2, 2017
  4. destenson referenced this in commit 2b648be1c3 on Nov 18, 2017
  5. destenson referenced this in commit 4f2f3fab77 on Nov 18, 2017
  6. classesjack referenced this in commit 5c6d7f5ab7 on Jan 2, 2018
  7. attilaaf referenced this in commit 1c29be673b on Jan 13, 2020
  8. cryptapus referenced this in commit a6205bd173 on May 3, 2021
  9. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-29 03:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me