Commit Graph

13 Commits

Author SHA1 Message Date
Braydon Fuller
6007dc6faf updated to use mapped constructers and removed build method 2015-03-13 20:49:24 -04:00
Braydon Fuller
6461748cd5 make listening optional and fixed peer test 2015-03-12 18:52:31 -04:00
Braydon Fuller
608e41de07 added test coverage for peer 2015-03-12 01:12:45 -04:00
Braydon Fuller
11bee8b900 Improved API:
- Renamed "Commands" to "builder"
- "Messages.parseMessage" to "Messages.parseBuffer"
- Changed to use private methods for "discardUntilNextMessage" and "buildFromBuffer"
- Cleaned up tests
2015-03-11 23:57:08 -04:00
Braydon Fuller
9a813bad96 Extensibility
- changed options in constructors
- define block and transaction constructors for block and tx messages
2015-03-11 23:57:00 -04:00
William Wolf
05e5c37230 The 'fRelay' param on Version requests is optional.
I'v seen `RangeError: index out of range` crashes from nodes that don't
send it, when `bitcore-p2p` tries to `readUInt8()` the last bit.

This also adds `relay` property to `Peer` objects that is respected
when sending `Version` messages.
2015-02-18 11:21:01 -08:00
Manuel Araoz
b9c90613fa remove lodash 2015-02-11 18:26:27 -03:00
Manuel Araoz
24b02ccaa6 fix #1018 2015-02-06 12:32:52 -03:00
Manuel Araoz
ce7ccc773e remove browser checks 2015-01-27 13:20:39 -03:00
Esteban Ordano
aa2552629e Add integration test with network data 2015-01-20 12:48:48 -03:00
Esteban Ordano
6fc5e75868 Change from bitcore-base to bitcore 2015-01-15 18:31:42 -05:00
Esteban Ordano
1863a6547b Initial commit for bitcore-p2p 2015-01-15 18:30:06 -05:00
Braydon Fuller
4dbfb7eeba Moved files from lib/transport to lib, and test/transport to test 2015-01-15 18:06:56 -05:00