-
Notifications
You must be signed in to change notification settings - Fork 0
pchain_network v0.5 #17
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
Merged
Changes from 1 commit
Commits
Show all changes
62 commits
Select commit
Hold shift + click to select a range
895b3a2
new pchain_network structure according to pull request comments
47046ea
network subscribes to fullnode topics declared in config
ong-jonas 8e13e7b
Added handlers field in PeerBuilder, change visibility of constants
8359198
filter types of messages to pass into handlers
ong-jonas 929e2c2
Replace libp2p::identity::Keypair with libp2p::identity::ed25519::Key…
89af337
removed constant inputs that were redundantly passed into functions
ong-jonas 632e0cc
Use libp2p::identity::PeerId, instead of libp2p::PeerId
7632917
Implemented Drop trait for Peer, fixed errors in engine.rs
06d7fd1
changed method of identifying message topics, updated protocol name a…
ong-jonas 61caf60
Updated comments and docs
34dd150
improve deserialization of messages
ong-jonas 309a0d6
Merge branch 'refactor' into refactor
ong-jonas e4e4b1b
Merge pull request #15 from ong-jonas/refactor
manngayin612 b6c155e
Resolved conflicts from pull request, added helper function to for me…
8bf6953
update comments, removed Envelope from message.rs
8916714
DOC: updated comments in message.rs
1777c61
fixed network tests
ong-jonas b0a5f6e
Moved configuration of PeerBuilder as argument of PeerBuilder::new(),…
2a699f2
Merge branch 'refactor' into tests/refactor
ong-jonas 9e3082b
updated lib.rs example usage
ong-jonas 52de07b
updated behaviour.rs test to check if the specific peer has been added
ong-jonas 71e8b0a
updated config boot_nodes type to Vec<(PublicAddress, Ipv4Addr, u16)>
ong-jonas 51e58a9
updated variable names and comments, removed explicit declaration of …
ong-jonas cdabd42
Update comments
f29a849
Updated comments in lib.rs
24c83d9
Merge pull request #16 from parallelchain-io/tests/refactor
manngayin612 cea24db
updated documentation and comments
ong-jonas cf2ab28
implement tryfrom gossip_message to pchain_message and moved definiti…
ong-jonas 862a280
EngineStartError moved to mod engine
ong-jonas d4403a1
remove PeerBuilder and create Peer through Peer::start, engine::start…
ong-jonas aca23b8
convert gossipsub message to message using identify topics
ong-jonas 4ab7543
renamed variables
ong-jonas 20ecbbf
remove engine and replace functionality with peer
ong-jonas 311ae56
decompose engine start into 3 separate functions
ong-jonas e69a8df
renamed MessageError to MessageConversionError
ong-jonas c9cbc37
renamed InvalidTopic to InvalidTopicError
ong-jonas d2f1d72
updated conversion errors
ong-jonas fed8fe6
removed identity topics
ong-jonas 0e2ee29
removed impl From for PeerStartError and mapped errors in Peer::start()
ong-jonas 6c7d3f1
removed start_listening function
ong-jonas a739d94
peers publish messages to themselves if they are subscribed
ong-jonas e51f6db
documentation and tests update
ong-jonas c228d2f
moved conversion of gossipsub::message to conversion.rs
ong-jonas 702dfe2
Merge pull request #18 from parallelchain-io/message/refactor
manngayin612 a802936
Removed redundant incoming _msgs_buffer_capacity
7e37505
Renamed variable. Updated docs
434be9a
separated broadcast and send to self test cases
ong-jonas d0d1c41
Merge branch 'refactor' of https://github.com/parallelchain-io/pchain…
ong-jonas 2448e97
updated network tests and hotstuff dependency to 0.3
ong-jonas 0c21c1b
added conversion between pchain types Keypair and libp2p Keypair
ong-jonas 18362f4
removed keypair conversions
ong-jonas 2db4d17
updated documentation
ong-jonas 5abd30b
added helper function in network tests
ong-jonas 4904909
Updated lib.rs
c0f3fe0
Updated lib.rs
fa28fcd
Update libp2p::Kademlia deprecated packages, set allow_self_origin to…
710ecff
Update message handlers to be type of FnMut
156bb47
Fix: disambiguate serialization used for DroppedTxsStatusCode
03f1c78
FIX: removed deprecated dependencies
ong-jonas 02de232
REFACTOR: removed with_dns, added nodelay(true)
ong-jonas 74551df
REFACTOR: try_from to filter_gossipsub_messages, Vec<msg_handlers> to…
ong-jonas 5900f43
deps: update dependency to hotstuff_rs
ong-jonas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Updated lib.rs
- Loading branch information
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add
pub use peer::Peer