Skip to content
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

RPC: implement portal_*PutContent #701

Merged
merged 3 commits into from
Jan 9, 2025
Merged

RPC: implement portal_*PutContent #701

merged 3 commits into from
Jan 9, 2025

Conversation

ScottyPoi
Copy link
Collaborator

Implements RPC methods portal_[subnetwork]PutContent

This method "puts" content into a network by gossiping and local storage (if in radius). The method returns a results object with a peerCount of the number of peers who accepted the gossip, and a boolean for storedLocally.

Included in this PR is a refactor of a routing table method which was the source of some bugs in testing. routingTable.contentKeyKnownToPeer was simplified, and a new method: routingTable.markContentKeyAsKnownToPeer was added.

@acolytec3 acolytec3 merged commit 9e38af5 into master Jan 9, 2025
5 checks passed
@acolytec3 acolytec3 deleted the Put-Content branch January 9, 2025 11:51
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