Christopher Jeffrey
b52a5e3fd2
node: add node.get() for plugins.
2017-07-17 14:26:43 -07:00
Christopher Jeffrey
7530359b55
workers: minor.
2017-07-17 14:26:43 -07:00
Christopher Jeffrey
498264b417
workers: better errors for verification.
2017-07-17 14:26:43 -07:00
Christopher Jeffrey
053561f2ba
errors: fix stack traces.
2017-07-17 14:26:43 -07:00
Christopher Jeffrey
cedc54436a
lowlevelup: automatic dummies.
2017-07-17 14:26:43 -07:00
Christopher Jeffrey
37da047a34
digest: avoid extra allocations.
2017-07-17 14:26:43 -07:00
Christopher Jeffrey
2f51fd1c50
api: use satoshi values for everything.
2017-07-17 14:26:43 -07:00
Christopher Jeffrey
47adb5a5a7
tx: refactor sighashing and hasStandardWitness.
2017-07-17 14:26:43 -07:00
Christopher Jeffrey
ff856fd6c2
chain: post-verify transactions due to potential of rejected promises.
2017-07-17 14:26:42 -07:00
Christopher Jeffrey
d7970882b3
bip70: minor.
2017-07-17 14:26:42 -07:00
Christopher Jeffrey
cf795e1cd3
script: minor.
2017-07-17 14:26:42 -07:00
Christopher Jeffrey
4771f2d0a8
chaindb: minor.
2017-07-17 14:26:42 -07:00
Christopher Jeffrey
a627f00a3f
poly1305: fix.
2017-07-17 14:26:42 -07:00
Christopher Jeffrey
6893d5aa99
chain: minor.
2017-07-17 14:26:42 -07:00
Christopher Jeffrey
19f0f42717
http: minor.
2017-07-17 14:26:42 -07:00
Christopher Jeffrey
f2a939de70
poly1305: minor.
2017-07-17 14:26:42 -07:00
Christopher Jeffrey
18c1476de9
chain: refactor getLocks.
2017-07-17 14:26:42 -07:00
Christopher Jeffrey
8a1eb9f5e1
chain: minor.
2017-07-17 14:26:42 -07:00
Christopher Jeffrey
797016630c
chaindb: minor.
2017-07-17 14:26:42 -07:00
Christopher Jeffrey
0ffabd7a9a
chaindb: more cases for genesis block.
2017-07-17 14:26:42 -07:00
Christopher Jeffrey
e65f6e26c3
chain: remove isCoinbase calls.
2017-07-17 14:26:42 -07:00
Christopher Jeffrey
73e61e864a
chaindb: minor.
2017-07-17 14:26:42 -07:00
Christopher Jeffrey
278265536e
external: minor.
2017-07-17 14:26:41 -07:00
Christopher Jeffrey
4ab48c5f54
workers: saner env sending.
2017-07-17 14:26:41 -07:00
Christopher Jeffrey
a93f82db73
workers: minor.
2017-07-17 14:26:41 -07:00
Christopher Jeffrey
647b6909c6
dns: add custom timeout.
2017-07-17 14:26:41 -07:00
Christopher Jeffrey
7d9d3f979d
workers: minor.
2017-07-17 14:26:41 -07:00
Christopher Jeffrey
006d4d1fef
coinview: lint.
2017-07-17 14:26:41 -07:00
Christopher Jeffrey
0fa577a47d
workers: lint.
2017-07-17 14:26:41 -07:00
Christopher Jeffrey
f591e577f1
workers: minor.
2017-07-17 14:26:41 -07:00
Christopher Jeffrey
27c60ce76e
workers: refactor for browser vs node.
2017-07-17 14:26:41 -07:00
Christopher Jeffrey
6154ca8b4c
workers/build: require only one worker file.
2017-07-17 14:26:41 -07:00
Christopher Jeffrey
b570769eed
http: safer path parsing.
2017-07-17 14:26:40 -07:00
Christopher Jeffrey
3d65488108
crypto: fix duplicate names.
2017-07-17 14:26:40 -07:00
Christopher Jeffrey
ca48ab748f
bn: use toBuffer instead of toArrayLike.
2017-07-17 14:26:40 -07:00
Christopher Jeffrey
8d6f8f7cdf
workers/framer: lint.
2017-07-17 14:26:40 -07:00
Christopher Jeffrey
6690bd7e9d
workers/webpack: fixes for build and workers.
2017-07-17 14:26:40 -07:00
Christopher Jeffrey
886008a182
workers: misc fixes.
2017-07-17 14:26:40 -07:00
Christopher Jeffrey
4ebe557807
workers: make worker files configurable.
2017-07-17 14:26:40 -07:00
Christopher Jeffrey
8f295a376d
workers: refactor exiting.
2017-07-17 14:26:40 -07:00
Christopher Jeffrey
0250cf4296
workers: better signal handling.
2017-07-17 14:26:40 -07:00
Christopher Jeffrey
90f783fd05
workers: remove parser-client.
2017-07-17 14:26:40 -07:00
Christopher Jeffrey
972d98e0db
hostlist: es6 fixes.
2017-07-17 14:26:39 -07:00
Christopher Jeffrey
5b62a87a21
mempool: fix coinindex.
2017-07-17 14:26:39 -07:00
Christopher Jeffrey
fdc9bca468
script: minor.
2017-07-17 14:26:39 -07:00
Christopher Jeffrey
db0567fc01
node/browser: fix browser build.
2017-07-17 14:26:39 -07:00
Christopher Jeffrey
1b94d670c2
upnp: minor.
2017-07-17 14:26:39 -07:00
Christopher Jeffrey
3f3516ca18
coinview: remove old serialization methods.
2017-07-17 14:26:39 -07:00
Christopher Jeffrey
15d0b88308
bip152/merkleblock: use Map objects.
2017-07-17 14:26:39 -07:00
Christopher Jeffrey
a071a58380
config: fix parseArg.
2017-07-17 14:26:39 -07:00
Christopher Jeffrey
4f68d4cde0
node: minor.
2017-07-17 14:26:39 -07:00
Christopher Jeffrey
5e78cf4998
node: fix close bug.
2017-07-17 14:26:39 -07:00
Christopher Jeffrey
296e65d0fd
refactor: use es6 template strings everywhere.
2017-07-17 14:26:39 -07:00
Christopher Jeffrey
3af014119a
refactor: switch to template strings for errors.
2017-07-17 14:26:38 -07:00
Christopher Jeffrey
7932a25abe
mtx: fix verify methods.
2017-07-17 14:26:38 -07:00
Christopher Jeffrey
c732333554
client: fix typo.
2017-07-17 14:26:38 -07:00
Christopher Jeffrey
10672784e5
refactor: rename tx functions. more es6 features.
2017-07-17 14:26:38 -07:00
Christopher Jeffrey
c651136d83
refactor: refactor clients.
2017-07-17 14:26:38 -07:00
Christopher Jeffrey
3e7c921ad3
tx: minor.
2017-07-17 14:26:38 -07:00
Christopher Jeffrey
fdb668aea3
refactor: use rest args where possible.
2017-07-17 14:26:38 -07:00
Christopher Jeffrey
e89f285e9a
script: refactor execution.
2017-07-17 14:26:38 -07:00
Christopher Jeffrey
7f1b23223c
wallet: fix server workers.
2017-07-17 14:26:38 -07:00
Christopher Jeffrey
0ea25b0c1c
wallet: move nodeclient.
2017-07-17 14:26:38 -07:00
Christopher Jeffrey
074c065262
node: automatically bind to errors for plugins.
2017-07-17 14:26:38 -07:00
Christopher Jeffrey
8c7279518f
refactor: de-globalize workerpool.
2017-07-17 14:26:38 -07:00
Christopher Jeffrey
c53f4cf89e
refactor: switch to const/let.
2017-07-17 14:26:37 -07:00
Christopher Jeffrey
e00472891d
refactor: start using for...of.
2017-07-17 14:26:37 -07:00
Christopher Jeffrey
78d62c73b8
refactor: start using multiple return values.
2017-07-17 14:26:37 -07:00
Christopher Jeffrey
aa05bb5df7
refactor: use es6 maps for everything.
2017-07-17 14:26:37 -07:00
Christopher Jeffrey
98a59e814d
workers: fix build for workers.
2017-06-28 18:26:16 -07:00
Christopher Jeffrey
307e7dd698
webpack: get bcoin building in webpack for node.
2017-06-28 18:04:20 -07:00
Christopher Jeffrey
275580f4ac
refactor: fix linting for empty modules.
2017-06-28 13:04:04 -07:00
Christopher Jeffrey
24cd81a1bd
webpack: use -browser convention instead of aliases.
2017-06-28 12:45:38 -07:00
Christopher Jeffrey
3763b5309a
node: allow non-string plugins in config.
2017-06-28 02:47:05 -07:00
Christopher Jeffrey
09d41d32a2
rsa: minor.
2017-06-28 02:34:26 -07:00
Christopher Jeffrey
9d9d8e2133
refactor: lint.
2017-06-28 02:32:00 -07:00
Christopher Jeffrey
f9fdcb58f8
protoreader/protowriter: minor.
2017-06-28 02:30:21 -07:00
Christopher Jeffrey
2a5a8cdc93
pbkdf2: fix for browser.
2017-06-27 18:22:19 -07:00
Christopher Jeffrey
be1ec1c22d
utils: refactor.
2017-06-27 09:28:37 -07:00
Christopher Jeffrey
62e7f97359
refactor: module index.
2017-06-27 09:28:18 -07:00
Christopher Jeffrey
d4cc22e1c5
refactor: crypto.
2017-06-27 07:27:53 -07:00
Christopher Jeffrey
63e6a97de3
refactor: lint.
2017-06-27 03:54:14 -07:00
Christopher Jeffrey
fa3e98b274
crypto: rename ec to secp256k1.
2017-06-27 02:48:19 -07:00
Christopher Jeffrey
5d6e089c92
crypto: refactor pk.js.
2017-06-27 02:34:17 -07:00
Christopher Jeffrey
f6fb3ba3b5
config: fix browser build.
2017-06-27 02:01:11 -07:00
Christopher Jeffrey
56252921c1
bcoin: refactor.
2017-06-27 01:57:34 -07:00
Christopher Jeffrey
1aa0858f7c
encoding: avoid division in write64.
2017-06-27 01:28:05 -07:00
Christopher Jeffrey
b26b82ab97
util: start using path module. remove some functions.
2017-06-27 01:24:27 -07:00
Christopher Jeffrey
8358fa59c6
util: drop all homemade polyfills.
2017-06-27 00:36:13 -07:00
Christopher Jeffrey
d9342cd81c
util: rely on polyfill for nextTick and typed arrays.
2017-06-26 23:31:32 -07:00
Christopher Jeffrey
8b2a0ce446
util: do not use util.global.
2017-06-26 23:07:06 -07:00
Christopher Jeffrey
7317076243
bcoin: remove env.js.
2017-06-26 23:02:49 -07:00
Christopher Jeffrey
65aefbd99c
httpbase: minor.
2017-06-26 21:39:59 -07:00
Christopher Jeffrey
8b74d95280
http: fix broadcast call.
2017-06-26 21:29:24 -07:00
Christopher Jeffrey
7ab6818210
env: fix environment.
2017-06-26 17:45:15 -07:00
Christopher Jeffrey
bf5ea72863
webpack: fix babelification. upgrade to webpack3.
2017-06-26 17:42:18 -07:00
Boyma Fahnbulleh
0d831b0c57
only output minimized files
2017-06-26 13:52:54 -07:00
Boyma Fahnbulleh
84bfb4f8cb
lib: fix webpack import issues
2017-06-26 13:48:40 -07:00
Christopher Jeffrey
722118df6c
external/gcs: docs.
2017-06-26 13:36:01 -07:00
Christopher Jeffrey
e02d645c07
util: optimize isUInt32 and isInt32.
2017-06-26 12:44:32 -07:00
Christopher Jeffrey
edd095bfae
pool: refactor http ip discovery.
2017-06-26 04:27:21 -07:00
Christopher Jeffrey
b65d2dcae7
peer: allong pong msg to bypass lock.
2017-06-26 04:06:55 -07:00
Christopher Jeffrey
724c9f66e7
peer: remove co.wait call.
2017-06-26 03:49:50 -07:00
Christopher Jeffrey
f1f112b6c6
bech32: minor.
2017-06-26 03:48:07 -07:00
Christopher Jeffrey
518484cac0
util: remove util.nextTick.
2017-06-26 03:43:09 -07:00
Christopher Jeffrey
03303d670d
nexttick-browser: minor.
2017-06-26 03:38:08 -07:00
Christopher Jeffrey
6875fc99c6
nexttick: minor.
2017-06-26 03:37:11 -07:00
Christopher Jeffrey
edb5bb73af
utils: refactor nexttick module.
2017-06-26 03:35:21 -07:00
Christopher Jeffrey
d3b24da2e1
lint: require strict mode.
2017-06-24 05:11:54 -07:00
Christopher Jeffrey
2ef4d137e6
pkg: switch from jshint to eslint.
2017-06-24 04:45:46 -07:00
Christopher Jeffrey
84eccc29fa
refactor: switch to async/await. see #227 .
2017-06-24 02:39:06 -07:00
Christopher Jeffrey
68a3209a96
schnorr: add hmac-drbg. refactor.
2017-06-22 05:22:06 -07:00
Christopher Jeffrey
33ffb780b3
refactor: expose int64 and big numbers as modules.
2017-06-22 03:59:49 -07:00
Christopher Jeffrey
d0482520d9
networks: remove mast for the time being.
2017-06-22 03:43:20 -07:00
Christopher Jeffrey
9238d29a28
chain: minor.
2017-06-22 02:22:15 -07:00
Christopher Jeffrey
7129370b2b
walletkey: fix getType in toJSON.
2017-06-17 18:49:28 -07:00
Christopher Jeffrey
3db140e119
util: improve isSafeAddition.
2017-06-17 18:39:47 -07:00
Christopher Jeffrey
be0e7e02d2
util: add isSafeAddition.
2017-06-17 18:19:12 -07:00
Christopher Jeffrey
5bf68a765f
gcs: refactor.
2017-06-17 17:41:24 -07:00
Christopher Jeffrey
fcc468fb3c
txdb: fix txid() call.
2017-06-16 23:47:04 -07:00
Christopher Jeffrey
7c1786d584
rpc: minor.
2017-06-16 23:46:53 -07:00
Christopher Jeffrey
f04ad612b2
wallet: expose witness option over http.
2017-06-16 23:46:30 -07:00
Christopher Jeffrey
9058e7d78a
gcs: rename fromData.
2017-06-16 16:08:15 -07:00
Christopher Jeffrey
3324d18f5f
gcs: replace multiplication with shifts.
2017-06-16 15:11:52 -07:00
Christopher Jeffrey
b994c278f2
utils: preliminary GCS filter support.
2017-06-16 14:35:50 -07:00
Christopher Jeffrey
015fb8b0b6
siphash: return objects instead of buffers.
2017-06-16 14:30:25 -07:00
Christopher Jeffrey
5bde338a53
rpc: fix verifytxoutproof.
2017-06-16 10:27:17 -07:00
Christopher Jeffrey
6ca3a3fda6
chain: minor.
2017-06-16 00:18:59 -07:00
Christopher Jeffrey
b8c788c207
chain: getLocator refactor.
2017-06-16 00:13:29 -07:00
Christopher Jeffrey
fb8b9fac2b
chain: fix getProofTime.
2017-06-16 00:07:50 -07:00
Christopher Jeffrey
71f8b25d3c
chain: refactor getLocator.
2017-06-16 00:04:26 -07:00
Christopher Jeffrey (JJ)
dd16950fe2
Merge pull request #219 from jjz/master
...
Add tes new test file of key-address-test
2017-06-15 22:50:44 -07:00
Christopher Jeffrey
ea26a0e70a
tx: minor.
2017-06-15 22:34:56 -07:00
Christopher Jeffrey
182784c8e0
utils: remove usage of isBrowser. some refactoring.
2017-06-15 22:28:06 -07:00
Christopher Jeffrey
2b569883bf
refactor: lint.
2017-06-14 20:32:11 -07:00
Christopher Jeffrey
8593bd9410
script: less static methods.
2017-06-13 18:45:42 -07:00
Christopher Jeffrey
b722e5f6e9
ec: remove historical and high params.
2017-06-13 18:31:04 -07:00
Christopher Jeffrey
eba457ae11
script: minor.
2017-06-13 11:49:35 -07:00
Christopher Jeffrey
a3c7a49c80
refactor: replace util.equal with Buffer#equals.
2017-06-12 03:00:08 -07:00
Christopher Jeffrey
be457ee581
script: refactor branch/disabled opcodes.
2017-06-12 00:34:56 -07:00
Christopher Jeffrey
85ec9ae2c3
script: remove disabled ops permanently.
2017-06-11 23:40:35 -07:00
Christopher Jeffrey
a1e9999f29
script: refactor execution.
2017-06-11 23:37:55 -07:00
Christopher Jeffrey
3fd229d9ee
script: remove disabled opcode code.
2017-06-10 01:27:19 -07:00
Christopher Jeffrey
30b8a458ed
script: do not pass flags to Script.num.
2017-06-10 01:22:01 -07:00
Christopher Jeffrey
8893131e08
script: move static methods off of script constructor.
2017-06-10 01:20:05 -07:00
Christopher Jeffrey
49976e7d6f
crypto: better siphash addition.
2017-06-05 05:18:44 -07:00
Christopher Jeffrey
f0b43764b1
crypto: better addition for siphash.
2017-06-03 03:47:39 -07:00
Christopher Jeffrey
a4a2ba7c6f
crypto: improve siphash u64 handling.
2017-06-01 08:48:37 -07:00
Christopher Jeffrey
28cd43045d
refactor: avoid using new Buffer() due to its new perf implications.
2017-05-30 21:11:10 -07:00
Christopher Jeffrey
8763600e53
chaindb: minor.
2017-05-28 13:43:25 -07:00
jjz
ccaa0be5dc
hmac-drbg is npm library , It is not in the “elliptic/lib/elliptic”
2017-05-27 11:03:41 +08:00
Christopher Jeffrey
46b34677f1
address/wallet: refactor usage of Address.getHash.
2017-05-25 23:27:37 -07:00
Christopher Jeffrey
e8fd4db0d6
network: fix isNetwork.
2017-05-25 23:26:20 -07:00
Christopher Jeffrey
76c20eddf1
rpc: do not use Address.getHash.
2017-05-21 21:42:35 -07:00
Christopher Jeffrey
7d61cda3aa
chain/mempool: more aggressive asserts.
2017-05-21 18:40:43 -07:00
Christopher Jeffrey
6b5cba635a
mempool: fix handleOrphans.
2017-05-21 14:45:53 -07:00
Christopher Jeffrey
1eaafb1a09
chain: minor refactor.
2017-05-21 09:05:35 -07:00
Christopher Jeffrey
75c279169c
peer: comments.
2017-05-19 22:05:46 -07:00
Christopher Jeffrey
7728a00470
node: fix entry cache option.
2017-05-19 21:05:07 -07:00
Christopher Jeffrey
0ceca23cb5
chain/mempool: store peer id and punish invalid orphans.
2017-05-19 17:02:06 -07:00
Christopher Jeffrey
0b13452df1
net: implement peer ids.
2017-05-15 03:53:30 -07:00
Christopher Jeffrey
028fee9eee
chain: compact db after pruning.
2017-05-15 03:42:14 -07:00
Christopher Jeffrey
d9c7d7e874
rpc: fix pruneblockchain.
2017-05-15 03:23:33 -07:00
Christopher Jeffrey
612f6a987c
rpc: better errors.
2017-05-15 03:22:09 -07:00
Christopher Jeffrey
11a90dd7da
http: minor.
2017-05-15 01:13:38 -07:00
Christopher Jeffrey
27f89186a5
lowlevelup: refactor option handling.
2017-05-15 00:47:31 -07:00
Christopher Jeffrey
f0cc8eb128
chain: rename some methods. remove unused methods.
2017-05-14 22:11:55 -07:00
Christopher Jeffrey
18cadc7803
address: minor fixes.
2017-05-14 15:45:17 -07:00
Christopher Jeffrey
4812cc8ddb
address: minor.
2017-05-14 15:33:48 -07:00
Christopher Jeffrey
df4c8cc68c
http: fix block by height.
2017-05-14 15:30:14 -07:00
Christopher Jeffrey
f0bc6d5925
rpc: implement pruneblockchain.
2017-05-14 15:24:32 -07:00
Christopher Jeffrey
7089735fb0
hd: cleanup some methods.
2017-05-13 23:39:22 -07:00
Christopher Jeffrey
11a660aeab
network: add more helper functions.
2017-05-13 21:35:58 -07:00
Christopher Jeffrey
2997333122
btc: update uri for bech32 addresses.
2017-05-13 20:54:34 -07:00
Christopher Jeffrey
5ff46dd36d
wallet: more specific hd key functions.
2017-05-13 20:04:23 -07:00
Christopher Jeffrey
7496cf8d47
networks: more network uniqueness.
2017-05-13 19:55:21 -07:00
Christopher Jeffrey
fa5f987775
address: fix bech32 hrp check.
2017-05-13 18:57:40 -07:00
Christopher Jeffrey
6c32fbd283
networks: minor.
2017-05-13 18:36:26 -07:00
Christopher Jeffrey
6643f0a308
networks: make networks more unique.
2017-05-13 18:35:58 -07:00
Christopher Jeffrey
e55ca1eb3d
address: sanity checks.
2017-05-13 17:22:32 -07:00
Christopher Jeffrey
d64bffdd17
bech32: sanity checks.
2017-05-13 16:23:32 -07:00
Christopher Jeffrey
c1dbac3a4a
bech32: optimize bits conversion.
2017-05-13 15:51:51 -07:00
Christopher Jeffrey
44f6dd9386
address: lint.
2017-05-13 15:23:20 -07:00
Christopher Jeffrey
a9ea4e5531
bech32: refactor.
2017-05-13 15:13:42 -07:00
Christopher Jeffrey
83060ee964
bech32: rewrite and improve perf.
2017-05-13 13:54:11 -07:00
Christopher Jeffrey
c1e684dc12
rpc: throw on no addresses for miner.
2017-05-13 04:22:00 -07:00
Christopher Jeffrey
b5375f576d
rpc: minor.
2017-05-13 04:10:05 -07:00
Christopher Jeffrey
c78707ed6a
rpc: update getaddednodeinfo args.
2017-05-13 03:57:59 -07:00
Christopher Jeffrey
b790dfea6d
merkleblock: remove useless method.
2017-05-13 03:52:58 -07:00
Christopher Jeffrey
e0c2eb122b
rpc: improve some network rpc calls.
2017-05-13 03:51:01 -07:00
Christopher Jeffrey
4cf82c442f
http/client: better unauth error message.
2017-05-13 02:48:15 -07:00
Christopher Jeffrey
af0ab46f21
config/validator: add some validation methods.
2017-05-13 02:39:03 -07:00
Christopher Jeffrey
677d85de1c
node: make plugin methods optional.
2017-05-13 02:01:22 -07:00
Christopher Jeffrey
5915338407
address: improve isNull.
2017-05-13 00:34:01 -07:00
Christopher Jeffrey
41d9493cc7
minor: lint.
2017-05-13 00:31:18 -07:00
Christopher Jeffrey
168012f4c5
networks: update minimum chainworks.
2017-05-13 00:29:56 -07:00
Christopher Jeffrey
0ea341772c
address: make bech32 addrs more sane.
2017-05-13 00:21:51 -07:00
Christopher Jeffrey
5e0898d920
rpc: minor.
2017-05-12 23:15:08 -07:00
Christopher Jeffrey
1ae6205e24
wallet/http: remove admin check for now. see #185 .
2017-05-12 15:57:01 -07:00
Christopher Jeffrey
2b970e2e40
wallet/http: treat sign call tx as an mtx. fixes #149 .
2017-05-12 15:52:18 -07:00
Christopher Jeffrey
93df5e7913
template: set default commitment of zeroes.
2017-05-12 15:52:18 -07:00
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
Christopher Jeffrey
a0d2cc598c
chaindb: do not use asyncobject.
2017-03-05 14:32:50 -08:00
Christopher Jeffrey
f2ab1611e4
db: rewrite lowlevelup without asyncobject.
2017-03-05 14:32:36 -08:00
Christopher Jeffrey
e52eebd652
fullnode: fix persistent mempool block addition/removal.
2017-03-05 13:01:30 -08:00
Christopher Jeffrey
c2b8dc37c7
mempool: handle trimming differently.
2017-03-05 11:43:28 -08:00
Christopher Jeffrey
47c1955e2c
mempool: rename hasTX to hasEntry.
2017-03-05 10:02:34 -08:00
Christopher Jeffrey
210ce4c767
mempool: evict by lowest fee rate.
2017-03-05 02:03:14 -08:00
Christopher Jeffrey
ef92070a28
rbt: always return node for insert.
2017-03-05 01:23:46 -08:00
Christopher Jeffrey
fce0126c13
util: refactor hrtime usage.
2017-03-05 01:23:16 -08:00
Christopher Jeffrey
a2fd9b35c6
rpc: fix besthash byte order.
2017-03-04 16:00:37 -08:00
Christopher Jeffrey
1a5263ef23
chain: minor. logging.
2017-03-04 16:00:07 -08:00
Christopher Jeffrey
a96868ff8e
pool: track peer heights.
2017-03-04 15:40:59 -08:00
Christopher Jeffrey
beefcfba67
chain: return null on orphan blocks.
2017-03-04 15:37:27 -08:00
Christopher Jeffrey
b265877b36
chain: refactor event emission and logging.
2017-03-04 15:34:16 -08:00
Christopher Jeffrey
fbf73ddabf
memorydb: rename to memdb.
2017-03-04 11:37:21 -08:00
Christopher Jeffrey
df06c91557
memorydb: more validation.
2017-03-04 11:31:46 -08:00
Christopher Jeffrey
d4f5f7cd66
rbt: refactor and move.
2017-03-03 18:11:41 -08:00
Christopher Jeffrey
694bab4ad0
net: less strict bip152 behavior.
2017-03-02 18:17:26 -08:00
Christopher Jeffrey
7b516ddd1e
net: more stall behavior.
2017-03-02 17:47:02 -08:00
Christopher Jeffrey
75877d2f22
upnp: rename resolve to discover.
2017-03-02 15:54:06 -08:00
Christopher Jeffrey
04735a1a37
upnp/ip: move some upnp functions to ip.
2017-03-02 15:50:25 -08:00
Christopher Jeffrey
b8bf8209f0
ip/netaddress: add reachability score.
2017-03-02 15:25:44 -08:00
Christopher Jeffrey
beaf9ee37e
upnp: minor.
2017-03-02 12:20:55 -08:00
Christopher Jeffrey
d09ed2442c
upnp: lint.
2017-03-02 12:18:25 -08:00
Christopher Jeffrey
c0a6952bb2
upnp: minor.
2017-03-02 12:14:04 -08:00
Christopher Jeffrey
36377d5a7f
upnp: better params for addPortMapping.
2017-03-02 12:04:09 -08:00
Christopher Jeffrey
0791bad973
upnp: do not throw when getting network interfaces.
2017-03-02 11:58:26 -08:00
Christopher Jeffrey
525e6f21b7
upnp: better timeouts.
2017-03-02 11:54:04 -08:00
Christopher Jeffrey
da5851ed51
net: add upnp support for port mappings and external ip.
2017-03-02 11:40:30 -08:00
Christopher Jeffrey
28b55339d5
http: improve request options.
2017-03-01 20:30:45 -08:00
Christopher Jeffrey
46a646aebd
mempool: refactor descendants handling.
2017-03-01 17:45:51 -08:00
Christopher Jeffrey
8977e99906
mempool: extra sanity checking for mining.
2017-03-01 15:19:55 -08:00
Christopher Jeffrey
027470e8cb
v1.0.0-beta.8
2017-03-01 15:04:25 -08:00
Christopher Jeffrey
77371fc501
mempool: fix fee estimator inject() method.
2017-03-01 15:03:05 -08:00
Christopher Jeffrey
bade290765
v1.0.0-beta.7
2017-03-01 12:26:55 -08:00
Christopher Jeffrey
53f607e19f
hostlist: minor.
2017-03-01 11:39:14 -08:00
Christopher Jeffrey
da69c5d888
hostlist: persist to file.
2017-03-01 11:29:11 -08:00
Christopher Jeffrey
ac6d7696a8
x509: lint.
2017-03-01 11:03:04 -08:00
Christopher Jeffrey
34cb226000
mempool: enable persistent fees.
2017-03-01 11:01:41 -08:00
Christopher Jeffrey
a11344db0e
mempool: refactor fee estimation.
2017-03-01 09:53:10 -08:00
Christopher Jeffrey
161fe6e2a1
net: increase timeout for getdata. see #144 .
2017-03-01 09:25:26 -08:00
Christopher Jeffrey
23ca2cc65f
mempool: minor.
2017-03-01 09:23:21 -08:00
Christopher Jeffrey
02f43304b4
pkg: add pkg.js.
2017-03-01 09:16:41 -08:00
Christopher Jeffrey
dae6917c00
bip70: refactor error handling.
2017-03-01 09:15:40 -08:00
Christopher Jeffrey
89ff0796c7
refactor: do not require json files.
2017-03-01 08:48:53 -08:00
Christopher Jeffrey
38cfdbf8f9
mempool: drop old getCoinView.
2017-03-01 07:26:20 -08:00
Christopher Jeffrey
3988d2766d
mempool: add double spend events.
2017-02-28 23:19:38 -08:00
Christopher Jeffrey
7a1e539700
http: refactor route handlers.
2017-02-28 22:45:47 -08:00
Christopher Jeffrey
bffc225179
chain/mempool/node: expose getSpentView.
2017-02-28 22:43:44 -08:00
Christopher Jeffrey
8cb2c4a1a0
mempool: refactor addr indexing.
2017-02-28 21:49:06 -08:00
Christopher Jeffrey
d92d6487b5
mempool: move memUsage method.
2017-02-28 20:55:50 -08:00
Christopher Jeffrey
653163929e
mempool: correct memusage numbers.
2017-02-28 20:48:51 -08:00
Christopher Jeffrey
92d896c729
mempool: refactor.
2017-02-28 17:21:16 -08:00
Christopher Jeffrey
3abc47c292
fullnode: minor.
2017-02-28 17:15:13 -08:00
Christopher Jeffrey
73210b3ed4
mempool: preliminary work for persistent fees.
2017-02-28 17:09:51 -08:00
Christopher Jeffrey
e7f850b4ba
fees: refactor estimator.
2017-02-28 16:57:45 -08:00
Christopher Jeffrey
42a2e61d7f
mempool: fix getDepends.
2017-02-28 15:22:35 -08:00
Christopher Jeffrey
c365ecb3ea
rpc: improve getrawtransaction.
2017-02-28 15:15:52 -08:00
Christopher Jeffrey
9f09de4867
rpc/http/wallet: more aggressive validation for addrs/keys.
2017-02-28 14:52:54 -08:00
Christopher Jeffrey
aa869e0b6a
fullnode: open http after walletdb.
2017-02-28 14:10:45 -08:00
Christopher Jeffrey
21bc517f8b
node: only add wallet addr if no others are available.
2017-02-28 14:05:46 -08:00
Christopher Jeffrey
e80c98d4e8
mempool: load descFee/descSize correctly.
2017-02-28 13:35:13 -08:00
Christopher Jeffrey
6dcbb93802
mempool: minor.
2017-02-28 13:21:53 -08:00
Christopher Jeffrey
7bfe5cfd08
mempool: return missing txs again.
2017-02-28 13:15:49 -08:00
Christopher Jeffrey
ce45b501da
mempool: lint.
2017-02-28 13:13:45 -08:00
Christopher Jeffrey
29fe6468eb
db: do not use isBrowser for bufferKeys check. see #137 .
2017-02-28 13:04:55 -08:00
Christopher Jeffrey
7bd89b35c3
mempool: persist to disk.
2017-02-28 12:59:19 -08:00
Christopher Jeffrey
08936c8970
mempool: fix countDescendants (again).
2017-02-28 10:43:05 -08:00
Christopher Jeffrey
3ac91b9a77
mempoolentry: improve serialization.
2017-02-28 10:41:59 -08:00
Christopher Jeffrey
7ccea6fbb8
mempool: fix countDescendants.
2017-02-28 10:41:21 -08:00
Christopher Jeffrey
60ff33bdb2
block: minor.
2017-02-28 10:13:48 -08:00
Christopher Jeffrey
e9d87dcd98
refactor: lint.
2017-02-28 10:09:17 -08:00
Christopher Jeffrey
a4201e6bd5
peer: better stall detection.
2017-02-28 10:08:17 -08:00
Christopher Jeffrey
56ccfaa980
merkleblock/minerblock: fix hasTX calls.
2017-02-28 09:32:17 -08:00
Christopher Jeffrey
45952a4140
mempool: preliminary work for persistent mempool.
2017-02-28 09:20:23 -08:00
Christopher Jeffrey
914b66b94f
block: do not cache height parsing.
2017-02-28 09:20:23 -08:00
Christopher Jeffrey
a535d7d414
tx: fix witness item check.
2017-02-28 09:20:22 -08:00
Christopher Jeffrey
ac70656e71
chain/tx: fixes.
2017-02-28 09:20:22 -08:00
Christopher Jeffrey
33bda01d21
tx/mempool: simplify some witness policy.
2017-02-28 09:20:22 -08:00
Christopher Jeffrey
7688d80e74
block/chain: refactor block verification and caching.
2017-02-28 09:20:22 -08:00
Christopher Jeffrey
47c43ea39a
rpcclient: refactor error handling.
2017-02-28 09:20:22 -08:00
Christopher Jeffrey
89160bdfa8
workers: fix ecsign.
2017-02-28 09:20:22 -08:00
Christopher Jeffrey
cb5fa84042
rpc: minor fixes.
2017-02-28 09:20:22 -08:00
Christopher Jeffrey
c5e4aa0245
rpc: refactor help handling.
2017-02-28 09:20:22 -08:00
Christopher Jeffrey
39c1817043
chain: add verifyBlock method. expose on rpc.
2017-02-28 09:20:22 -08:00
Christopher Jeffrey
426ab85f15
block: remove commitment hash cache.
2017-02-28 09:20:22 -08:00
Christopher Jeffrey
f71f2d954b
chain: optimize reward calculation.
2017-02-28 09:20:22 -08:00
Christopher Jeffrey
2a69b7ab7a
pool: account for header download time before invoking stall behavior.
2017-02-28 09:13:03 -08:00
Christopher Jeffrey
5511526d98
hd: add spanish wordlist. fixes #138 .
2017-02-28 05:59:11 -08:00
Christopher Jeffrey
2ee803810e
http: remove unnecessary headers.
2017-02-28 05:35:25 -08:00
Christopher Jeffrey
49bb9ed0fa
http: always parse json for compatability. fixes #146 .
2017-02-28 05:30:10 -08:00
Christopher Jeffrey
e31ddaa61a
mining: remove mod size from priority. better free calculation.
2017-02-27 16:58:44 -08:00
Christopher Jeffrey
e577228944
miner: improve rate comparison.
2017-02-27 16:33:45 -08:00
Christopher Jeffrey
c02f19a288
miner: better block timestamp creation.
2017-02-27 09:12:56 -08:00
Christopher Jeffrey
369ef75840
miner: move logs.
2017-02-27 00:29:11 -08:00
Christopher Jeffrey
0120e67203
rpc: more accurate client rules handling (gbt).
2017-02-27 00:16:44 -08:00
Christopher Jeffrey
0a8228b3f4
miner: log block creation.
2017-02-26 23:06:46 -08:00
Christopher Jeffrey
2d9f96d86b
mempool: use virtual size weighted against sigops.
2017-02-26 22:50:25 -08:00
Christopher Jeffrey
769bbd1370
rpc: clean up some rpc calls.
2017-02-26 22:50:07 -08:00
Christopher Jeffrey
a68ade51bc
miner: minor.
2017-02-26 22:12:00 -08:00
Christopher Jeffrey
1dd0e366ac
mempool: fix descendant fees calculation.
2017-02-26 22:05:43 -08:00
Christopher Jeffrey
6d4a2c61cb
miner: fix priorityWeight check.
2017-02-26 21:54:49 -08:00
Christopher Jeffrey
b73b2fba85
heap: minor refactor.
2017-02-26 21:53:05 -08:00
Christopher Jeffrey
e49e877f17
rpc: do not use weight pre-segwit (see 9fc7f0b).
2017-02-26 21:20:24 -08:00
Christopher Jeffrey
70d4de39ce
miner: use a proper priority queue.
2017-02-26 12:53:41 -08:00
Christopher Jeffrey
bb5a7b00d6
http: less spam.
2017-02-26 04:27:00 -08:00
Christopher Jeffrey
ad51bf53f3
rpc: better bitcoind compat.
2017-02-26 04:21:24 -08:00
Christopher Jeffrey
3ac0d3de78
http: fix for ckpool (getblocktemplate).
2017-02-26 04:03:27 -08:00
Christopher Jeffrey
c80c242738
rpc: reverse target endianness.
2017-02-26 03:25:55 -08:00
Christopher Jeffrey
cb7af959ce
miner: compare cumulative descendant fee rate.
2017-02-26 03:09:33 -08:00
Christopher Jeffrey
dcf7e7a9f4
miner: improve policy defaults. switch rate sorting immediately.
2017-02-25 23:12:13 -08:00
Christopher Jeffrey
3ec781ee60
miner: expose max-block-weight config option.
2017-02-25 22:25:34 -08:00
Christopher Jeffrey
386ef622c0
rpc: only add wit-nonce if segwit is active (submitblock).
2017-02-25 18:22:22 -08:00
Christopher Jeffrey
4c4cf9e6a4
peer: timeout inv spamming.
2017-02-24 16:25:29 -08:00
Christopher Jeffrey
fb997d43bb
pool: increase max header chain failures.
2017-02-23 20:56:21 -08:00
Christopher Jeffrey
7104e4c02f
miner: use bigger reserve defaults.
2017-02-22 20:56:47 -08:00
Christopher Jeffrey
f2964e06fb
minerblock: ensure constant coinbase size.
2017-02-22 20:35:34 -08:00
Christopher Jeffrey
09c2357552
networks: increase default fee rates.
2017-02-22 11:38:37 -08:00
Christopher Jeffrey
304f0e7e75
smart coin selection.
2017-02-22 11:35:49 -08:00
Steven Bower
393dd5dae7
HTTP: Fix DELETE requests
2017-02-20 17:36:28 -08:00
Christopher Jeffrey
275eb917aa
chain: shave a few ms of block processing time.
2017-02-13 22:27:23 -08:00
Christopher Jeffrey
1e07d1ba83
chain: improve target and mtp calculation.
2017-02-13 21:59:41 -08:00
Christopher Jeffrey
dcf705d8bc
chain: s/bad-witness-merkle-size/bad-witness-nonce-size/
2017-02-11 12:54:24 -08:00
Christopher Jeffrey
5d2429a7b1
docs: get rid of global symbols.
2017-02-10 10:09:27 -08:00
Christopher Jeffrey
e8b0a9ef83
pool: fix uncatchable error.
2017-02-08 15:57:13 -08:00
Christopher Jeffrey
7cc62c0a1e
rpc: fix getpeerinfo - relaytxes.
2017-02-08 15:56:31 -08:00
Christopher Jeffrey
c12a0630aa
pool: do not request duplicate txs.
2017-02-08 14:40:55 -08:00
Christopher Jeffrey
e3c0b123a0
docs: build and expose scripterror properly.
2017-02-07 16:09:25 -08:00
Christopher Jeffrey
182b25f9ab
fullnode: document events.
2017-02-07 14:18:39 -08:00
Christopher Jeffrey
b0b7745039
fullnode: broadcast in selfish mode.
2017-02-07 14:15:33 -08:00
Christopher Jeffrey
1ec49be808
config: expose mempool max size.
2017-02-07 14:02:54 -08:00
Christopher Jeffrey
d3f94dbc6a
mempool: force broadcasting on addTX fail.
2017-02-07 13:56:30 -08:00
Christopher Jeffrey
256c449e68
ec: force secp25k1 bindings only.
2017-02-07 13:55:58 -08:00
Christopher Jeffrey
d56e50e166
script: docs for getters.
2017-02-05 18:17:49 -08:00
Christopher Jeffrey
23f7d3a782
script: minor.
2017-02-04 15:09:06 -08:00
Christopher Jeffrey
ef95b69e5e
minor: refactor. move asyncobject.
2017-02-04 14:52:13 -08:00
Christopher Jeffrey
60125003a4
ip: minor.
2017-02-04 01:16:17 -08:00
Christopher Jeffrey
1b5d361415
docs: add types.
2017-02-04 00:42:17 -08:00
Christopher Jeffrey
4e7df6ef87
docs: get jsdoc compiling again.
2017-02-03 22:47:26 -08:00
Christopher Jeffrey
b4a21cad2d
proxysocket: do not stop reads.
2017-02-03 10:25:04 -08:00
Christopher Jeffrey
91f36b3d1c
net: expose more of the tcp interface.
2017-02-03 09:59:02 -08:00
Christopher Jeffrey
f20aae676a
pool: do not reset chain when checkpoints=false.
2017-02-02 17:55:38 -08:00
Christopher Jeffrey
69b442a318
wallet: fix resend.
2017-02-02 16:54:15 -08:00
Christopher Jeffrey
9650d8adae
scrypt: move async version.
2017-02-02 11:45:11 -08:00
Christopher Jeffrey
bec4264fcf
crypto: remove async functions.
2017-02-02 11:34:35 -08:00
Christopher Jeffrey
a443b88f92
chain: cleanup some functions.
2017-02-02 11:28:25 -08:00
Christopher Jeffrey
5b1966a6c3
bip70: comments.
2017-02-01 19:56:22 -08:00
Christopher Jeffrey
91af611866
sha256: minor.
2017-02-01 18:54:10 -08:00
Christopher Jeffrey
c225f67bfc
crypto: remove subtle support. remove DSA support.
2017-02-01 17:46:54 -08:00
Christopher Jeffrey
66dfce4397
chain: avoid getDeployments in spv mode. see #128 .
2017-02-01 17:15:57 -08:00
Christopher Jeffrey
87f9d58d47
crypto: fix hash160 for browser.
2017-02-01 17:04:46 -08:00
Christopher Jeffrey
096d348791
crypto: optimized sha256 for browser.
2017-02-01 16:59:40 -08:00
Christopher Jeffrey
db85d6db18
network: remove batchSize.
2017-02-01 11:56:06 -08:00
Christopher Jeffrey
65f7b94c07
hostlist: lint.
2017-01-31 16:28:26 -08:00
Christopher Jeffrey
389adee8f0
mining: change some miner apis.
2017-01-31 16:27:05 -08:00
Christopher Jeffrey
95fab44015
hostlist: allow multiple refs even if full.
2017-01-30 15:47:55 -08:00
Christopher Jeffrey
9cd70fb589
hostlist: improve hash perf.
2017-01-30 15:44:29 -08:00
Christopher Jeffrey
4740a2fff3
wallet: rename noSorting to sort. see #122 .
2017-01-29 17:28:12 -08:00
Christopher Jeffrey
80d47b8db4
wallet: more failsafes for sending.
2017-01-29 17:21:16 -08:00
Christopher Jeffrey
3d0254054c
peer: remove useless call.
2017-01-29 16:49:09 -08:00
Christopher Jeffrey
cc6ccfe9d9
peer: only request cmpctblock if we received sendcmpct.
2017-01-29 16:26:36 -08:00
Christopher Jeffrey
fae56d1387
pool: less log spam.
2017-01-29 16:08:59 -08:00
Christopher Jeffrey
4085321145
net: better compact block debug logs.
2017-01-29 13:19:30 -08:00
Christopher Jeffrey
5e1d8c743c
chain: add genesis check.
2017-01-28 19:29:16 -08:00
Christopher Jeffrey
0f8fd1dc77
minor: lint.
2017-01-28 19:09:12 -08:00
Christopher Jeffrey
17742434a5
logger: handle mkdir error.
2017-01-28 19:06:56 -08:00
Christopher Jeffrey
963e812bf9
chain: do not handle genesis block.
2017-01-28 19:06:15 -08:00
Christopher Jeffrey
0ec58ca93d
wallet: minor style change.
2017-01-27 18:11:23 -08:00
Christopher Jeffrey
86fdf33f8a
block: fix isBlock.
2017-01-27 18:10:51 -08:00
Christopher Jeffrey
695509b1b3
peer: fix potential memory leak.
2017-01-27 18:10:51 -08:00
Christopher Jeffrey (JJ)
94ec846fdd
Merge pull request #122 from mnaamani/bip69-optional
...
add option to disable bip69 in Wallet.send
2017-01-27 17:49:35 -08:00
Christopher Jeffrey
394df48408
pool: some cleanup.
2017-01-27 00:11:34 -08:00
Christopher Jeffrey
a61679c4a9
miner: 4 byte nonces.
2017-01-27 00:08:49 -08:00
Christopher Jeffrey
8e6819714b
merkleblock: improve extractTree perf.
2017-01-27 00:08:49 -08:00
Mokhtar Naamani
e651338ff3
pool: graceful disconnect - minor fix
2017-01-27 10:01:35 +02:00
Mokhtar Naamani
06d25a9007
pool: graceful disconnect - simpler approach
2017-01-27 09:56:58 +02:00
Mokhtar Naamani
de36d64d4a
pool: graceful disconnect
2017-01-26 18:21:13 +02:00
Christopher Jeffrey
bae2aa33dd
parser: minor.
2017-01-26 03:00:14 -08:00
Christopher Jeffrey
67e6c8d768
http: add hooks.
2017-01-26 03:00:14 -08:00
Christopher Jeffrey
e52130ef29
config: fix path handling.
2017-01-26 03:00:14 -08:00
Christopher Jeffrey
977ef01d5a
txdb: failsafe for unconfirm.
2017-01-26 03:00:14 -08:00
Christopher Jeffrey
0a1c0d1890
config: refactor config parsing.
2017-01-26 03:00:13 -08:00
Christopher Jeffrey
f576ab6e6c
pool: always relay onion addresses.
2017-01-26 03:00:13 -08:00
Christopher Jeffrey
e05fb77d33
socks: more checks for tor resolve.
2017-01-26 03:00:13 -08:00
Christopher Jeffrey (JJ)
2552b3fca3
Merge pull request #123 from mnaamani/fix-pool-broadcast-item
...
pool: fix BroadcastItem multiple reject methods
2017-01-25 13:35:31 -08:00
Mokhtar Naamani
e1147cdf3d
pool: fix BroadcastItem multiple reject methods
2017-01-25 21:20:16 +02:00
Christopher Jeffrey
64114460ad
socks: refactor addr parsing.
2017-01-25 02:31:40 -08:00
Christopher Jeffrey
00dccf0d5d
socks: minor.
2017-01-25 02:01:45 -08:00
Christopher Jeffrey
c6aad6448c
socks: error handling.
2017-01-25 01:20:58 -08:00
Christopher Jeffrey
b8cd9893fb
net: fix socket and dns callbacks.
2017-01-24 18:34:01 -08:00
Christopher Jeffrey
32fd1d6dba
dns: fix tor resolution.
2017-01-24 18:30:47 -08:00
Christopher Jeffrey
5073c1508f
net: tor support for outgoing conns.
2017-01-24 18:25:44 -08:00
Christopher Jeffrey
5288e8a619
socks: refactor errors.
2017-01-24 18:21:41 -08:00
Christopher Jeffrey
3a0b7d07d3
socks: fix no auth and proxying.
2017-01-24 06:03:27 -08:00
Christopher Jeffrey
a87484f2e8
socks: misc fixes.
2017-01-24 05:17:52 -08:00
Christopher Jeffrey
0de1302ca9
socks: fix state handling.
2017-01-24 03:58:18 -08:00
Christopher Jeffrey
6c9dd723cd
net: add socks proxy.
2017-01-24 03:52:08 -08:00
Mokhtar Naamani
38e5a0f615
add option to disable bip69 in Wallet.send
2017-01-24 10:10:25 +02:00
Christopher Jeffrey
b8324e0b09
ip: rename some functions.
2017-01-23 23:08:21 -08:00
Christopher Jeffrey
07c3177227
ip: better tor support.
2017-01-23 22:44:17 -08:00
Christopher Jeffrey
2c0f8ce226
peer: block type fix for compact blocks.
2017-01-23 21:23:01 -08:00
Christopher Jeffrey
caf8043dcb
peer: fix handleDrain.
2017-01-23 21:21:05 -08:00
Christopher Jeffrey
592191c44c
peer: less aggresive stall behavior.
2017-01-23 20:43:17 -08:00
Christopher Jeffrey
cfeafb6273
net: wait for peer drain on block serving.
2017-01-23 20:30:02 -08:00
Christopher Jeffrey
658120de6d
netaddr: fix isIPv6.
2017-01-23 19:58:06 -08:00
Christopher Jeffrey
e6dd78abe1
minor: lint.
2017-01-23 19:43:19 -08:00
Christopher Jeffrey
016d0da096
ip/netaddress: better ip parsing.
2017-01-23 19:36:19 -08:00
Christopher Jeffrey
2d49e38580
chain: coin cache.
2017-01-23 15:18:25 -08:00
Christopher Jeffrey
2a6ee729a0
pool: disable bip37 by default.
2017-01-23 15:06:20 -08:00
Christopher Jeffrey
c6b439f21c
chain/pool: remove witness option.
2017-01-23 14:51:40 -08:00
Christopher Jeffrey
1e9ebcc0d1
config: cleanup.
2017-01-23 13:44:11 -08:00
Christopher Jeffrey
c44fc3bcef
pool: disable checkpoints properly. rename prop for consistency.
2017-01-23 13:40:29 -08:00
Christopher Jeffrey
e7413aabb7
chain/pool: disable checkpoints on checkpoint failure. see #121 .
2017-01-23 13:25:01 -08:00
Christopher Jeffrey
77032f758d
chain: different checkpoints handling.
2017-01-23 12:41:07 -08:00
Christopher Jeffrey
3374bffd14
invitem: rename witness flag for consistency.
2017-01-23 05:34:05 -08:00
Christopher Jeffrey
30ab5c2a88
http/pool: more options fixes.
2017-01-23 03:58:47 -08:00
Christopher Jeffrey
dc9f31f36f
pool: fix port for options.
2017-01-23 03:50:54 -08:00
Christopher Jeffrey
a52db227e3
network: fix/improve some chain params.
2017-01-23 03:42:50 -08:00
Christopher Jeffrey
cbb45db801
config: rename useCheckpoints. allow implicit noAuth on localhost.
2017-01-23 03:19:19 -08:00
Christopher Jeffrey
2fdbdfc087
network: remove witness field.
2017-01-23 03:03:38 -08:00
Christopher Jeffrey
86b7292c4a
node: enable workers by default. throw warnings if native bindings were not built.
2017-01-22 20:39:42 -08:00
Christopher Jeffrey
e32f521a43
packets: limit chain locators.
2017-01-22 20:05:07 -08:00
Christopher Jeffrey
00f24dc11e
peer: minor. change log level.
2017-01-22 19:57:37 -08:00
Christopher Jeffrey
1a2f29a360
walletdb: improve global resend.
2017-01-22 15:25:33 -08:00
Christopher Jeffrey
25899827fd
net: remove noDiscovery. exempt bip150 packets from lock.
2017-01-22 14:48:03 -08:00
Christopher Jeffrey
33fbdff127
mtx: call TX.getJSON in MTX.toJSON. see #120 .
2017-01-22 14:41:11 -08:00
Christopher Jeffrey
6cca0aac1c
pool: minor fixes.
2017-01-21 17:27:15 -08:00
Christopher Jeffrey
d516035473
pool: minor.
2017-01-21 17:06:10 -08:00
Christopher Jeffrey
6e13fe57c0
pool: refactor header sync.
2017-01-21 16:59:20 -08:00
Christopher Jeffrey
219671c620
pool: do not emit tx if we have a mempool.
2017-01-21 15:38:39 -08:00
Christopher Jeffrey
51a25bf15f
net/nodeclient: always resend bloom filter. see #119 .
2017-01-21 15:20:03 -08:00
Christopher Jeffrey
39b941516d
chainentry: minor.
2017-01-21 14:40:51 -08:00
Christopher Jeffrey
f3f585defc
pool: cleanup.
2017-01-21 13:59:13 -08:00
Christopher Jeffrey
b212eed282
net: handle public ip and port better.
2017-01-21 13:56:41 -08:00
Christopher Jeffrey
dc839062bf
pool: minor.
2017-01-21 13:20:44 -08:00
Christopher Jeffrey
545c0004e9
pool: minor.
2017-01-21 13:07:49 -08:00
Christopher Jeffrey
be4145e163
pool/peer: fixes. cleanup.
2017-01-21 13:03:53 -08:00
Christopher Jeffrey
58f8035add
pool: noncelist.
2017-01-21 12:57:01 -08:00
Christopher Jeffrey
f67eeee936
pool: minor.
2017-01-21 05:22:46 -08:00
Christopher Jeffrey
518a113e97
pool: fix error.
2017-01-21 05:19:53 -08:00
Christopher Jeffrey
44201193e8
pool: noncelist.
2017-01-21 05:18:18 -08:00
Christopher Jeffrey
3abfdb3770
pool: cleanup.
2017-01-21 04:15:16 -08:00
Christopher Jeffrey
9d580289ab
rpc: fix peer.hostname.
2017-01-21 04:12:39 -08:00
Christopher Jeffrey
59e73b24ca
parser: minor.
2017-01-21 03:56:30 -08:00
Christopher Jeffrey
4008caff51
peer: minor.
2017-01-21 03:49:44 -08:00
Christopher Jeffrey
26f6185097
spvnode: fix events.
2017-01-21 03:48:57 -08:00
Christopher Jeffrey
4692849593
peer: abstract all deps.
2017-01-21 03:43:26 -08:00
Christopher Jeffrey
6016d96202
pool: move sync method out of peer.
2017-01-20 22:24:45 -08:00
Christopher Jeffrey
de0a60340b
chain: add getProofTime.
2017-01-20 22:05:04 -08:00
Christopher Jeffrey
b60e0e20a4
pool: stricter standards for requests.
2017-01-20 20:51:36 -08:00