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

See 767 instead. gossipsub: an extensible baseline pubsub protocol #421

Closed
wants to merge 17 commits into from

Conversation

jamesray1
Copy link
Contributor

@jamesray1 jamesray1 commented Aug 17, 2018

Outdated, see #767.

There is a PR with a spec here. Previously I was implementing episub in #291, however that extends on gossipsub, so it's better to implement gossipsub first. It's taking a while to really get into development as I've been reading through relevant specs, code, learnt Go, tokio, protobuf, and how to best extend on floodsub in terms of code structure e.g. with traits.

For a comparison of rpc_proto.rs and rpc.proto between gossipsub and floodsub, see #428.

…ructs_proto from floodsublib with floosub import and overlay parameters
@jamesray1 jamesray1 changed the title gossipsub: Cargo.toml, unlicense, rpc_proto.rs from Go impl, regen_st… gossipsub: an extensible baseline pubsub protocol Aug 17, 2018
@jamesray1 jamesray1 changed the title gossipsub: an extensible baseline pubsub protocol [WIP] gossipsub: an extensible baseline pubsub protocol Aug 17, 2018
… script, generate

rpc_proto.rs, add constants, add commented out code to lib.rs, add an UNLICENSE.
@jamesray1
Copy link
Contributor Author

So for extending floodsub, it seems like for adding new fields to structs the best way available in Rust is by composition, as inheritance isn't supported. E.g.:

struct StructB {
    a: StructA,
    // other fields...
}

@jamesray1
Copy link
Contributor Author

jamesray1 commented Sep 24, 2018

So far I need to use these private things:

// libp2p_floodsub::{RemoteInfo, Inner,
//      FloodSubController.broadcast()}

Shall we make them public, or implement getters for them?

@jamesray1
Copy link
Contributor Author

Replaced by #521.

@jamesray1 jamesray1 closed this Nov 6, 2018
@jamesray1 jamesray1 changed the title [WIP] gossipsub: an extensible baseline pubsub protocol See 767 instead. gossipsub: an extensible baseline pubsub protocol Jan 31, 2019
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.

1 participant