Commit Graph

3726 Commits

Author SHA1 Message Date
Christopher Jeffrey (JJ)
a3b0d10c30 Merge pull request #169 from dionyziz/fix_promise_docs
Pool.hasTX does not return promise
2017-05-12 15:47:31 -07:00
Christopher Jeffrey (JJ)
724e60970a Merge pull request #183 from murtyjones/patch-1
[Trivial] Adds JSHint param name
2017-05-12 13:35:41 -07:00
Christopher Jeffrey (JJ)
3fda5bedab Merge pull request #198 from kleetus/compat/bool-validation
RPC method compatibility with bitcoin core.
2017-05-12 13:33:36 -07:00
Christopher Jeffrey (JJ)
405c18f080 Merge pull request #199 from homeopatchy/mempool-import-index-address-option
mempool: import indexAddress option.
2017-05-12 13:31:09 -07:00
Christopher Jeffrey (JJ)
bff9ea2c16 Merge pull request #214 from samlanning/is-float
Various improvements to float parsing
2017-05-12 13:26:26 -07:00
Christopher Jeffrey
a1d0948f2e
net: add --only option. fixes #210. 2017-05-12 12:02:55 -07:00
Christopher Jeffrey
87b5375079
db: fix error message. fixes #168. 2017-05-12 11:57:44 -07:00
Christopher Jeffrey
3ca70a152a
block: remove coinbase from json output. 2017-05-12 11:45:30 -07:00
Christopher Jeffrey
f2f94a800e
rpc: fix arg length check for getblock. 2017-05-12 11:44:33 -07:00
Christopher Jeffrey
993a27525e
config: expand home directory in config path. 2017-05-12 11:44:33 -07:00
Christopher Jeffrey
cecf2c7789
http: fix get block call. fixes #208. 2017-05-12 11:44:32 -07:00
Christopher Jeffrey
c81d57c25c
client: fix wallet admin calls. see #185. 2017-05-12 11:44:32 -07:00
Christopher Jeffrey (JJ)
27b896a4ed Merge pull request #211 from pinheadmz/cbtxt
return coinbase scriptSig string in getblock requests
2017-05-12 10:48:21 -07:00
Sam Lanning
7379482c32 btc: remove unneeded radix parameter for parseFloat() 2017-05-11 15:56:10 -07:00
Sam Lanning
3e06a244dd utils: Add clarification to util.isFloat() jsdoc 2017-05-11 14:38:36 -07:00
Matthew Zipkin
6a332bfeaf init return cb rpc 2017-05-05 20:51:57 +00:00
Christopher Jeffrey
377017ba3d
walletdb: handle errors for plugin. 2017-05-03 19:29:45 -07:00
Christopher Jeffrey
52bf0d420a
workers: unref all streams. 2017-05-01 11:41:05 -07:00
Christopher Jeffrey
d3cfad0c64
spvnode: fix config inconsistency. fixes #195. 2017-04-30 07:28:16 -07:00
Christopher Jeffrey
12d3ee6f95
rpc: add getblockbyheight call. 2017-04-30 07:18:16 -07:00
Christopher Jeffrey
ed4400acb9
address: start using from/toString. 2017-04-30 07:13:36 -07:00
Christopher Jeffrey
14ee1f8f03
address: expose bech32. 2017-04-30 06:42:21 -07:00
Christopher Jeffrey
4f09065a3e
rpc: ensure shutdown. see #188. 2017-04-30 06:30:23 -07:00
Christopher Jeffrey
a5520abaae
http: fix tx/address and broadcast routes. 2017-04-30 06:07:18 -07:00
Christopher Jeffrey
c1d7e93477
networks: fix last checkpoint. 2017-04-30 06:06:39 -07:00
pablovidal85
fba9b46d25 mempool: import indexAddress option 2017-04-22 00:37:47 +02:00
Chris Kleeschulte
dd49ee0761
RPC method compatibility with bitcoin core.
- RPC method param semantics, unfortunately, aren't consistent in bitcoin core, therefore bcoin can't be used as a drop in replacement if bcoin "fixes the glitch".
- To avoid breaking bcoin's current api, validation of bool includes integers 0 and 1 as false and true, respectively.
- The effect of this is to allow getRawTransaction to work with older client code.
2017-04-21 13:14:33 -04:00
Christopher Jeffrey
6acef06cbc
address: implement bech32 addresses. 2017-04-12 23:13:29 -07:00
Christopher Jeffrey
6182df0442
config: fix mempool size and entry cache. 2017-04-12 08:23:19 -07:00
Marty Jones
3db7482e65 [Trivial] Adds JSHint param name 2017-04-10 20:05:56 -05:00
Christopher Jeffrey
a630d23a97
config: fix mb param. 2017-03-30 02:44:01 -07:00
Christopher Jeffrey
6fde0fd7d8
v1.0.0-beta.12 2017-03-26 15:18:23 -07:00
Christopher Jeffrey
0429d56534
http: fix response for wallet join (no wallet auth). 2017-03-26 15:15:29 -07:00
Christopher Jeffrey
378051c4a8
networks: fix witnesspubkeyhash for simnet. 2017-03-26 15:15:12 -07:00
Christopher Jeffrey
fd1ff3359c
v1.0.0-beta.11 2017-03-24 22:09:19 -07:00
Christopher Jeffrey
e609613519
networks: fix simnet. 2017-03-24 22:07:37 -07:00
Dionysis Zindros
6d274a1988 Pool.hasTX does not return promise 2017-03-18 19:20:28 +02:00
Christopher Jeffrey
db715036aa
http: fix chain resetting for client. 2017-03-17 07:13:24 -07:00
Christopher Jeffrey
e821eb10bf
rpc: minor refactor for gbt deps. 2017-03-17 04:32:41 -07:00
Christopher Jeffrey
f778a8c1b5
bip152: do not use Block.totalTX. 2017-03-16 15:46:16 -07:00
Christopher Jeffrey
8453c250dc
cpuminer: fix getHashes. 2017-03-16 14:30:49 -07:00
Christopher Jeffrey
16dbde4978
http: do not return stack trace in errors. 2017-03-16 14:20:25 -07:00
Christopher Jeffrey
1f10bf8253
rpc: move getDifficulty. 2017-03-16 14:14:57 -07:00
Christopher Jeffrey
35d9727bc3
rpc: minor. 2017-03-16 14:06:34 -07:00
Christopher Jeffrey
0a065be686
rpc: refactor some calls. 2017-03-16 13:32:11 -07:00
Christopher Jeffrey
8110c73b17
v1.0.0-beta.10 2017-03-16 00:40:45 -07:00
Christopher Jeffrey
9388256e48
hostlist: fix flushing. 2017-03-16 00:39:30 -07:00
Christopher Jeffrey
c0e4c169ba
http: more tests. 2017-03-15 20:38:04 -07:00
Christopher Jeffrey
0d844be588
rpc: tests and fixes. 2017-03-15 20:21:24 -07:00
Christopher Jeffrey
335a0b1cd1
node: do not modify globals. 2017-03-15 18:43:52 -07:00
Christopher Jeffrey
0e5c542b49
rpc: minor. 2017-03-15 18:20:29 -07:00
Christopher Jeffrey
93c190d646
node/cli: more config options. 2017-03-15 16:25:57 -07:00
Christopher Jeffrey
2e4a759487
gbt: fix deps check. do not mutate version. 2017-03-15 09:14:32 -07:00
Christopher Jeffrey
89cbdac61e
rpc: more gbt/getwork improvements. 2017-03-15 08:54:29 -07:00
Christopher Jeffrey
ff80620e5e
rpc: some more gbt fixes. 2017-03-15 07:45:23 -07:00
Christopher Jeffrey
b2649a6cd1
encoding: fix asserts. 2017-03-15 07:21:04 -07:00
Christopher Jeffrey
66c4fd8a77
rpc: better funding errors. 2017-03-15 06:55:00 -07:00
Christopher Jeffrey
1458366441
reader: better errors. 2017-03-15 06:49:46 -07:00
Christopher Jeffrey
3ae417795f
rpc: better error codes. 2017-03-15 06:13:27 -07:00
Christopher Jeffrey
5ee8a9b306
rpc: improve gbt proposal and capabilities handling. 2017-03-15 04:49:54 -07:00
Christopher Jeffrey
dc6b7b1f10
rpc: rename _submitBlock. 2017-03-15 04:04:22 -07:00
Christopher Jeffrey
9581225b8c
rpc: hold chain lock during submitblock. 2017-03-15 03:59:46 -07:00
Christopher Jeffrey
de50a62b00
rpc: misc fixes. 2017-03-15 03:44:45 -07:00
Christopher Jeffrey
ede25e8c9e
cpuminer: fix stop. 2017-03-14 17:40:34 -07:00
Christopher Jeffrey
010267e78e
config: minor. 2017-03-14 17:40:25 -07:00
Christopher Jeffrey
32ea933b77
logger: minor. 2017-03-14 08:23:56 -07:00
Christopher Jeffrey
203791c1f7
node: add location method. 2017-03-14 08:18:37 -07:00
Christopher Jeffrey
a4e37cf9df
browser: fixes. 2017-03-14 08:07:42 -07:00
Christopher Jeffrey
51ed3262e8
amount: fix function name collision. fixes #154. 2017-03-14 06:45:12 -07:00
Christopher Jeffrey
f2c53e2e08
rpc: reimplement rpc id fix. closes #159. 2017-03-14 06:41:06 -07:00
Christopher Jeffrey
2a17362fa0
Merge remote-tracking branch 'danrobinson/authorization-header' 2017-03-14 06:33:17 -07:00
Christopher Jeffrey
42da82e007
wallet: fix tests and add compat routes. 2017-03-14 06:28:55 -07:00
Christopher Jeffrey
1d6bd6dbe4
node: require walletdb by default for now. 2017-03-14 06:22:43 -07:00
Christopher Jeffrey
74b21b78c5
config/validator: fix lists. 2017-03-14 06:16:57 -07:00
Christopher Jeffrey
544836de3d
networks: update checkpoints and chainwork. 2017-03-14 06:10:37 -07:00
Christopher Jeffrey
9ab06b8e81
logger: remove old constants. 2017-03-14 06:10:37 -07:00
Christopher Jeffrey
7d6ebd0201
node: make hostlist persistence optional. 2017-03-14 06:10:37 -07:00
Christopher Jeffrey
a986a4c6b8
minor: lint. 2017-03-14 06:10:37 -07:00
Christopher Jeffrey
e6d41d3335
logger: less colors. 2017-03-14 06:10:37 -07:00
Christopher Jeffrey
4674109706
node: refactor config options. 2017-03-14 06:10:37 -07:00
Christopher Jeffrey
290f6ab563
rpc: implement invalidateblock correctly. 2017-03-14 06:10:37 -07:00
Christopher Jeffrey
c174bed58d
rpc: getmemoryinfo. 2017-03-14 06:10:37 -07:00
Christopher Jeffrey
9e479483f5
minor: lint. 2017-03-14 06:10:37 -07:00
Christopher Jeffrey
68bba8621e
rpc/mempool: implement prioritisetransaction. 2017-03-14 06:10:37 -07:00
Christopher Jeffrey
6f27b3fa3d
rpc: minor. 2017-03-14 06:10:37 -07:00
Christopher Jeffrey
b9cb9c7e7d
template: lint. 2017-03-14 06:10:37 -07:00
Christopher Jeffrey
9a7b4eb6a0
validator: minor. 2017-03-14 06:10:36 -07:00
Christopher Jeffrey
6eb6800fc8
rpc: misc rpc fixes. 2017-03-14 06:10:36 -07:00
Christopher Jeffrey
f4106a615e
rpc: fix getinfo. see #165. 2017-03-14 06:10:36 -07:00
Christopher Jeffrey
ef07c52fc6
miner: use next deployment state for flags. 2017-03-14 06:10:36 -07:00
Christopher Jeffrey
5b3ca8ce6f
chain: refactor getDeployments. 2017-03-14 06:10:36 -07:00
Christopher Jeffrey
023591978a
rpc: fix wit commitment for getblocktemplate. 2017-03-14 06:10:36 -07:00
Christopher Jeffrey
a266391f1b
logger: truncate log files. 2017-03-14 06:10:36 -07:00
Christopher Jeffrey
b372715c88
miner: update curtime. see #160. 2017-03-14 06:10:36 -07:00
Christopher Jeffrey
806d8c824a
fees: add logger context. 2017-03-14 06:10:36 -07:00
Christopher Jeffrey
99d2cceebe
rpc: fix nonce updating. 2017-03-14 06:10:36 -07:00
Christopher Jeffrey
5ce806a723
rpc: fix cpuminer. 2017-03-14 06:10:36 -07:00
Christopher Jeffrey
f7853aa639
logger: better context handling. 2017-03-14 06:10:36 -07:00
Christopher Jeffrey
896ffdd3f5
masterkey: fix fromKeyRaw. 2017-03-14 06:10:35 -07:00
Christopher Jeffrey
c71039d87c
minor: lint. 2017-03-14 06:10:35 -07:00
Christopher Jeffrey
eb601eece6
node: start using logger contexts. 2017-03-14 06:10:35 -07:00
Christopher Jeffrey
1401860fd4
pool: less error emission. 2017-03-14 06:10:35 -07:00
Christopher Jeffrey
81b565fc85
logger: add logger "contexts". 2017-03-14 06:10:35 -07:00
Christopher Jeffrey
b104e664a7
cpuminer: improve start/stop handling. 2017-03-14 06:10:35 -07:00
Christopher Jeffrey
aa7e550f91
hd: do not store mnemonic on hd private key. 2017-03-14 06:10:35 -07:00
Christopher Jeffrey
d7e2942117
netaddress: fix fromHost. 2017-03-14 06:10:35 -07:00
Christopher Jeffrey
ccd89e4f2f
cpuminer: fixes for job methods. 2017-03-14 06:10:35 -07:00
Christopher Jeffrey
2bd578fbe4
walletdb: minor. 2017-03-14 06:10:35 -07:00
Christopher Jeffrey
1a8a9afade
config/wallet: refactor config handling. add wallet server. 2017-03-14 06:10:35 -07:00
Christopher Jeffrey
bfd7cc9266
miner/template: refactor options handling. 2017-03-14 06:10:35 -07:00
Christopher Jeffrey
b0c2b89e79
mining: refactor proof handling. 2017-03-14 06:10:35 -07:00
Christopher Jeffrey
b453898f6e
rpc: misc fixes. 2017-03-14 06:10:35 -07:00
Christopher Jeffrey
48066f1634
http: misc fixes. 2017-03-14 06:10:34 -07:00
Christopher Jeffrey
1b098b61ba
template: minor. 2017-03-14 06:10:34 -07:00
Christopher Jeffrey
945fa381c5
refactor: mining. 2017-03-14 06:10:34 -07:00
Christopher Jeffrey
50d47dd5a6
rpc: method refactor. getwork refactor. 2017-03-14 06:10:34 -07:00
Christopher Jeffrey
78a4f379f5
rpc: add u32 validation. rename node rpc methods. 2017-03-14 06:10:34 -07:00
Christopher Jeffrey
59e9ef277a
http: make rpc more hookable. 2017-03-14 06:10:34 -07:00
Christopher Jeffrey
a47316c264
http: refactor node websocket api. 2017-03-14 06:10:34 -07:00
Christopher Jeffrey
4c7a935484
http: better channel management. 2017-03-14 06:10:34 -07:00
Christopher Jeffrey
5cbbdbfb2f
refactor: config, plugins, and walletdb. 2017-03-14 06:10:34 -07:00
Christopher Jeffrey
eedc563903
utils: add fs. 2017-03-14 06:09:29 -07:00
Christopher Jeffrey
695305cf68
mtx: add by-value sorting. 2017-03-14 06:09:29 -07:00
Christopher Jeffrey
a81733a720
node/config: refactor config and options. 2017-03-14 06:09:29 -07:00
Dan Robinson
814a77f11c http: add Authorization to allowed headers 2017-03-13 23:51:41 -07:00
Christopher Jeffrey
667b0e746d
http: fix json rpc id handling. see #159. 2017-03-12 23:44:04 -07:00
Christopher Jeffrey
604362effd
pool: increase blocktxn limit. 2017-03-07 22:43:46 -08:00
Christopher Jeffrey
75f4e9616f
pool: fix discoverSeeds. 2017-03-07 22:41:13 -08:00
Christopher Jeffrey
19525826e3
pool: better stalling for compact blocks. 2017-03-07 20:54:44 -08:00
Christopher Jeffrey
4aecaf9158
pool/peer: do not allow duplicate txs in merkle blocks. 2017-03-07 20:13:32 -08:00
Christopher Jeffrey
bfca120f4f
pool: lint. minor. 2017-03-07 20:04:26 -08:00
Christopher Jeffrey
d0628e990d
miner: add "preverify" option. 2017-03-07 20:00:33 -08:00
Christopher Jeffrey
871225bbe4
pool/peer: split request map into two maps. 2017-03-07 19:49:50 -08:00
Christopher Jeffrey
2bbeb40ac5
net: resend sync on peer disconnection. 2017-03-07 18:59:46 -08:00
Christopher Jeffrey
6a229d597e
logger: fix logger error handling. 2017-03-07 18:56:04 -08:00
Christopher Jeffrey
11a2bc1356
net: less banning for bip152. 2017-03-07 18:01:05 -08:00
Christopher Jeffrey
cdbad54a8c
net: improvements. see comments.
- Improved local address handling.
- Enabled upnp discovery.
- Added retry for dns seeds.
- Improved hostlist in general.
2017-03-07 17:10:47 -08:00
Christopher Jeffrey
614a952015
net: hardcoded seeds (primarily for browser). 2017-03-07 13:57:09 -08:00
Christopher Jeffrey
e823222e45
timedata/network: minor. 2017-03-06 18:41:23 -08:00
Christopher Jeffrey
eeeff1f795
chain: skip all preliminary verification when using checkpoints. 2017-03-06 18:24:38 -08:00
Christopher Jeffrey
6d477b7588
v1.0.0-beta.9 2017-03-05 18:39:33 -08:00
Christopher Jeffrey
e9650da89c
tx: prevent getRate from throwing. 2017-03-05 17:57:26 -08:00
Christopher Jeffrey
a7ab25a078
policy: add some safety measures 2017-03-05 17:29:20 -08:00
Christopher Jeffrey
545eb77cdb
mempool: update serialization version. 2017-03-05 17:14:03 -08:00
Christopher Jeffrey
b53162e12d
mempool: fix getDescendants and getAncestors. 2017-03-05 16:44:46 -08:00
Christopher Jeffrey
bf4c890b88
mempool: minor. 2017-03-05 16:12:52 -08:00
Christopher Jeffrey
c38a4fc031
net: listen after connecting to outbound. 2017-03-05 15:40:09 -08:00
Christopher Jeffrey
664cddac42
asyncobject: fire hooks before events. 2017-03-05 15:23:13 -08:00
Christopher Jeffrey
3c4bee11f2
chain: add serial asynchronous "hooks". 2017-03-05 15:06:26 -08:00
Christopher Jeffrey
4d5eaaa64a
asyncemitter: add sync emission. 2017-03-05 15:06:07 -08:00