Commit Graph

235 Commits

Author SHA1 Message Date
Stanislas Marion
70608ae2a3 parser: put the exact raw data in tx._raw 2014-11-25 18:44:45 +03:00
Fedor Indutny
52e2cf6dbd 0.14.3 2014-11-17 15:06:44 +03:00
Stanislas Marion
7655ad12c7 script: encode/decode op1-16 as single numbers
fix #33
2014-11-17 15:06:37 +03:00
Fedor Indutny
64e15c8f82 Merge pull request #31 from greggzigler/master
example usage missing require, priv key creation
2014-11-11 09:27:08 +03:00
Gregg Zigler
b94b15aba6 example usage missing require, priv key creation
a few changes that i needed to make to the example to make it run for me
2014-11-05 10:46:56 -08:00
Christopher Jeffrey
4e7dbae829 fix: minor fixes to block framer and block. 2014-06-24 01:08:44 -05:00
Christopher Jeffrey
73ea21a903 minor: style - move block json functions to bottom of the file. 2014-06-24 00:59:39 -05:00
Christopher Jeffrey
5e3e72ba4c minor: more style concerns. 2014-06-24 00:57:46 -05:00
Christopher Jeffrey
6072fe7afd minor: remove commented code. style concerns. 2014-06-24 00:45:18 -05:00
Christopher Jeffrey
c6bafbcb48 fix: ensure user agent is less than 0xfd in length. we can assume the varint is 1 byte. 2014-06-24 00:43:37 -05:00
Christopher Jeffrey
cd58baed95 v0.14.2 2014-06-16 22:48:22 -05:00
Christopher Jeffrey
6a03b30ddf fix: allow ownOutputs as orphans - fixes failing test. see #27. 2014-06-16 22:46:58 -05:00
Christopher Jeffrey
1e6de0e5e1 Merge pull request #27 from indutny/tx-pool-fix
fix tx-pool unspent output handling. fixes #26.
2014-06-16 22:14:10 -05:00
Christopher Jeffrey
2e14fe1780 fix tx-pool unspent output handling. fixes #26. 2014-06-16 18:55:04 -05:00
Christopher Jeffrey
3a7b20ddee minor: if statement style. 2014-06-12 17:09:57 -05:00
Christopher Jeffrey
9442920e73 wallet: improve ownInput and ownOutput. 2014-06-12 02:55:53 -05:00
Christopher Jeffrey
dbd3b5025a tx-pool: handle noWrite better. update tx.block along with tx.ts. 2014-06-11 18:45:34 -05:00
Christopher Jeffrey
96e1cbb0e1 pool: emit peer in tx broadcast. 2014-06-11 18:43:50 -05:00
Christopher Jeffrey
5d0928280b v0.14.1 2014-06-09 16:17:30 -05:00
Christopher Jeffrey
2697d37753 Merge pull request #25 from indutny/peer-events
Peer events
2014-06-07 03:48:43 -05:00
Christopher Jeffrey
9363aff634 pool: pass peer in through error events...again. 2014-06-07 03:40:42 -05:00
Christopher Jeffrey
d577b7cbd3 pool: pass peer in through error events. 2014-06-07 03:39:05 -05:00
Christopher Jeffrey
7b928f079c utils: improve nextTick. 2014-06-06 16:23:26 -05:00
Christopher Jeffrey
eadb7a50c7 pool: add version and peer events for peers. 2014-06-06 16:20:50 -05:00
Christopher Jeffrey
005c11e967 parser: fix version parsing. check user agent in tests. 2014-06-06 15:47:29 -05:00
Christopher Jeffrey
3d3e61dc6e test: add test for signing multiple inputs with different keys. 2014-06-06 15:29:34 -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
24ccb7926b v0.14.0 2014-06-05 01:30:18 -05:00
Christopher Jeffrey
246b99e187 readme: minor heading fix. 2014-06-03 10:18:44 -05:00
Christopher Jeffrey
808e5fe4e2 readme: example and api docs. 2014-06-03 10:11:22 -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
Fedor Indutny
fbb3660361 Merge pull request #22 from chjj/parser-errors
pool: stop throwing uncatchable errors on parser errors.
2014-06-02 22:22:42 -04: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
Fedor Indutny
2e0660f449 Merge pull request #21 from chjj/fix-percent
chain: fix fill percent.
2014-05-27 10:08:51 +04: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
Fedor Indutny
d23cca1b4a Merge pull request #19 from chjj/satoshi
Allow optional pre BIP-37 behavior (the original satoshi protocol)
2014-05-26 22:12:21 +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
Fedor Indutny
782779dcf4 Merge pull request #20 from chjj/readme
readme: improve readme.
2014-05-26 19:08:33 +04:00
Christopher Jeffrey
91fe15573c readme: improve readme. 2014-05-26 09:59:58 -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