stellar-deprecated / horizon

This repository has moved to the go monorepo: https://github.com/stellar/go/tree/master/services/horizon
Apache License 2.0
218 stars 106 forks source link

Pathfinding should find paths that start from the issuer of the sent asset #302

Open mmalmi opened 8 years ago

mmalmi commented 8 years ago

It seems Horizon doesn’t find paths that start from the issuer of an asset, i.e. where source_account == source_asset_issuer: https://horizon-testnet.stellar.org/paths?destination_account=GD2BBP7LR5RLSQQOPDQD6I6RQCEMD2J7DFX4ADMYX4MBQBOC3CACAPUZ&source_account=GBJNMLQVZTAS4WYXZBFHPK6ALNGBURAYQNLGUGVECW45GPO7O5QUKS6C&destination_asset_type=credit_alphanum4&destination_asset_code=EUR&destination_asset_issuer=GBJNMLQVZTAS4WYXZBFHPK6ALNGBURAYQNLGUGVECW45GPO7O5QUKS6C&destination_amount=1

The path payment went through, though: https://horizon-testnet.stellar.org/transactions/b731fce4de253f312184e7203b66819d42bf39f1b93a64c2adb6bf5b58d47e3f/operations

jedmccaleb commented 8 years ago

That does need to be a path payment is why. You can just do a normal payment if you are sending EUR from the issuer to someone who trusts the issuer

mmalmi commented 8 years ago

Another example where a path payment EUR -> XLM is expected but the path is not found: https://horizon-testnet.stellar.org/paths?destination_account=GDHLOSDJIV3C4OA5STPVMWTXRF65C7GIQKRYCABSOP5QUSZXHOQOUVIQ&source_account=GBJNMLQVZTAS4WYXZBFHPK6ALNGBURAYQNLGUGVECW45GPO7O5QUKS6C&destination_asset_type=native&destination_amount=1

Successful operation: https://horizon-testnet.stellar.org/transactions/f4f857400eb9e61705ebc2927702422683d7e2ae0e34bf0bcba6b0090d17b4e0/operations