Commit Graph

164 Commits

Author SHA1 Message Date
Christopher Jeffrey
4d2d9b328c verify error refactor. 2016-03-30 16:21:56 -07:00
Christopher Jeffrey
126fb72644 fixes. refactor. 2016-03-29 18:08:33 -07:00
Christopher Jeffrey
caf52c0579 refactor. close methods. 2016-03-29 13:25:03 -07:00
Christopher Jeffrey
ea4d0dee03 opcodes. 2016-03-28 19:45:22 -07:00
Christopher Jeffrey
a598a4850c no strings in scripting. 2016-03-28 16:50:59 -07:00
Christopher Jeffrey
af6ac736bf consistent naming. 2016-03-28 13:22:31 -07:00
Christopher Jeffrey
37c488c802 txdb and mempool work. 2016-03-26 01:29:04 -07:00
Christopher Jeffrey
1db0954c83 misc. 2016-03-24 03:45:00 -07:00
Christopher Jeffrey
3efdc904e7 refactor. tests. 2016-03-22 19:52:33 -07:00
Christopher Jeffrey
17df9b41ce more mempool stuff. 2016-03-22 17:36:58 -07:00
Christopher Jeffrey
93efe376a6 refactor. isSigned. 2016-03-21 02:16:56 -07:00
Christopher Jeffrey
5153e0e1f0 cleanup. 2016-03-19 10:03:55 -07:00
Christopher Jeffrey
5fb16d29e6 refactor. 2016-03-15 13:31:54 -07:00
Christopher Jeffrey
94b20355ea more framing and parsing. 2016-03-15 02:36:55 -07:00
Christopher Jeffrey
0f296394a5 add witness object. 2016-03-14 20:33:15 -07:00
Christopher Jeffrey
b528965912 new scripting system. 2016-03-14 19:45:11 -07:00
Christopher Jeffrey
adeee1eb67 checksequenceverify. scripting improvements. 2016-03-07 23:08:47 -08:00
Christopher Jeffrey
51b2e1f9a9 improve sync. misc fixes. 2016-03-06 01:41:07 -08:00
Christopher Jeffrey
4df5b305ea walletdb and txpool. 2016-03-03 18:57:02 -08:00
Christopher Jeffrey
e31e485553 walletdb. tests. refactor. 2016-03-02 02:36:14 -08:00
Christopher Jeffrey
8f77cf7173 all tests passing. 2016-03-01 20:15:57 -08:00
Christopher Jeffrey
b1232593d8 txdb. 2016-03-01 19:40:18 -08:00
Christopher Jeffrey
2677b0eecd wallet refactoring. 2016-02-28 22:44:02 -08:00
Christopher Jeffrey
3fcc7d5b07 segwit wallet support. segwit chain improvements. 2016-02-28 04:12:51 -08:00
Christopher Jeffrey
8467f339c1 segwit. misc. 2016-02-26 18:06:08 -08:00
Christopher Jeffrey
4c653683b7 segregated - goddamn - witness... and docs update. 2016-02-26 03:54:26 -08:00
Christopher Jeffrey
afd6ee15c9 getblocks. parser/framer fixes. add profiler. 2016-02-24 23:45:45 -08:00
Christopher Jeffrey
c5786e4932 add new block objects. 2016-02-24 06:45:47 -08:00
Christopher Jeffrey
69038ac55e add mutable tx. 2016-02-24 05:48:52 -08:00
Christopher Jeffrey
27f6e6e678 refactor coin selection. 2016-02-24 04:05:16 -08:00
Christopher Jeffrey
6ad3540664 refactor addInput. 2016-02-24 03:41:06 -08:00
Christopher Jeffrey
30db808930 refactor keypair and hd. 2016-02-23 19:08:42 -08:00
Christopher Jeffrey
5773130b67 fix some tests. 2016-02-23 05:01:58 -08:00
Christopher Jeffrey
e5de8db660 more json improvements. 2016-02-23 02:27:10 -08:00
Christopher Jeffrey
b473ca7d18 coin method for framer and parser. 2016-02-23 00:14:09 -08:00
Christopher Jeffrey
4cc5d73959 use zero for op_0. fix signed ints. 2016-02-22 21:59:52 -08:00
Christopher Jeffrey
78e9be11c3 switch to buffers. 2016-02-22 20:37:15 -08:00
Christopher Jeffrey
23d3343994 fix test. 2016-02-15 15:41:35 -08:00
Christopher Jeffrey
9d727cebae wallet tests. fixes. 2016-02-12 22:32:54 -08:00
Christopher Jeffrey
88c131c7b3 fix pool. hd improvements. 2016-02-12 17:57:21 -08:00
Christopher Jeffrey
bfd570e204 coin selection. misc. 2016-02-12 04:24:35 -08:00
Christopher Jeffrey
158a35881c add address.getType. 2016-02-11 02:00:54 -08:00
Christopher Jeffrey
4a6c73fc8e refactor signing. 2016-02-11 01:29:35 -08:00
Christopher Jeffrey
501abbab45 another wallet rewrite. 2016-02-10 21:06:25 -08:00
Christopher Jeffrey
6cc4c866dc wallet refactor. fixes. 2016-02-10 16:42:02 -08:00
Christopher Jeffrey
84551e17e2 paths. scanning. unspents. 2016-02-05 03:44:42 -08:00
Christopher Jeffrey
b835fff86c hd keys. address pruning. txpool balance. 2016-02-04 18:58:56 -08:00
Christopher Jeffrey
eacd1e2ece bip45 wallet 2016-02-03 19:46:02 -08:00
Christopher Jeffrey
2deccde29e wallet work. consistency. 2016-02-02 16:09:48 -08:00
Christopher Jeffrey
156601e40a createTX. hd fixes. 2016-02-02 02:50:36 -08:00
Christopher Jeffrey
999cfefe54 more pool work. wallet.fill(). 2016-02-01 10:54:52 -08:00
Christopher Jeffrey
9011fcc25e stricter script standards. work on tx. 2016-01-18 01:52:18 -08:00
Christopher Jeffrey
3745577837 standard opcodes. remove tx methods. 2016-01-17 15:52:09 -08:00
Christopher Jeffrey
4f8d24ba36 more int and packet work. 2016-01-13 18:31:07 -08:00
Christopher Jeffrey
e95c1426d3 tests 2016-01-13 04:23:10 -08:00
Christopher Jeffrey
442c984c12 improve p2sh building. change wallet key/redeem methods. 2016-01-10 21:43:52 -08:00
Christopher Jeffrey
9459e278ca fix protocol test. 2016-01-10 04:59:26 -08:00
Christopher Jeffrey
eb1a3ea6d2 transaction improvements. 2016-01-10 04:58:03 -08:00
Christopher Jeffrey
6da3fbac3a add utils.hash test. 2016-01-04 16:03:04 -08:00
Christopher Jeffrey
d32a951f37 fix isMultisig: compare to n value. 2015-12-23 11:45:43 -08:00
Christopher Jeffrey
916d71481b test: check for fee. 2015-12-23 02:40:56 -08:00
Christopher Jeffrey
33a60e59f2 fix test involving fee and dust. 2015-12-23 02:37:05 -08:00
Christopher Jeffrey
a7ea69f48a improve utils: primarily toBTC and fromBTC. 2015-12-21 15:20:01 -08:00
Christopher Jeffrey
0c8168c697 rename colored coin check. all input script tests. 2015-12-17 16:06:08 -08:00
Christopher Jeffrey
3e608c2cc6 script and standard transaction types. prefixes. 2015-12-17 16:06:08 -08:00
Christopher Jeffrey
d7eea0941e add less-than-dust to fee. recalculate fee after input scripts are templated. 2015-12-10 13:52:34 -08:00
Christopher Jeffrey
3dec18c2c7 wallet/tx/script: n limit. refactor multisig options. 2015-12-10 02:25:44 -08:00
Christopher Jeffrey
72d9a93773 fix and test if statements. fix comparisons. 2015-12-09 14:35:23 -08:00
Christopher Jeffrey
22e092d6b8 fix and test hd keys. 2015-12-08 16:36:47 -08:00
Christopher Jeffrey
e4cfa878f1 multisig options. 2015-12-08 15:02:32 -08:00
Christopher Jeffrey
5f8ad78e4d have tx.verify handle p2sh correctly. 2015-12-08 14:54:21 -08:00
Christopher Jeffrey
fd7d20be9c enforce strict ordering with checkmultisig. 2015-12-08 11:46:14 -08:00
Christopher Jeffrey
a770e2bd7b add p2sh multisig test. 2015-12-07 19:18:52 -08:00
Christopher Jeffrey
7016991366 order keys and signatures for multisig correctly. 2015-12-07 19:18:37 -08:00
Christopher Jeffrey
58d8881e46 add hd tests. 2015-12-07 16:17:09 -08:00
Christopher Jeffrey
1804acc77c tests passing. 2015-12-07 14:02:25 -08:00
Stanislas Marion
b76f33047e script: .isScripthash(s)/.isNullData(s) 2014-12-19 08:04:07 +07:00
Stanislas Marion
70608ae2a3 parser: put the exact raw data in tx._raw 2014-11-25 18:44:45 +03:00
Stanislas Marion
7655ad12c7 script: encode/decode op1-16 as single numbers
fix #33
2014-11-17 15:06:37 +03: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
9dc0063ea9 test/parser: add version test for height and relay / fix typo. 2014-05-24 02:16:59 -05: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
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
db69c882f2 block: add block tests. frame correct version for blocks.
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-19 00:21:41 +04:00
Christopher Jeffrey
e04931026c block: add block subtype - block or merkleblock.
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-18 21:00:56 +04:00
Fedor Indutny
7e72a4d79d utils: toBTC() 2014-05-15 02:59:07 +04:00
Fedor Indutny
ee9b9cf0e2 wallet: asyncify .fill() 2014-05-11 11:47:00 +04:00
Fedor Indutny
3ef7008a32 wallet: make .fill() throw 2014-05-11 02:41:00 +04:00
Fedor Indutny
89877db9ba test: improve wallet test 2014-05-11 01:51:20 +04:00
Fedor Indutny
2c36c8692a wallet: .fill() 2014-05-11 01:43:20 +04:00
Fedor Indutny
d49b04158f block: validate partial merkle tree 2014-05-10 19:45:03 +04:00
Fedor Indutny
50ed590c30 tx: .inputAddrs() 2014-05-10 13:04:22 +04:00
Fedor Indutny
2e3fb9a7a3 tx-pool: verify all signatures 2014-05-10 12:28:49 +04:00
Fedor Indutny
86088f8ae9 tx-pool: ignore invalid orphans 2014-05-10 11:41:27 +04:00
Fedor Indutny
2ee4c7cd3a tx-pool: save spending TXs 2014-05-09 21:30:55 +04:00
Fedor Indutny
cf2e0042ff tx: .maxSize() method 2014-05-09 15:51:58 +04:00
Fedor Indutny
26516085f2 lib: update bn.js and elliptic 2014-05-09 03:53:57 +04:00
Fedor Indutny
688b16eb98 wallet: preliminary storage support 2014-05-08 14:09:11 +04:00