Skip to content

592+a few fixes #621

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
May 12, 2020
Merged

Conversation

TheBlueMatt
Copy link
Collaborator

No description provided.

naumenkogs and others added 14 commits May 12, 2020 09:27
8ce2223 introduced a new field in
the "Node" objects used in our functional tests - the node_id. Its
not a bad idea to cache it, but unless we want to commit and use it
everywhere, we should avoid duplicating data, especially in tests
where we'd rather exercise the underlying code than bypass it.
Because we expose the internals we don't need a method to log
their contents anymore, and get_addresses can now avoid copying as
we expose the RwLock directly
We previously were only able to assert that the route graph
serialization roundtrips were good by comparing the network
messages returned from them, but we can now do better as the graph
is exposed publicly via a simple datastructure that implements
PartialEq.
We need to always set lowest_inbound_channel_fees to None if there
are no channels (and we should ignore the channels which are
disabled for the purpose of lowest-fee calculations). Further, we
cannot unwrap the channel lookups as they may be for channels which
are not related to the channel we are processing an update for.
Finally, we can satisfy borrowck much easier since things are on
self instead of on a MutexGuard.
@codecov
Copy link

codecov bot commented May 12, 2020

Codecov Report

Merging #621 into master will increase coverage by 0.04%.
The diff coverage is 94.56%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #621      +/-   ##
==========================================
+ Coverage   91.12%   91.17%   +0.04%     
==========================================
  Files          34       35       +1     
  Lines       20505    20693     +188     
==========================================
+ Hits        18686    18866     +180     
- Misses       1819     1827       +8     
Impacted Files Coverage Δ
lightning/src/lib.rs 100.00% <ø> (ø)
lightning/src/ln/channelmanager.rs 85.49% <ø> (ø)
lightning/src/ln/onion_utils.rs 95.02% <ø> (ø)
lightning/src/ln/peer_handler.rs 58.25% <ø> (ø)
lightning/src/util/events.rs 20.43% <ø> (ø)
lightning/src/util/macro_logger.rs 89.28% <ø> (ø)
lightning/src/routing/network_graph.rs 91.61% <91.61%> (ø)
lightning/src/routing/router.rs 96.47% <96.47%> (ø)
lightning/src/ln/chanmon_update_fail_tests.rs 97.45% <100.00%> (+0.11%) ⬆️
lightning/src/ln/functional_test_utils.rs 94.82% <100.00%> (+0.18%) ⬆️
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d2520f4...b1c8097. Read the comment docs.

@TheBlueMatt TheBlueMatt merged commit b5723c7 into lightningdevkit:master May 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants