Skip to content

Conversation

@joostjager
Copy link
Contributor

No description provided.

src/gossip.rs Outdated
.map_err(|_| Error::GossipUpdateFailed)?;
let new_latest_sync_timestamp =
gossip_sync.update_network_graph(&update_data).map_err(|e| {
log_trace!(logger, "Failed to update network graph with RGS data: {:?}", e);
Copy link
Contributor Author

@joostjager joostjager Jan 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if {:?} is desired? Otherwise need to add Display to (nested) errors.

Otherwise a basic error such as wrong chainhash isn't surfaced, making debugging harder.
@joostjager joostjager force-pushed the log-rgs-update-error branch from 33e06d3 to 4501b61 Compare January 31, 2025 10:23
Copy link
Collaborator

@tnull tnull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@tnull tnull merged commit 3b36020 into lightningdevkit:main Jan 31, 2025
7 of 14 checks passed
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