Braydon Fuller
641443f6dd
expose message construtors by name
2015-03-13 10:15:41 -04:00
Braydon Fuller
6461748cd5
make listening optional and fixed peer test
2015-03-12 18:52:31 -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
d63c1171db
added test for inventory fromBufferReader
2015-03-12 00:37:15 -04:00
Braydon Fuller
7e29af4542
added missing precondition and moved buffer.skip to new file
2015-03-12 00:18:09 -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
Braydon Fuller
0b20724288
Changed options for Pool
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
Kirill Fomichev
925dea7ad4
Fix filteradd in Message.COMMANDS
2015-03-04 17:29:37 +03:00
William Wolf
d6b89176f2
MerkleBlock Tests
2015-02-26 08:39:56 -08:00
William Wolf
b7473e7080
Have pool propagate merkleblock events
2015-02-23 08:58:06 -08:00
William Wolf
641dfe579d
Add MerkleBlock() Message
2015-02-20 13:50:15 -08:00
William Wolf
6f63e36eca
add forFilteredBlock() on Inventory, GetData, NotFound
2015-02-20 13:50:15 -08:00
Manuel Aráoz
88d3a5a351
Merge pull request #39 from throughnothing/filter-messages
...
Add FilterLoad, FilterAdd, and FilterClear Messages
2015-02-19 16:48:25 -03:00
William Wolf
0ac40a9c47
isUndefined() fix
2015-02-19 08:56:35 -08:00
William Wolf
e1f2fbb7ed
Small Pool.options defaults cleanup
2015-02-18 22:49:33 -08:00
Braydon Fuller
4781694038
Added jsdocs for options and changed size to maxSize
2015-02-18 19:06:04 -05:00
William Wolf
63ad4e5438
Propogate 'relay' from Pool() to its Peer()s
2015-02-18 13:04:30 -08: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 Aráoz
872dc52c63
Merge pull request #38 from throughnothing/peerconnect-event
...
Add 'peerconnect' event from Pool
2015-02-18 13:35:08 -03:00
Braydon Fuller
c07bc0461d
Changed discover option to dnsSeed for clarity and added comments to documentation for the options.
2015-02-18 09:15:44 -05:00
William Wolf
abbe63666f
Add FilterLoad, FilterAdd, and FilterClear Messages + BloomFilter
2015-02-16 18:15:42 -08:00
William Wolf
e0b58e25d6
Add 'peerconnect' event from Pool
2015-02-16 14:39:54 -08:00
Braydon Fuller
ae97e36ff0
Added configuration option to only connect to trusted peers.
2015-02-16 13:18:11 -05:00
William Wolf
730d08d24d
Fix pong type in Pool Events list?
2015-02-14 17:33:37 -08:00
William Wolf
146c9630ab
Propagate Peer 'error' event up from Pool
2015-02-14 12:17:36 -08:00
Manuel Araoz
b9c90613fa
remove lodash
2015-02-11 18:26:27 -03:00
Manuel Araoz
c62409c4bc
increase test coverage
2015-02-06 17:54:24 -03:00
Manuel Araoz
ee4ef8ebaf
all tests passing!
2015-02-06 16:41:05 -03:00
Manuel Araoz
a58d76c875
fix Header message
2015-02-06 15:58:16 -03:00
Manuel Araoz
13361ea210
add _checkFinished
2015-02-06 15:06:45 -03:00
Manuel Araoz
7119fad398
fix ipv4/ipv6 address parsing and writing
2015-02-06 13:29:16 -03:00
Manuel Araoz
2489750913
complete Version message
2015-02-06 12:44:23 -03:00
Manuel Araoz
24b02ccaa6
fix #1018
2015-02-06 12:32:52 -03:00
Manuel Araoz
c8674a8633
working on fixing Version
2015-02-04 17:42:03 -03:00
Manuel Araoz
e5fb2bba31
add data and tests for getheaders
2015-02-02 18:23:26 -03:00
Manuel Aráoz
e4741dc96e
Merge pull request #24 from maraoz/add/notfound
...
Add notfound message
2015-02-02 18:23:25 -03:00
Manuel Araoz
cc7b58369b
add unit tests for NotFound
2015-02-02 16:18:10 -03:00
Manuel Araoz
087c57e077
add notfound message
2015-02-02 15:56:32 -03:00
Esteban Ordano
3fa45d31df
Merge pull request #22 from maraoz/improve/p2p
...
add bitcoind integration tests and general refactor
2015-02-02 15:42:01 -03:00
David
80ea02cc9b
Fixed typo.
2015-02-01 20:47:25 -08:00
Manuel Araoz
98990dbc82
new bitcoind integration tests
2015-01-30 16:37:14 -03:00
Manuel Araoz
cdd34bf8df
add tests for more messages
2015-01-28 17:50:14 -03:00
Manuel Araoz
eaca92b1c6
refactor message#fromBuffer()
2015-01-27 16:29:34 -03:00
Esteban Ordano
4f9c174feb
Add @desc tag to avoid warning
2015-01-20 13:01:29 -03:00
Esteban Ordano
b47526fb42
Use the new error building system
2015-01-20 11:17:29 -03:00
Esteban Ordano
74b7571517
Update version
2015-01-20 11:08:16 -03:00
Esteban Ordano
333fb4f787
Improved jsdocs and documentation
2015-01-20 11:01:00 -03:00
Esteban Ordano
6fc5e75868
Change from bitcore-base to bitcore
2015-01-15 18:31:42 -05:00
Esteban Ordano
ff3963b410
Move to gulp-bitcore
2015-01-15 18:30:06 -05:00
Esteban Ordano
35bb5d1253
fix jsdoc on messages.js
2015-01-15 18:30:06 -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
Elichai Turkel
706dedeabb
Added mempool request
...
I added `GetMempool` function that sends an 'mempool' request.
the answer will come in 'inv' message.
2015-01-15 16:55:13 -05:00
Esteban Ordano
ab044a989e
Drop all rpc code/docs
2015-01-15 16:55:02 -05:00
Braydon Fuller
f2017629b7
Export messages so that they can be extended from another module.
2015-01-15 16:54:43 -05:00
Braydon Fuller
91309b151e
Fix formatting issue with examples
2015-01-15 16:52:43 -05:00
Yemel Jardi
815499f020
RPC: Refactor, documentation and tests
2015-01-15 16:52:23 -05:00
Yemel Jardi
b4560914e5
include old files
2015-01-15 16:52:15 -05:00
Esteban Ordano
9aafef0987
Remove globals
2015-01-15 16:51:04 -05:00
Braydon Fuller
6325feda49
Transport/Pool: Mark internal functions
2015-01-15 16:50:50 -05:00
Braydon Fuller
bb7599d676
Transport/Pool: Added tests to check that new addrs are added
2015-01-15 16:50:44 -05:00
Braydon Fuller
f370e4c4f1
Transport/Pool: Use sinon for tests.
2015-01-15 16:50:36 -05:00
Braydon Fuller
1fc33d9a22
Transport: Added a peer pool to maintain a set of connected peers
2015-01-15 16:50:30 -05:00
Esteban Ordano
559a54584a
Hotfix: Remove console.log
2015-01-15 16:50:17 -05:00
Yemel Jardi
d774b520a6
Improving code thanks to jshint
2015-01-15 16:49:51 -05:00
Yemel Jardi
9591460dd3
Replace buffertools
2015-01-15 16:49:45 -05:00
Yemel Jardi
b84db04f68
Add developer guide section
2015-01-15 16:49:21 -05:00
Yemel Jardi
579c6ee301
Add tests
2015-01-15 16:49:16 -05:00
Yemel Jardi
7dc2ad5b33
Add missing serializations
2015-01-15 16:49:10 -05:00
Yemel Jardi
4a429ae889
Add missing argument
2015-01-15 16:49:04 -05:00
Yemel Jardi
f6c9bfd5f5
Remove old tests
2015-01-15 16:48:46 -05:00
Yemel Jardi
2ef9c44516
Remove old files
2015-01-15 16:48:38 -05:00
Yemel Jardi
9fb27baa62
Refactor and documentation
2015-01-15 16:48:31 -05:00
Yemel Jardi
8ee827394e
Add inheritance to messages and expose them as a module
2015-01-15 16:48:24 -05:00
Yemel Jardi
89ecfb3cf0
Add messages serialization
2015-01-15 16:48:18 -05:00
Yemel Jardi
79ba30196a
Progress on sending and receiving messages
2015-01-15 16:48:09 -05:00
Yemel Jardi
de752377db
Add transport/peermanager class
2015-01-15 16:48:00 -05:00
Yemel Jardi
26a00e0887
Add transport/peer class
2015-01-15 16:47:51 -05:00
Yemel Jardi
738b56f5a5
Add transport/connection class
2015-01-15 16:47:40 -05:00