Update our single shard success case to use a route which splits the payment amount in half. This change still tests the case where reveal of the preimage counts as a success, even if we don't have the full amount. This change is made to cut down on potential races in this test case. While we are waiting for collectResultAsync to report a success, the payment lifecycle will continue trying to dispatch shards. In the case where we send 1/4 of the payment amount, we send 1 or 2 more shards, depending on how long collectAsync takes. Reducing this test to send 1/2 of the payment amount means that we will always only try one more shard before waiting for our shard.
routing
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