Skip to content

Listtransactions bad transaction numbering #323

Closed

Description

@DrHaribo

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
}
]

Activity

  1. added a commit that references this issue on Mar 2, 2017
  2. added 2 commits that reference this issue on Nov 18, 2017
  3. added a commit that references this issue on Jan 2, 2018
  4. added a commit that references this issue on May 3, 2021
  5. locked as resolved and limited conversation to collaborators on Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions