ripple / ripple-client

A UI for the Ripple payment network built using web technologies
ISC License
1.34k stars 494 forks source link

Pathfinding test case #400

Closed singpolyma closed 10 years ago

singpolyma commented 11 years ago

Originally from: https://ripple.com/forum/viewtopic.php?f=1&t=1899

Just using the client UI this time, instead of the API, but asking for a path from me (rhKJE9kFPz6DuK4KyL2o8NkCCNPKnSQGRL) to Bitstamp (rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B) for more than 32 USD fails to find one with a source currency of CAD, even though I have > 80 CAD:RippleUnion (r3ADD8kXSUKHd6zTCKfnKT3zV9EZHjzp1S) and there are offers to buy more than 80 USD for CAD at various prices on the books.

Also, asking for a path to send 8 USD does not find a path that starts in CAD, even though paths for higher amounts can be found.

JoelKatz commented 11 years ago

We're currently working on a significant server bug that causes pathfinding sometimes to miss exchanges that it should use. I'll check if this request hits this particular bug.

JoelKatz commented 11 years ago

Failure replicated. This may be the same bug or a different bug. If it's the same bug, it's a slightly different condition. For this pathfinding request, 11 CAD works, 9 CAD doesn't (against ledger 509966):

  {
    "source_account" : "rhKJE9kFPz6DuK4KyL2o8NkCCNPKnSQGRL",
    "destination_account" : "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
    "destination_amount" :
        { "currency": "USD", "issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B", "value": "9" },
    "source_currencies" : [ { "currency" : "CAD" } ]
  }
singpolyma commented 11 years ago

Similarly, a path cannot be found from rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B to r3ADD8kXSUKHd6zTCKfnKT3zV9EZHjzp1S with a destination amount of 70 CAD for a source of anything other than XRP.