Commit Graph

48 Commits

Author SHA1 Message Date
Stein Martin Hustad
dbda30d4d1 Fix spacing 2015-12-16 00:00:30 +01:00
Stein Martin Hustad
0ea205d0eb Fix bug in Request.getPayload()
Apparently, node v0.12 buffer.writeUInt8 is more lenient than v0.10
2015-12-16 00:00:30 +01:00
Stein Martin Hustad
1dfdd66b72 Allow attributes in constructor 2015-12-16 00:00:30 +01:00
Stein Martin Hustad
576ba8a2b6 Implement Reject message 2015-12-16 00:00:30 +01:00
Jason Dreyzehner
e99803e634 bitcore -> bitcore-lib 2015-10-16 14:59:05 -04:00
Patrick Nagurny
d4958eb05f support adding custom p2p messages 2015-06-04 11:09:24 -04:00
Manuel Araoz
ed0bcc962a small changes after code review 2015-04-23 16:09:56 -03:00
Manuel Araoz
f01d6c98fb refactor network handling 2015-04-20 15:44:09 -03:00
Braydon Fuller
81a9f1c1fb Removed arg argument from parent message constructor. 2015-04-01 15:26:20 -04:00
Braydon Fuller
36709faaa9 Added preconditions to addr message. 2015-04-01 12:13:26 -04:00
Braydon Fuller
81047d73bd Added preconditions to filteradd message. 2015-04-01 11:59:17 -04:00
Braydon Fuller
28b05e3cc1 Added preconditions to ping message 2015-04-01 11:55:00 -04:00
Braydon Fuller
79674a2d7b Added preconditions to pong message. 2015-04-01 11:52:35 -04:00
Braydon Fuller
cf7d06baaa Create transaction if not supplied in transaction message. 2015-04-01 11:42:51 -04:00
Braydon Fuller
101796f7e9 Improved inventory precondition checks to handle objects. 2015-04-01 11:11:06 -04:00
Braydon Fuller
3921c46507 Updated JSDocs for Message Commands 2015-03-31 19:04:45 -04:00
Braydon Fuller
f21e2439be Added preconditions to the Headers message. 2015-03-31 18:50:36 -04:00
Braydon Fuller
24ffd3f5f6 Use factory options as a seperate argument for messages. 2015-03-31 17:52:36 -04:00
Braydon Fuller
e933dac898 Added default relay value for Version message. 2015-03-30 13:49:44 -04:00
Braydon Fuller
b109ff5910 Restructured message commands to use options referenced in messages 2015-03-27 18:52:03 -04:00
Braydon Fuller
573354a188 updated jsdocs to use closure style and fixed typos 2015-03-20 14:30:43 -04:00
Braydon Fuller
34c38466f7 moved inventory helper functions to builder 2015-03-17 16:01:52 -04:00
Braydon Fuller
c0e3bdb190 removed fromObject method that is nolonger needed 2015-03-16 18:53:14 -04:00
Braydon Fuller
39d1ae9ac8 fix jsdocs for message commands 2015-03-16 12:59:29 -04:00
Braydon Fuller
f1aa4d3bc0 updated docs for message commands 2015-03-16 12:22:43 -04:00
Braydon Fuller
42985a7716 added jsdocs for message commands 2015-03-16 11:41:58 -04:00
Braydon Fuller
4c4d53a4c5 add jsdocs for inv, getdata and notfound 2015-03-16 11:27:05 -04:00
Braydon Fuller
50d7d37034 added jsdocs for bloomfilter and messages 2015-03-16 11:13:13 -04:00
Braydon Fuller
e31f28e973 cleanup builder options 2015-03-13 20:54:50 -04:00
Braydon Fuller
6007dc6faf updated to use mapped constructers and removed build method 2015-03-13 20:49:24 -04:00
Braydon Fuller
3b53593288 added tests for pool.listen and improved arguments for tx and block messages 2015-03-13 14:50:17 -04:00
Braydon Fuller
8c9babc093 added tests for command edge cases 2015-03-13 13:45:51 -04:00
Braydon Fuller
a8b8c59069 added default options for all command messages, and added tests 2015-03-13 12:50:55 -04:00
Braydon Fuller
4ecb34e123 updated bitconid integration test to use exposed message constructors 2015-03-13 12:06:07 -04:00
Braydon Fuller
641443f6dd expose message construtors by name 2015-03-13 10:15:41 -04:00
Patrick Nagurny
7f61fc62d4 listen for incoming connections 2015-03-12 18:22:45 -04:00
Braydon Fuller
faf2bb1868 updated bitcoind integration test 2015-03-12 12:17:57 -04:00
Braydon Fuller
091893b1e4 whitespace cleanup 2015-03-12 10:58:36 -04:00
Braydon Fuller
2eb7712ab8 organized commands to build from an array 2015-03-12 10:48:45 -04:00
Braydon Fuller
e460bf915d moved the rest of the commands into seperate files 2015-03-12 10:41:35 -04:00
Braydon Fuller
feda6e9370 pass options directly into command messages 2015-03-12 04:54:52 -04:00
Braydon Fuller
3c2afed5f5 moved ping and verack to seperate files 2015-03-12 04:48:58 -04:00
Braydon Fuller
6ca2f6982c Moved block and version messages and shared utils into seperate files. 2015-03-12 04:34:30 -04:00
Braydon Fuller
608e41de07 added test coverage for peer 2015-03-12 01:12:45 -04:00
Braydon Fuller
42288e8354 removed "buildFromObject" alias 2015-03-12 00:05:27 -04:00
Braydon Fuller
32a28b133a Removed bufferput dependency 2015-03-11 23:57:08 -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
e8f0725081 Moved commands, message and messages to directory 2015-03-11 23:57:08 -04:00