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

Implement trace_offer #729

Open
acolytec3 opened this issue Feb 5, 2025 · 0 comments
Open

Implement trace_offer #729

acolytec3 opened this issue Feb 5, 2025 · 0 comments

Comments

@acolytec3
Copy link
Collaborator

We should implement a portal_*TraceOffer endpoint so we can participate in some benchmarking that's been developed by @KolbyML.

Behavior should follow the existing portal_*Offer endpoint except return a trace object that looks like this (in Rust)

#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub enum OfferTrace {
    /// Offer was successful, all accepted content keys in bitlist were transferred
    Success(BitList<typenum::U64>),
    /// Peer is not interested in any of the offered content keys
    Declined,
    /// This offer failed, perhaps locally or from a timeout or transfer failure
    Failed,
}
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

No branches or pull requests

1 participant