e39dc9eec1
This commit introduces a new capability to the database: storage of an on-disk directed channel graph. The on-disk representation of the graph within boltdb is essentially a modified adjacency list which separates the storage of the edge’s existence and the storage of the edge information itself. The new objects provided within he ChannelGraph carry an API which facilitates easy graph traversal via their ForEach* methods. As a result, path finding algorithms will be able to be expressed in a natural way using the range methods as a for-range language extension within Go. Additionally caching will likely be added either at this layer or the layer above (the RoutingManager) in order keep queries and outgoing payments speedy. In a future commit a new set of RPC’s to query the state of a particular edge or node will also be added. |
||
---|---|---|
.. | ||
channel_test.go | ||
channel.go | ||
db_test.go | ||
db.go | ||
doc.go | ||
error.go | ||
fees.go | ||
graph_test.go | ||
graph.go | ||
invoice_test.go | ||
invoices.go | ||
log.go | ||
meta_test.go | ||
meta.go | ||
nodes_test.go | ||
nodes.go |