Commit Graph

292 Commits

Author SHA1 Message Date
Christopher Jeffrey
c1d6896797
rpc: minor fixes. 2016-12-14 04:20:05 -08:00
Christopher Jeffrey
eef018004f
http/rpc: mining. logs and error handling. 2016-12-13 21:06:37 -08:00
Christopher Jeffrey
33a8e1e511
block/tx: sigops cost/size/weight. 2016-12-13 16:52:31 -08:00
Christopher Jeffrey
df4b07304b
rpc: fix getblocktemplate. 2016-12-12 05:11:19 -08:00
Christopher Jeffrey
ed4fb0f92c
rpc: minor. 2016-12-11 08:23:03 -08:00
Christopher Jeffrey
fc6798d3f0
http: rewrite request module. 2016-12-11 08:18:11 -08:00
Christopher Jeffrey
48fc7549ce
tx/wallet: misc fixes. 2016-12-11 06:14:32 -08:00
Christopher Jeffrey
59645ac3ec
refactor: remove extra properties from tx and block. 2016-12-11 05:35:31 -08:00
Christopher Jeffrey
b77aa9240e
coins: refactor and comments. 2016-12-10 20:43:49 -08:00
Christopher Jeffrey
12b3274d33
refactor: pass coin viewpoints for every function requiring inputs. 2016-12-09 07:15:35 -08:00
Christopher Jeffrey
dd0ebe5320
rpc: fix getblocktemplate. 2016-12-07 22:39:30 -08:00
Christopher Jeffrey
9215e4fe48
address: better network validation. 2016-12-06 14:24:05 -08:00
Christopher Jeffrey
d2e9843757
http: fix addr array. 2016-12-06 00:04:04 -08:00
Christopher Jeffrey
4e4dbfba49
server/wallet/mempool: get tests passing. 2016-12-05 21:02:08 -08:00
Christopher Jeffrey
5091f69038
wallet/http: send address validation. 2016-12-05 17:24:18 -08:00
Christopher Jeffrey
a95aba92fb
serialization: less polymorphism. 2016-12-04 00:54:50 -08:00
Christopher Jeffrey
81e71e7922
wallet: drop wallet getters. 2016-11-30 23:12:01 -08:00
Christopher Jeffrey
ded3bc34f3
refactor: start moving away from getters. 2016-11-30 21:31:52 -08:00
Christopher Jeffrey
311b9841fb
chain: more refactoring. 2016-11-30 16:02:56 -08:00
Christopher Jeffrey
0f529d5f8b
chain/block: reorder some consensus checks. 2016-11-29 20:36:23 -08:00
Christopher Jeffrey
01e7fd3902
pool: rename outbound/inbound. remove co.wait() in scheduleRequests. 2016-11-28 20:40:09 -08:00
Christopher Jeffrey
507fd89948
timedata: move time to network object. 2016-11-28 16:58:48 -08:00
Christopher Jeffrey
cb59675b06
refactor: rename buffer reader/writer vars. 2016-11-26 10:56:50 -08:00
Christopher Jeffrey
c0fd199f2d
chain: refactor and optimize. 2016-11-25 19:34:25 -08:00
Christopher Jeffrey
024ff3e211
http: http and rpc fixes. 2016-11-25 14:19:11 -08:00
Christopher Jeffrey
390f7d8ddb
minerblock: commit block once mined. 2016-11-23 00:56:56 -08:00
Christopher Jeffrey
6c61ad976d
walletdb: add experimental client. 2016-11-19 22:55:00 -08:00
Christopher Jeffrey
d75b5d80cc
walletdb: nodeclient work. 2016-11-19 21:40:31 -08:00
Christopher Jeffrey
1827b945dd
walletdb: new client api. 2016-11-19 18:26:27 -08:00
Christopher Jeffrey
b754973511
utils/btc: rename. 2016-11-19 10:45:31 -08:00
Christopher Jeffrey
ae093d2242
amount/utils: drop utils.btc and utils.satoshi. 2016-11-19 09:59:47 -08:00
Christopher Jeffrey
7f3c265085
net: rename timedata. 2016-11-19 06:53:59 -08:00
Christopher Jeffrey
0631148705
modules: more refactoring. 2016-11-19 05:29:29 -08:00
Christopher Jeffrey
091ddf2029
http: minor. 2016-11-18 23:39:52 -08:00
Christopher Jeffrey
67a00bfe50
modules: remove all conditional requires. see #105. 2016-11-18 23:05:04 -08:00
Christopher Jeffrey
9ae91af2a8
rpc: refactor. 2016-11-18 15:00:56 -08:00
Christopher Jeffrey
bc00697adb
mempool/miner: mining and mempool refactor. 2016-11-18 06:35:20 -08:00
Christopher Jeffrey
39aee21030
tx: refactor network handling in json serialization. 2016-11-17 04:05:32 -08:00
Christopher Jeffrey
501eef858d
http: refactor how height/hash are handled. 2016-11-16 12:08:45 -08:00
Christopher Jeffrey
51e271fe0d
http: allow hash/height mixup. 2016-11-16 10:03:03 -08:00
Christopher Jeffrey
f6c09af49f
http: expose chain resetting. 2016-11-16 09:56:52 -08:00
Christopher Jeffrey
c011e94cdb
http: allow rescanning from start block. 2016-11-16 09:43:54 -08:00
Christopher Jeffrey
f0fb7c4db3
http: do not allow dumping of master key without admin privileges. 2016-11-16 09:42:14 -08:00
Christopher Jeffrey
3beae441bb
http: refactor cli usage of http clients. 2016-11-13 11:30:00 -08:00
Christopher Jeffrey
ef8b205a38
rpc: improve perf for getchaintips. 2016-11-11 14:02:22 -08:00
Christopher Jeffrey
465a76a485
wallet: minor. 2016-11-09 18:25:36 -08:00
Christopher Jeffrey
5069ec1bfb
walletdb: list blocks. 2016-11-09 18:25:36 -08:00
Christopher Jeffrey
86e1e35f9a
txdb: add block entries. 2016-11-09 18:25:35 -08:00
Christopher Jeffrey
aa79d92a83
http: more wallet api calls. 2016-11-09 18:25:33 -08:00
Christopher Jeffrey
4ca5ad3824
http: fix get wallet tx for client. 2016-11-09 18:25:33 -08:00
Christopher Jeffrey
60575c0ea0
walletdb: cleanup. 2016-11-09 18:25:32 -08:00
Christopher Jeffrey
3a89e627b8
walletdb: sync state and utxo handling refactor. 2016-11-09 18:25:32 -08:00
Christopher Jeffrey
407f416f22
rpc: update supermajority softfork object. 2016-11-03 15:41:47 -07:00
Christopher Jeffrey
ea756026e7
http: resolve promises for setloglevel and restartsync. 2016-10-26 10:17:43 -07:00
Christopher Jeffrey
d413afbbf5
rpc: add setloglevel and restartsync. 2016-10-26 09:55:39 -07:00
Christopher Jeffrey
ae2573bc57
http: require api key for new websocket calls. 2016-10-25 09:16:26 -07:00
Christopher Jeffrey
9988123b61
http: improve info call. 2016-10-25 08:40:08 -07:00
Christopher Jeffrey
322e74cbb7
http: censor passphrase from logs. 2016-10-25 08:11:22 -07:00
Christopher Jeffrey
c9b038d4e0
scanning: more bloom filter things. 2016-10-24 19:16:10 -07:00
Christopher Jeffrey
c9b84252af
scanning: only add matching txids for outputs. 2016-10-24 18:55:34 -07:00
Christopher Jeffrey
5a4ebccfd4
walletdb: use bloom filter for rescanning. 2016-10-24 18:43:39 -07:00
Christopher Jeffrey
3bffbed25a
global: lint. 2016-10-24 17:58:23 -07:00
Christopher Jeffrey
926d9cb5aa
chaindb: store network in options. 2016-10-24 16:21:24 -07:00
Christopher Jeffrey
3b333c07cd
walletdb: start separating out walletdb. 2016-10-24 15:32:22 -07:00
Christopher Jeffrey
4128ddba36
wallet: more chain atomicity. 2016-10-22 13:34:28 -07:00
Christopher Jeffrey
0ead568225
rpc: fix wallet and account balances. 2016-10-21 21:48:34 -07:00
Christopher Jeffrey
21b2a12278
http: convert token to buffer for ws auth. 2016-10-21 19:38:12 -07:00
Christopher Jeffrey
9049053a1e
http: send details after send. 2016-10-21 19:38:10 -07:00
Christopher Jeffrey
3412916c89
txdb: refactor. 2016-10-21 19:38:08 -07:00
Christopher Jeffrey
11b2f1a7bc
txdb: less confusing tx details. 2016-10-21 19:38:08 -07:00
Christopher Jeffrey
e3a6d7f35e
miner: workers and mining fixes. 2016-10-21 19:38:07 -07:00
Christopher Jeffrey
a62fdb3356
http: stop resend from hanging. 2016-10-21 19:38:06 -07:00
Christopher Jeffrey
b58c9746ec
http: resend call. 2016-10-21 19:38:06 -07:00
Christopher Jeffrey
d697684b83
txdb: inspection. misc. 2016-10-21 19:38:05 -07:00
Christopher Jeffrey
aed03c2655
txdb: add txdb state. 2016-10-21 19:38:05 -07:00
Christopher Jeffrey
a864ec1552
wallet: refactor passphrase options. 2016-10-21 19:38:04 -07:00
Christopher Jeffrey
a2d6ed56e7
refactor: have promises resolve to undefined. 2016-10-21 19:38:04 -07:00
Christopher Jeffrey
3cc5ce16b9
http/miner: misc fixes. 2016-10-06 02:25:15 -07:00
Christopher Jeffrey
7f22223436
http: rename zapAll for consistency. 2016-10-05 19:51:46 -07:00
Christopher Jeffrey
5bb21070c4
wallet: refactor and add global zap. 2016-10-05 19:16:33 -07:00
Christopher Jeffrey
41a94dacd2
http: fix hd key handling. 2016-10-05 07:25:03 -07:00
Christopher Jeffrey
323ea3eda5
http: handle api keys better. 2016-10-05 07:11:13 -07:00
Christopher Jeffrey
745c12ef3a
http: allow admin status for noAuth. 2016-10-05 05:59:56 -07:00
Christopher Jeffrey
383c8f085f
http: add admin key for dos-able calls. 2016-10-05 05:51:32 -07:00
Christopher Jeffrey
80b6968318
rpc: sort txs and coins. 2016-10-05 05:41:07 -07:00
Christopher Jeffrey
80aa8f8c4c
http: more methods and better validation. 2016-10-05 04:55:19 -07:00
Christopher Jeffrey
6f18d890f1
wallet: better option handling. expose more txdb methods. 2016-10-05 04:48:06 -07:00
Christopher Jeffrey
c3ff43c85b
http: better querystring parsing. 2016-10-05 04:23:26 -07:00
Christopher Jeffrey
402996ba74
rpc: add selectwallet call. 2016-10-05 00:57:14 -07:00
Christopher Jeffrey
5e1b56363b
http: add watchOnly options. 2016-10-04 17:06:56 -07:00
Christopher Jeffrey
6215954ffb
rpc: update for tx->txdb change. 2016-10-04 13:36:02 -07:00
Christopher Jeffrey
0f74292082
refactor: style. 2016-10-03 07:58:12 -07:00
Christopher Jeffrey
41b342350f
browser: add rpc. 2016-10-03 02:29:04 -07:00
Christopher Jeffrey
3e59282c66
deps: browser transform. 2016-10-03 01:48:08 -07:00
Christopher Jeffrey
1a8657d131
spawn: rename to co. 2016-10-02 23:24:11 -07:00
Christopher Jeffrey
f0223146af
deps: massive refactor. 2016-10-02 23:24:11 -07:00
Christopher Jeffrey
f96ee525f5
http: refactor deps and tests. 2016-10-02 23:24:11 -07:00
Christopher Jeffrey
960393a53f
wallet: use separate branch for nested addrs. 2016-10-02 23:24:10 -07:00
Christopher Jeffrey
19c8959c1a
wallet: rename change to branch. 2016-10-02 23:24:10 -07:00
Christopher Jeffrey
8c5c9de132
wallet: more rewriting. 2016-10-02 23:24:09 -07:00
Christopher Jeffrey
f297591193
http: minor. 2016-10-02 23:24:08 -07:00
Christopher Jeffrey
60eec9e0a0
http: fix subtractFee validation. 2016-10-02 23:24:08 -07:00
Christopher Jeffrey
f5a8cb3ec0
locker: more refactoring. 2016-10-02 23:24:08 -07:00
Christopher Jeffrey
144beb343a
mempool: remove confusing fee nonsense. 2016-10-02 23:24:07 -07:00
Christopher Jeffrey
f0a37f3e5e
refactor: replace callback comments. 2016-09-23 01:05:06 -07:00
Christopher Jeffrey
9bbd8de8bf
refactor: remote rescanning. misc fixes. 2016-09-23 00:42:16 -07:00
Christopher Jeffrey
f158a73a2d
refactor: fixes. workers. locks. 2016-09-22 02:54:56 -07:00
Christopher Jeffrey
8c11a2aa3f
generators: refactor http. 2016-09-22 01:29:48 -07:00
Christopher Jeffrey
ae83aa6fba
refactor: more work. 2016-09-22 00:24:59 -07:00
Christopher Jeffrey
60d162eb20
refactor: s/spawn.co/co/g 2016-09-21 22:59:48 -07:00
Christopher Jeffrey
ec0d50d506
refactor: improve generator perf. 2016-09-21 22:58:27 -07:00
Christopher Jeffrey
2899219033
refactor: cleanup. 2016-09-21 11:03:48 -07:00
Christopher Jeffrey
df23810b0c
refactor: fix cli. finish rpc. 2016-09-21 10:46:07 -07:00
Christopher Jeffrey
d78151d3d3
refactor: promises. 2016-09-20 15:28:14 -07:00
Christopher Jeffrey
9561b3ee74
rpc: getblocktemplate - abide by bip145. 2016-09-18 12:57:50 -07:00
Christopher Jeffrey
3f77f12c03
rpc: typo. 2016-09-18 12:10:50 -07:00
Christopher Jeffrey
a508d5a51d
rpc: getwork - verify header before mutating current block. 2016-09-17 19:48:42 -07:00
Christopher Jeffrey
5dadb224ca
rpc: lint. 2016-09-17 19:23:45 -07:00
Christopher Jeffrey
170cf0db28
rpc: misc fixes. 2016-09-17 19:20:28 -07:00
Christopher Jeffrey
5e18dddd37
http: make http api safe for spv. 2016-09-17 19:11:08 -07:00
Christopher Jeffrey
d9a3dac869
rpc: make rpc safe for spv mode. 2016-09-17 19:00:58 -07:00
Christopher Jeffrey
666a7b7999
rpc: getwork longpolling and other improvements. 2016-09-17 18:26:54 -07:00
Christopher Jeffrey
061548f2ac
rpc: more mining nonsense. 2016-09-17 15:27:45 -07:00
Christopher Jeffrey
6598245486
rpc: improve mining. 2016-09-17 06:24:58 -07:00
Christopher Jeffrey
5da0aceb38
packets 2016-09-16 17:03:56 -07:00
Christopher Jeffrey
9dd863d9f2
random: require random from crypto. 2016-09-15 13:36:18 -07:00
Christopher Jeffrey
19f61773f7
http: fix typo in validation. 2016-09-14 15:54:02 -07:00
Christopher Jeffrey
07285ebdd7
refactor: rename cost to weight. 2016-09-13 02:06:18 -07:00
Christopher Jeffrey
b346397449
db: improve backups. 2016-09-11 00:24:40 -07:00
Christopher Jeffrey
681855093c
db: implement hot backups. 2016-09-10 21:31:07 -07:00
Christopher Jeffrey
c9ebe29e39
crypto: do not expose crypto module from utils. 2016-09-06 15:15:36 -07:00
Christopher Jeffrey
a02564e0a1
test: fix http tests. 2016-09-06 00:56:25 -07:00
Christopher Jeffrey
c43c84cde7
mtx: cleanup coin selector. 2016-09-06 00:47:41 -07:00
Christopher Jeffrey
1edb5aa4cf
crypto: add random.js. 2016-09-05 23:33:36 -07:00
Christopher Jeffrey
eabba6e72e
wallet: fix account handling. 2016-08-26 18:26:56 -07:00
Christopher Jeffrey
c2bcd8fd74
rpc: mempool ancestors and descendants. 2016-08-26 05:00:53 -07:00
Christopher Jeffrey
59d4e39a84
refactor: lint. 2016-08-26 01:46:52 -07:00
Christopher Jeffrey
fa366e56fd
pool: more peer management. 2016-08-25 19:48:34 -07:00
Christopher Jeffrey
0ff93dc705
pool: refactor host and peer list. 2016-08-25 19:30:56 -07:00
Christopher Jeffrey
ec8e3e0359
wallet: log and rpc fixes. 2016-08-25 02:35:39 -07:00
Christopher Jeffrey
f7b61278d0
http: fix require. 2016-08-24 05:21:05 -07:00
Christopher Jeffrey
6105095379
refactor: more restructuring. 2016-08-24 04:59:06 -07:00