-
Notifications
You must be signed in to change notification settings - Fork 275
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
Extensible Messages #48
Merged
Merged
Changes from all commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
9a813ba
Extensibility
0b20724
Changed options for Pool
e8f0725
Moved commands, message and messages to directory
11bee8b
Improved API:
32a28b1
Removed bufferput dependency
42288e8
removed "buildFromObject" alias
7e29af4
added missing precondition and moved buffer.skip to new file
d63c117
added test for inventory fromBufferReader
1dfe709
added test for pool.sendMessage
608e41d
added test coverage for peer
6ca2f69
Moved block and version messages and shared utils into seperate files.
3c2afed
moved ping and verack to seperate files
feda6e9
pass options directly into command messages
e460bf9
moved the rest of the commands into seperate files
2eb7712
organized commands to build from an array
091893b
whitespace cleanup
faf2bb1
updated bitcoind integration test
7f61fc6
listen for incoming connections
6461748
make listening optional and fixed peer test
641443f
expose message construtors by name
4ecb34e
updated bitconid integration test to use exposed message constructors
a8b8c59
added default options for all command messages, and added tests
8c9babc
added tests for command edge cases
3b53593
added tests for pool.listen and improved arguments for tx and block m…
97f39db
added tests for pool _addConnectedPeer
6007dc6
updated to use mapped constructers and removed build method
e31f28e
cleanup builder options
cfbee2d
update documentation for messages
a57f864
updated documentation for peer and pool
a15f11c
add test for default magic for command messages
6db209b
added test for message utils
1545abb
added test for version message handling
e62ddd9
added test for handling addr times and v6 addresses
ede5f0b
add test for seed event, and remove test stubs
f17bbf5
updated jsdocs for peer and pool
42c829e
added jsdocs for inventory
50d7d37
added jsdocs for bloomfilter and messages
4c4d53a
add jsdocs for inv, getdata and notfound
42985a7
added jsdocs for message commands
f1aa4d3
updated docs for message commands
39d1ae9
fix jsdocs for message commands
8f2d008
updated readme and fixed image scaling issue
664ceb2
improved peer jsdoc, fixed docs for messages, and switched to use svg…
16aa989
fixed spelling
f6e9c43
upgrade bloom-filter to 0.2.0
c0e3bdb
removed fromObject method that is nolonger needed
7cfe6d1
added unit tests for buffers.skip
34c3846
moved inventory helper functions to builder
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
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
Is dropping the checks the way to go here?
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.
I believe there are checks already in BloomFilter (e.g. https://github.com/bitpay/bloom-filter/blob/master/lib/filter.js#L69). Though these may need to be moved to apply in the main constructor.
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.
Yes, I was going to suggest to use
.create
but seems like it's a slightly different use case. Spawned bitpay/bloom-filter#1There 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.
bitpay/bloom-filter#2
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.
merged!