Christopher Jeffrey
|
d577b7cbd3
|
pool: pass peer in through error events.
|
2014-06-07 03:39:05 -05:00 |
|
Christopher Jeffrey
|
005c11e967
|
parser: fix version parsing. check user agent in tests.
|
2014-06-06 15:47:29 -05:00 |
|
Christopher Jeffrey
|
ac8905bf3d
|
fix: wallet.sign return value.
|
2014-06-06 14:54:02 -05:00 |
|
Christopher Jeffrey
|
ac60920f98
|
fix: keep track of the input index better for subscript hashing.
|
2014-06-06 12:29:36 -05:00 |
|
Christopher Jeffrey
|
11b56e32d7
|
fix: do not throw on destroyed peers.
|
2014-06-06 06:37:47 -05:00 |
|
Christopher Jeffrey
|
28abd09845
|
wallet: allow inputs and offset to be passed into wallet.sign.
|
2014-06-06 03:10:21 -05:00 |
|
Christopher Jeffrey
|
5a67c56b00
|
Merge pull request #23 from chjj/block-size
parser: fix minimum block size.
|
2014-06-03 09:56:56 -05:00 |
|
Christopher Jeffrey
|
4dd8a54501
|
framer: another style fix.
|
2014-06-03 09:46:19 -05:00 |
|
Christopher Jeffrey
|
841bf86d7d
|
block: fix for style conventions.
|
2014-06-03 09:45:53 -05:00 |
|
Christopher Jeffrey
|
566b2e9916
|
parser: fix minimum block size.
|
2014-06-02 03:14:44 -05:00 |
|
Christopher Jeffrey
|
8d6c438e3d
|
pool: stop throwing uncatchable errors on parser errors.
|
2014-06-02 02:29:15 -05:00 |
|
Christopher Jeffrey
|
2b88192562
|
chain: fix fill percent.
|
2014-05-26 19:19:14 -05:00 |
|
Fedor Indutny
|
013a85c6a5
|
Merge pull request #16 from chjj/version-packet
Version packet
|
2014-05-26 22:12:36 +04:00 |
|
Christopher Jeffrey
|
1b88b355ac
|
chain: add a cacheLimit option to chain.
|
2014-05-26 12:53:47 -05:00 |
|
Christopher Jeffrey
|
7e38e4de7c
|
pool: change pool.options.satoshi to pool.options.relay.
|
2014-05-26 12:43:41 -05:00 |
|
Christopher Jeffrey
|
a3b923ae76
|
peer: have updateWatch getblocks instead of filterload for the satoshi option.
|
2014-05-26 05:12:56 -05:00 |
|
Christopher Jeffrey
|
024350dbe4
|
peer/pool: improve handleInv. improve addPeer.
|
2014-05-26 04:03:23 -05:00 |
|
Christopher Jeffrey
|
6d2c1bd9f1
|
framer: fix undefined var typo.
|
2014-05-25 08:02:33 -05:00 |
|
Christopher Jeffrey
|
8546cc7e33
|
block: fix timestamp check...again.
|
2014-05-24 18:06:52 -05:00 |
|
Christopher Jeffrey
|
1052b7361c
|
block: fix timestamp check in checkBlock.
|
2014-05-24 18:05:31 -05:00 |
|
Christopher Jeffrey
|
c1fbab35e1
|
block: remove some unused code from checkBlock.
|
2014-05-24 13:44:10 -05:00 |
|
Christopher Jeffrey
|
9dc0063ea9
|
test/parser: add version test for height and relay / fix typo.
|
2014-05-24 02:16:59 -05:00 |
|
Christopher Jeffrey
|
24d9b2b2d8
|
pool: allow sending filterload to peers without an id to add to the bloom filter.
|
2014-05-24 02:16:59 -05:00 |
|
Christopher Jeffrey
|
a5f20114e8
|
framer: version packet options, relay and height.
|
2014-05-24 02:16:59 -05:00 |
|
Christopher Jeffrey
|
2d7599d2d3
|
block: use utils.dsha256 instead of hash.js for merkle tree building.
|
2014-05-24 01:19:32 -05:00 |
|
Christopher Jeffrey
|
60a9e556f8
|
framer: frame regular blocks with transactions correctly.
|
2014-05-23 23:27:54 -05:00 |
|
Christopher Jeffrey
|
e3e324441b
|
block: improve performance of duplicate tx check.
|
2014-05-23 23:13:16 -05:00 |
|
Christopher Jeffrey
|
44774e7c6b
|
block: follow the behavior of bitcoind's CheckBlock().
|
2014-05-23 23:12:46 -05:00 |
|
Christopher Jeffrey
|
e66f2f50bf
|
block: build merkleTree to verify merkleRoot on regular blocks.
|
2014-05-23 23:08:59 -05:00 |
|
Christopher Jeffrey
|
7de6964628
|
allow usage of the original non-spv pre BIP-37 satoshi protocol.
|
2014-05-23 10:56:02 -05:00 |
|
Christopher Jeffrey
|
f4dbc0ee33
|
parser: parse transactions in regular blocks.
|
2014-05-23 10:05:46 -05:00 |
|
Christopher Jeffrey
|
faca3454b2
|
framer: fix array length, assuming user-agent is below 0xfd in length.
Signed-off-by: Fedor Indutny <fedor@indutny.com>
|
2014-05-23 14:39:51 +04:00 |
|
Christopher Jeffrey
|
9981835df4
|
framer: includer user-agent in version packet.
Signed-off-by: Fedor Indutny <fedor@indutny.com>
|
2014-05-23 14:35:22 +04:00 |
|
Christopher Jeffrey
|
793fed1974
|
framer: refactor.
Signed-off-by: Fedor Indutny <fedor@indutny.com>
|
2014-05-20 13:36:20 +04:00 |
|
Christopher Jeffrey
|
44fab2b58a
|
peer: handle address timestamp better.
Signed-off-by: Fedor Indutny <fedor@indutny.com>
|
2014-05-20 13:36:20 +04:00 |
|
Christopher Jeffrey
|
a0c2f66169
|
peer: fix handleGetAddr. fix addr test.
Signed-off-by: Fedor Indutny <fedor@indutny.com>
|
2014-05-20 13:36:20 +04:00 |
|
Christopher Jeffrey
|
0b188640ec
|
util: use regular loop constructs for u64 writes.
Signed-off-by: Fedor Indutny <fedor@indutny.com>
|
2014-05-20 13:36:20 +04:00 |
|
Christopher Jeffrey
|
2aabef9a6d
|
getaddr: fix framer. add addr to protocol-test.
Signed-off-by: Fedor Indutny <fedor@indutny.com>
|
2014-05-20 13:36:19 +04:00 |
|
Christopher Jeffrey
|
615292de46
|
util: style changes.
Signed-off-by: Fedor Indutny <fedor@indutny.com>
|
2014-05-20 13:36:19 +04:00 |
|
Christopher Jeffrey
|
84b53a049d
|
util: perhaps a more clever way of U64 writes using bn.js.
Signed-off-by: Fedor Indutny <fedor@indutny.com>
|
2014-05-20 13:36:19 +04:00 |
|
Christopher Jeffrey
|
ca2609b7e7
|
util: bignum - use toArray instead of +toString.
Signed-off-by: Fedor Indutny <fedor@indutny.com>
|
2014-05-20 13:36:19 +04:00 |
|
Christopher Jeffrey
|
d1853b2e52
|
util: simplify 64bit writes using bn.js.
Signed-off-by: Fedor Indutny <fedor@indutny.com>
|
2014-05-20 13:36:19 +04:00 |
|
Christopher Jeffrey
|
5ee3fbcf72
|
util: properly utilize bn.js.
Signed-off-by: Fedor Indutny <fedor@indutny.com>
|
2014-05-20 13:36:19 +04:00 |
|
Christopher Jeffrey
|
9bec16ca49
|
peer: minor style fix.
Signed-off-by: Fedor Indutny <fedor@indutny.com>
|
2014-05-20 13:36:19 +04:00 |
|
Christopher Jeffrey
|
29746b5164
|
utils: add simple utils.isIP in place of net.isIP.
Signed-off-by: Fedor Indutny <fedor@indutny.com>
|
2014-05-20 13:36:18 +04:00 |
|
Christopher Jeffrey
|
2edfdd8b36
|
peer: style fixes.
Signed-off-by: Fedor Indutny <fedor@indutny.com>
|
2014-05-20 13:36:18 +04:00 |
|
Christopher Jeffrey
|
5c5762a000
|
framer: fix 32 and 64 bit support for varint().
Signed-off-by: Fedor Indutny <fedor@indutny.com>
|
2014-05-20 13:36:18 +04:00 |
|
Christopher Jeffrey
|
e89eb925e6
|
framer: use varint function for addr packet.
Signed-off-by: Fedor Indutny <fedor@indutny.com>
|
2014-05-20 13:36:18 +04:00 |
|
Christopher Jeffrey
|
6e8b03df96
|
peer: keep ips as arrays.
Signed-off-by: Fedor Indutny <fedor@indutny.com>
|
2014-05-20 13:36:18 +04:00 |
|
Christopher Jeffrey
|
aa383b984e
|
peer: take into account omitted zeros for ipv6 addresses.
Signed-off-by: Fedor Indutny <fedor@indutny.com>
|
2014-05-20 13:36:18 +04:00 |
|