Braydon Fuller
3cec13ef5e
blockstore: add block data types with an undo type
2019-04-08 13:18:53 -07:00
Braydon Fuller
abd2ae4b5d
blockstore: prevent blocks writes at the same position
2019-04-08 13:18:53 -07:00
Braydon Fuller
2d08b296f7
blockstore: recover from block write interrupt
2019-04-08 13:18:52 -07:00
Braydon Fuller
620f21d6f5
blockstore: await for level block store writes
2019-04-08 13:18:52 -07:00
Braydon Fuller
8435a116f1
blockstore: add file block storage
2019-04-08 13:18:47 -07:00
Braydon Fuller
392b3836fc
Merge pull request #715 from pinheadmz/inspect
...
Use custom `inspect` for all objects to avoid deprecation warning
2019-04-05 09:41:24 -07:00
Braydon Fuller
7136c256fc
Merge pull request #745 from pinheadmz/hashstring
...
util: reverse buffers instead of strings
2019-04-05 08:36:47 -07:00
Matthew Zipkin
1b868b6a9d
util: reverse buffers instead of strings
2019-04-02 16:53:46 -07:00
Braydon Fuller
7ceb8874ee
Merge pull request #736 from braydonf/coin-cache
...
Remove coin cache
2019-04-02 15:24:07 -07:00
Javed Khan
6a01409b79
Merge pull request #739 from pinheadmz/scan
...
node-http: require Bloom filter is loaded for `rescan` socket call
2019-04-02 18:55:53 +05:30
Matthew Zipkin
83639f151c
util: fallback for inspect
2019-03-27 07:36:22 -04:00
Mark Tyneway
a28ffa272a
wallet rpc: add getaddressinfo rpc command
...
update the rpc command to better match bitcoind.
add the ismine and iswatchonly fields and
segwit related fields such as witness_version
and witness_program.
2019-03-26 16:13:18 -07:00
Mark Tyneway
26a2000b01
node rpc: update validateaddress
...
updates validateaddress to match the changes
in bitcoind https://github.com/bitcoin/bitcoin/pull/10583 .
removes the fields ismine and iswatchonly, those
are things that a wallet would know, not a node.
adds segwit related fields, witness_version and
witness_program. test changes to the node rpc method
validateaddress with p2pkh, p2sh, p2wpkh and p2wsh addresses
2019-03-26 16:03:23 -07:00
Matthew Zipkin
11d70432b3
node-http: require filter to scan
2019-03-26 10:17:10 -07:00
Braydon Fuller
a9ebeb3871
blockchain: remove coin cache
2019-03-21 15:15:51 -07:00
Matthew Zipkin
5751b8c330
rpc: multiple fixes and tests
...
wallet-rpc: fix listsinceblock height
wdb: fix getWalletPaths() always return nothing
wallet: add unlockCoins() for lockunspent rpc
wallet-rpc: correct num args for some rpc calls
wallet-rpc: fix args for importwallet and importprunedfunds
wallet-rpc: importprunedfunds error misleading
wallet-rpc: importPubkey args
wallet-rpc: listsinceblock arg count error
wallet-rpc: listTransactions ignoring account param
wallet-rpc: better sendMany error msgs
wallet-rpc: sendMany subtractfee is bool not obj
wallet-rpc: dont check if not implemented
test: add rpc-test
2019-03-11 14:36:13 -07:00
Matthew Zipkin
df4e287817
utils: custom inspect for objects
2019-03-11 14:28:45 -07:00
Nodar Chkuaselidze
c0fb984da6
wallet: create non-templated transaction.
2019-03-05 21:14:25 +04:00
Braydon Fuller
c1f5975fb1
Merge pull request #705 from rsbondi/rpc-help
...
rpc help list commands
2019-03-04 11:12:33 -08:00
Richard Bondi
9aebfb74e0
rpc help list commands
2019-03-02 11:38:38 -06:00
Matthew Zipkin
a2bf18ff18
wallet: better wallet.send outputs error
2019-03-01 10:45:05 -08:00
Braydon Fuller
ea1c6becb5
Merge pull request #700 pinheadmz/blockjson
...
block: inspect() expects buffer from getCommitmentHash()
2019-02-22 18:20:01 -08:00
Matthew Zipkin
67a258ea74
block: get wit-commit as buffer
2019-02-22 18:08:22 -08:00
Nodar Chkuaselidze
a9193f052f
mempool: fix malleability check in mempool
2019-02-14 19:56:51 +04:00
Matthew Zipkin
1696b3c7bb
wallet: require pubkey for watchonly
2019-02-11 14:14:33 -08:00
Javed Khan
7c64fd845c
Merge pull request #684 from braydonf/update-tests
...
Update transaction and script tests
2019-02-11 21:38:44 +05:30
Matthew Zipkin
bb1ce25449
wallet-http: create account: remove unused 'watch-only'
2019-02-08 16:26:51 -08:00
Braydon Fuller
35a25e0d8b
protocol: clear regtest seeds
...
This prevents attempts to add itself as a peer that would
generate unnecessary error log messages when running a regtest node.
2019-02-07 18:56:51 -08:00
Steven Bower
fe5a6d7eff
wallet: improve logging (minor)
2019-02-07 17:01:37 -08:00
Matthew Zipkin
f0806a54dd
rpc: remove handleError
2019-02-07 14:04:37 -08:00
Matthew Zipkin
7303d284d5
wallet-rpc: log queries
2019-02-07 14:04:37 -08:00
Matthew Zipkin
da2084f503
rpc: identify node/wallet in log
2019-02-07 14:04:37 -08:00
Matthew Zipkin
d9044960ad
http: identify node/wallet in log
2019-02-07 14:04:37 -08:00
Braydon Fuller
39684df605
Merge pull request #676 from tynes/update-regtest
...
Update Regtest Specific Params
2019-02-05 11:37:20 -08:00
Braydon Fuller
37fc9a78e4
script: update script tests and behavior
...
References:
- https://github.com/bitcoin/bitcoin/pull/12425
- https://github.com/bitcoin/bitcoin/pull/12167
- https://github.com/bitcoin/bitcoin/pull/10699
2019-02-01 16:32:39 -08:00
Braydon Fuller
efa78100e0
script: update tx standardness rules and more tx tests
...
References:
- https://github.com/bitcoin/bitcoin/pull/11423
- https://github.com/bitcoin/bitcoin/pull/12600
- https://github.com/bitcoin/bitcoin/pull/12082
Trivial References:
- https://github.com/bitcoin/bitcoin/pull/12393
- https://github.com/bitcoin/bitcoin/pull/6539
- https://github.com/bitcoin/bitcoin/pull/10742
- ecb11f561c
2019-02-01 16:32:31 -08:00
Javed Khan
3c1fda4826
pool: fix this.options.discover
2019-02-01 21:56:57 +05:30
Braydon Fuller
fa877503a4
blockchain: enable segwit for regtest
2019-01-31 13:03:59 -08:00
Javed Khan
127fea663f
pool: disable discover with only
2019-01-31 20:27:47 +05:30
Mark Tyneway
b10aea8f3d
bugfix: regtest segwit start time 0
...
The deployments are written to and read
from a database and the start time is
a U32. Changing the value to -1 will cause
the value to be read incorrectly and cause
the tests to fail.
2019-01-28 15:31:59 -08:00
Javed Khan
70886c33e2
networks: restore regtest ports
2019-01-28 15:31:59 -08:00
Javed Khan
53a09b0a02
networks: always activate segwit for regtest
2019-01-28 15:31:57 -08:00
Javed Khan
48f38a4a65
networks: update regtest params
2019-01-28 15:31:56 -08:00
Javed Khan
6f1a561db5
Merge pull request #641 from nodar-chkuaselidze/fix/mempool-index
...
mempool: reflect spent coins in mempool coinview.
2019-01-21 18:52:34 +05:30
Javed Khan
bd7a0949b6
Merge pull request #632 from nodar-chkuaselidze/fix/addresses
...
address minor fixes
2019-01-04 20:45:34 +05:30
Javed Khan
b0bf2ddd37
Merge pull request #648 from OrfeasLitos/get-keys-from-multisig
...
Implement and test KeyRing.fromMultisigScript(script, i)
2019-01-04 20:35:35 +05:30
Javed Khan
54cdd16723
Merge pull request #633 from pinheadmz/patch-4
...
net: add testnet seeds (for browser)
2019-01-01 18:35:52 +05:30
Orfeas Litos
6d48e41c96
Implement KeyRing.fromMultisigScript(script, i)
2018-12-09 22:11:44 +00:00
Christopher Jeffrey
0b70a940a3
test: get tests passing in chrome.
2018-12-08 02:40:49 -08:00
Nodar Chkuaselidze
32cba1bf4a
mempool: reflect spent coins in mempool coinview.
...
Currently coinview does not account for spent coins in the mempool,
This does not create problems because we have additional checks in
right places which detect double spends, but technically
coinview should help you detect double spent in the mempool as well.
This way it will be compatible with chain.getCoinView.
getSpentView will still return all outputs that are available
in the mempool. (This could also return spentView from indexers if
available, this method is used by `signrawtransaction`.)
2018-11-25 23:32:13 +04:00
Matthew Zipkin
8b6eba165b
net: add testnet seeds (for browser)
...
bcoin browser mode can not use DNS to discover seeds, so they are hard-coded.
see: https://github.com/bcoin-org/bdns/blob/master/lib/dns-browser.js#L23
There's already plenty in `/lib/net/seeds/main.js` so this is just to get browser-nodes running on testnet.
Seeds were pulled from my own `hosts.json` file on a live testnet bcoin node
2018-11-15 17:22:23 -08:00
Nodar Chkuaselidze
579a98a531
address: minor fixes
2018-11-15 17:39:25 +04:00
Buck Perley
e305d900d6
pkg: add currency and other info ( #623 )
...
matches expected outputs from hsd
2018-11-01 12:44:08 -07:00
Javed Khan
fe340265c8
Merge pull request #444 from nodar-chkuaselidze/wallet-api/create-tx
...
Allow optional signing in createTX http endpoint
2018-10-19 23:22:54 +05:30
Christopher Jeffrey
e0863d4a91
deps: upgrade to bcrypto 2.0. upgrade other deps.
2018-09-29 14:38:53 -07:00
Javed Khan
beb7f8fb1d
node: move closed message to handleClose
2018-09-17 23:54:36 +05:30
Javed Khan
b18a8a3f13
bin: handle close when interrupted
2018-09-17 23:54:34 +05:30
Matthew Zipkin
7d2caa072b
pool: fixes getBroadcasted() error
2018-08-31 09:30:40 -07:00
Javed Khan
f01e2fb626
pool: watchAddress continue to accept addr string
2018-08-29 23:18:28 +05:30
Javed Khan
e4f41db5ab
Merge pull request #576 from braydonf/ac
...
Tab completion of API in Node.js REPL
2018-08-27 22:26:19 +05:30
Javed Khan
3e87598dfe
Merge pull request #587 from braydonf/getnewaddress
...
wallet: get correct address for `getnewaddress` rpc
2018-08-25 01:49:56 +05:30
Braydon Fuller
fb9cee7176
wallet: get correct address for getnewaddress rpc
2018-08-24 13:07:04 -07:00
Javed Khan
175ff7906d
http: use Address instead of string
2018-08-25 00:22:12 +05:30
Braydon Fuller
0e93cbaec4
bcoin: enumerate properties
2018-08-17 14:58:49 -07:00
Javed Khan
7f4494e278
multi: pass new Node option file to wallet plugin
...
`file` is similar to `config`, but it propogates to the wallet plugin
and loads the wallet config file only if set to true.
This is useful to disable config files for both node and wallet when
running a full node, for example in a test environment.
2018-08-13 17:36:21 +05:30
Javed Khan
9a22976631
multi: fix lint warnings
2018-08-13 17:30:30 +05:30
Christopher Jeffrey
f10d7b8363
pkg: remove bn.js dependency.
2018-08-10 16:33:38 -07:00
Christopher Jeffrey
85ed59c842
pool: fix handleGetBlocks.
2018-08-10 16:28:23 -07:00
Christopher Jeffrey
a15b1e2d62
net: remove redundant item resolving.
2018-08-10 16:25:38 -07:00
Christopher Jeffrey
dc5b8c373d
net: properly clear timers.
2018-08-10 16:24:10 -07:00
Christopher Jeffrey
a0ac953079
bcoin: update logger usage.
2018-08-10 16:24:10 -07:00
Christopher Jeffrey
9ee3854828
bdb: upgrade bdb usage for keys.
2018-08-10 16:24:10 -07:00
Christopher Jeffrey
a45e683eb2
bcoin: switch to bsert for everything.
2018-08-10 16:23:46 -07:00
Christopher Jeffrey
b92839c82a
bcoin: use buffer-map. see #533 .
2018-08-10 16:23:46 -07:00
Steven Bower
eea4013dcf
Revert "test: http-test - don't read wallet.conf"
...
See issue #561
This reverts commit 469abb03fe .
2018-08-08 14:48:16 -07:00
Braydon Fuller
7ea95b5795
net: revolve pending broadcast items
...
If `pool.close()` is called if the pool is not connected, timers
won't be cleared. Transactions can be added to the pool while
it's not connected.
2018-08-06 10:18:07 -07:00
Javed Khan
469abb03fe
test: http-test - don't read wallet.conf
2018-08-06 20:50:34 +05:30
Nodar Chkuaselidze
1b92e7b4ea
wallet-http: sign parameter to create transaction without signatures.
2018-07-20 17:52:05 +04:00
Christopher Jeffrey
58ea98dadb
v1.0.2
2018-07-13 13:29:16 -07:00
Christopher Jeffrey
7647145614
networks: add one more checkpoint for testnet.
2018-07-13 13:28:58 -07:00
Christopher Jeffrey
da944371fb
v1.0.1
2018-07-13 13:17:03 -07:00
Christopher Jeffrey
08a04b53c3
net: update default mainnet seeds.
2018-07-13 12:57:29 -07:00
Christopher Jeffrey
44e856d36b
networks: update checkpoints and chainwork.
2018-07-13 12:57:12 -07:00
Christopher Jeffrey
b0155b663c
v1.0.0
2018-07-12 10:20:50 -07:00
Christopher Jeffrey
e15d7917fa
mtx: allow passing of preferred inputs to coin selector.
2018-07-12 10:17:13 -07:00
Christopher Jeffrey
cfeacb309e
chain: mark historical bad merkle block as mutable.
2018-07-12 10:17:13 -07:00
Christopher Jeffrey
41af7acfd6
net: remove bip150/bip151 support.
2018-07-12 10:17:13 -07:00
Christopher Jeffrey
b6d067ec93
consensus: fail early on pow check when target > 256 bits.
2018-07-12 10:17:12 -07:00
Christopher Jeffrey
05c38853d7
net: add more aggressive dos prevention.
2018-07-12 10:17:12 -07:00
Christopher Jeffrey
22830cf6f3
chain: earlier sanity checks.
2018-07-12 10:16:58 -07:00
Orfeas Stefanos Thyfronitis Litos
208dcfd1d5
wallet: fixed typos; pool: minor jsdoc ( #511 )
2018-07-04 17:49:00 +05:30
Nodar Chkuaselidze
92ebbbdde7
wallet-node: fix client cfg parsing
2018-07-04 17:12:06 +05:30
Nodar Chkuaselidze
ef43dad9ee
wallet-account: fix change derivation path
2018-07-03 13:03:27 +05:30
Matthew Zipkin
64ba4c7567
txmeta: fix JSON confirmations value when unconfirmed, add test
2018-07-03 11:30:50 +05:30
Buck Perley
f00ed98eea
Merge pull request #487 from bucko13/sort-outputs
...
pass sort option through http
2018-06-14 10:23:25 -07:00
bucko13
3a49d53372
pass sort option through http
2018-06-13 10:40:11 -07:00
Christopher Jeffrey
0977c5c133
net: fix nonce creation.
2018-06-08 04:16:59 -07:00
bucko13
50263dfc0b
add account option to create and send
2018-05-01 17:39:42 -07:00
Christopher Jeffrey
a85ff2bbe9
pool: fix public port option.
2018-04-06 16:15:10 -07:00
Christopher Jeffrey
0c3657e167
networks: update checkpoints.
2018-04-06 16:15:10 -07:00