lnd/routing
yyforyongyu d59652a625
routing: fix nil pointer deference in exitWithErr
In a rare case when the critical log is triggered when using postgres as
db backend, the `payment` could be nil cause the server is shutting
down, causing the payment fetching to return an error. We now cache its
state before fetching it from the db.
2024-11-12 03:24:11 +08:00
..
blindedpath multi: start updating various loggers to use the new v2 type 2024-10-22 17:03:55 +02:00
chainview multi: wait for rpcclients shutdown to complete 2024-11-12 03:24:10 +08:00
localchans multi: break ChannelConstraints into two sub-structures 2024-08-01 12:00:32 -07:00
route routing+channeldb: let Vertex implement tlv.RecordProducer 2024-11-01 08:59:54 +02:00
shards multi: Fix typos [skip ci] 2022-01-24 12:19:02 +02:00
testdata
additional_edge_test.go routing+refactor: let BlindedEdge carry BlindedPayment 2024-07-10 09:12:39 +02:00
additional_edge.go routing: add BlindedPayment() method to AdditionalEdges 2024-07-10 09:12:39 +02:00
bandwidth_test.go routing: add htlcAmt to PaymentBandwidth method of TlvTrafficShaper 2024-10-02 18:09:46 -07:00
bandwidth.go routing: add htlcAmt to PaymentBandwidth method of TlvTrafficShaper 2024-10-02 18:09:46 -07:00
blinding_test.go routing: swap out final hop blinded route pub keys 2024-07-31 09:14:31 +02:00
blinding.go routing: final changes to BlindedPaymentPathSet 2024-07-31 09:15:43 +02:00
control_tower_test.go routing: make sure StatusInitiated is notified when creating payments 2023-11-15 20:18:21 +08:00
control_tower.go routing: export dbMPPayment interface 2024-08-27 19:00:58 -05:00
graph.go multi: add abstraction for Router and SessionSource graph access 2024-07-15 15:13:57 +02:00
heap_test.go
heap.go routing: add inbound fee support to pathfinding 2024-03-31 18:12:28 +02:00
integrated_routing_context_test.go routing: support multiple namespaced MissionControls 2024-10-01 14:11:05 +02:00
integrated_routing_test.go routing: add TlvTrafficShaper to bandwidth hints 2024-09-05 18:00:52 +02:00
log.go multi: start updating various loggers to use the new v2 type 2024-10-22 17:03:55 +02:00
missioncontrol_state_test.go multi: formatting and comment fixes 2022-02-10 11:02:02 +01:00
missioncontrol_state.go routing: separate MissionControl from MissionControlManager 2024-10-01 14:06:50 +02:00
missioncontrol_store_test.go routing+migration32: update MC encoding to use pure TLV 2024-11-01 12:28:06 +02:00
missioncontrol_store.go routing: fix missionControlStore blocks on shutting down 2024-11-08 01:23:33 +08:00
missioncontrol_test.go routing: support multiple namespaced MissionControls 2024-10-01 14:11:05 +02:00
missioncontrol.go routing+migration32: update MC encoding to use pure TLV 2024-11-01 12:28:06 +02:00
mock_graph_test.go routing+refactor: remove the need to give CachedGraph source node access 2024-07-15 13:10:24 +02:00
mock_test.go routing: separate MissionControl from MissionControlManager 2024-10-01 14:06:50 +02:00
nodepair.go
pathfind_test.go multi: update PaymentAddr to use fn.Option 2024-09-25 11:14:35 +09:00
pathfind.go multi: update PaymentAddr to use fn.Option 2024-09-25 11:14:35 +09:00
payment_lifecycle_test.go routing: add TlvTrafficShaper to bandwidth hints 2024-09-05 18:00:52 +02:00
payment_lifecycle.go routing: fix nil pointer deference in exitWithErr 2024-11-12 03:24:11 +08:00
payment_session_source.go routing: separate MissionControl from MissionControlManager 2024-10-01 14:06:50 +02:00
payment_session_test.go multi: rename ChannelUpdate to ChannelUpdate1 2024-09-18 16:13:17 +02:00
payment_session.go multi: update more loggers to the v2 type 2024-10-22 17:03:56 +02:00
probability_apriori_test.go trivial: Fix spelling errors 2023-09-21 22:35:33 -04:00
probability_apriori.go trivial: Fix spelling errors 2023-09-21 22:35:33 -04:00
probability_bimodal_test.go routing: skip fuzzing when capacity is 0 2024-09-10 15:17:39 -05:00
probability_bimodal.go routing: stronger use of direct bimodal probability 2023-03-23 11:12:10 +01:00
probability_estimator_test.go routing: add probability benchmarks 2023-02-14 13:34:25 +01:00
probability_estimator.go routing: add probability estimator interface 2023-02-10 09:58:40 +01:00
README.md scripted-diff: replace ⛰ emoji with $ [skip ci] 2022-10-28 12:06:49 -04:00
result_interpretation_test.go routing+migration32: update MC encoding to use pure TLV 2024-11-01 12:28:06 +02:00
result_interpretation.go routing+migration32: update MC encoding to use pure TLV 2024-11-01 12:28:06 +02:00
router_test.go routing: support multiple namespaced MissionControls 2024-10-01 14:11:05 +02:00
router.go routing: separate MissionControl from MissionControlManager 2024-10-01 14:06:50 +02:00
setup_test.go
unified_edges_test.go routing: add BlindedPayment to unifiedEdge 2024-07-10 09:12:39 +02:00
unified_edges.go routing: skip amtInRange for custom HTLCs 2024-09-05 18:00:52 +02:00

routing

Build Status MIT licensed GoDoc

The routing package implements authentication+validation of channel announcements, pruning of the channel graph, path finding within the network, sending outgoing payments into the network and synchronizing new peers to our channel graph state.

Installation and Updating

$  go get -u github.com/lightningnetwork/lnd/routing