Skip to content

feat(network): add peersharing protocol module#574

Merged
scarmuega merged 2 commits into
txpipe:mainfrom
franciscojoray:peer-sharing
Jan 15, 2025
Merged

feat(network): add peersharing protocol module#574
scarmuega merged 2 commits into
txpipe:mainfrom
franciscojoray:peer-sharing

Conversation

@franciscojoray
Copy link
Copy Markdown
Contributor

This PR adds the implementation of the peersharing protocol.

@franciscojoray franciscojoray marked this pull request as ready for review January 6, 2025 17:54
@franciscojoray franciscojoray changed the title added peer-sharing protocol module feat(network): add peer-sharing protocol module Jan 6, 2025
@franciscojoray franciscojoray changed the title feat(network): add peer-sharing protocol module feat(network): add peersharing protocol module Jan 6, 2025
let msg = Message::ShareRequest(amount);
self.send_message(&msg).await?;
self.0 = State::Busy(amount);
debug!("sent share request message with amount {}", amount);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

no need for string interpolation in debug! traces. It's better to pass values as args to the macro.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks Santiago. Fixed it in the last commit.

@scarmuega scarmuega merged commit 863a1ce into txpipe:main Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants