Commit Graph

148 Commits

Author SHA1 Message Date
Sky Young
e334370777 Use new class based function checking instead of prototypal checking 2019-07-25 09:01:30 -06:00
Sky Young
d1034b3a82 Use proper Transaction import 2019-07-25 08:48:41 -06:00
Sky Young
dae4c318c2 Properly deserialize Block using fcoin 2019-07-24 12:56:36 -06:00
Sky Young
335bd996b5 Update package references 2018-05-15 14:52:30 -07:00
Chris Kleeschulte
c8e273aefe
Fixed tests so that Bitcore Blocks/Txs and Bcoin Blocks/Txs can be used
in tests and code.
2017-08-21 14:03:05 -04:00
Chris Kleeschulte
f537eb86b9
bcoin tx and blocks support. 2017-07-21 09:05:56 -04:00
Chris Kleeschulte
c41681d6c2
Default protocol and bitcore-lib updates
- Default protocol should be 70001 instead of 70000 since there really
was no protocol in the 70000 series.
2017-04-24 17:47:38 -04:00
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
Rob Riddle
d951cbb3ba Fix typos in docs 2015-10-22 18:52:49 +03:00
Jason Dreyzehner
e99803e634 bitcore -> bitcore-lib 2015-10-16 14:59:05 -04:00
Matt Bell
6180e12f9c Use varint instead of uint8 for bloom filter data length 2015-07-05 17:22:32 -07:00
Patrick Nagurny
d4958eb05f support adding custom p2p messages 2015-06-04 11:09:24 -04:00
Patrick Nagurny
98ad4d2dd4 make port always included in addr hash even if not specified 2015-04-29 13:24:21 -04:00
Manuel Araoz
ed0bcc962a small changes after code review 2015-04-23 16:09:56 -03:00
Manuel Araoz
c3ead97d64 fix integration tests for testnet 2015-04-20 16:24:17 -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
Esteban Ordano
aa0b0e2bc8 Merge pull request #59 from braydonf/bug/pool-peer-network
Pool Network to Peer
2015-03-30 14:28:41 -03:00
Braydon Fuller
b109ff5910 Restructured message commands to use options referenced in messages 2015-03-27 18:52:03 -04:00
Braydon Fuller
c60f17f1f7 Included pool.network option for Peers instantiated from Pool 2015-03-27 14:17:24 -04:00
Eric Martindale
438638c4ab Merge pull request #57 from braydonf/bug/double-disconnect
Patched double disconnect bug.
2015-03-26 14:27:04 -04:00
Eric Martindale
4e605c18a0 Merge pull request #54 from braydonf/docs/fixes
update docs
2015-03-26 14:08:20 -04:00
Braydon Fuller
f8578ff114 Patched double disconnect bug.
- Added a test that simulates a peer abruptly disconnecting with an error
- Put an additional condition to prevent disconnecting on an error if already disconnected
- Closes #56
2015-03-26 14:00:38 -04:00
Braydon Fuller
c555671bde fixed bug with incoming connections not having a port on addr 2015-03-23 15:10:14 -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
7cfe6d1865 added unit tests for buffers.skip 2015-03-17 15:11:16 -04:00
Braydon Fuller
c0e3bdb190 removed fromObject method that is nolonger needed 2015-03-16 18:53:14 -04:00
Braydon Fuller
16aa98924a fixed spelling 2015-03-16 15:48:43 -04:00
Braydon Fuller
664ceb2d30 improved peer jsdoc, fixed docs for messages, and switched to use svg for readme icon 2015-03-16 15:44:50 -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
42c829e49c added jsdocs for inventory 2015-03-16 10:53:32 -04:00
Braydon Fuller
f17bbf5d6f updated jsdocs for peer and pool 2015-03-16 10:29:51 -04:00