Documentation ¶
Overview ¶
Package simplepath provides an implementation of paths.Finder that performs a breadth first search for paths against a stellar-core's database
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotEnough = errors.New("not enough depth")
ErrNotEnough represents an error that occurs when pricing a trade on an orderbook. This error occurs when the orderbook cannot fulfill the requested amount.
Functions ¶
This section is empty.
Types ¶
type Finder ¶
Finder implements the paths.Finder interface and searchs for payment paths using a simple breadth first search of the offers table of a stellar-core.
This implementation is not meant to be fast or to provide the lowest costs paths, but rather is meant to be a simple implementation that gives usable paths.
Click to show internal directories.
Click to hide internal directories.