Mark Tyneway
10292b043d
test: document bech32 test vectors
...
adds additional information about the test vectors
pulled from https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki
2019-03-15 16:43:50 -07:00
Braydon Fuller
2b2e53d83d
Merge pull request #550 from pinheadmz/rpcfixandtest
...
RPC: fix several wallet RPC calls and add RPC tests
2019-03-11 15:09:26 -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
Braydon Fuller
3ab296ce22
test: avoid port collision with a running regtest node
2019-03-06 16:55:43 -08:00
Nodar Chkuaselidze
c0fb984da6
wallet: create non-templated transaction.
2019-03-05 21:14:25 +04:00
Matthew Zipkin
e40e1c263c
wallet-test: missing output error
2019-03-01 10:50:14 -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
f0023cb489
test: mempool should reject non-standard p2sh
2019-02-14 23:47:19 +04:00
Braydon Fuller
bf32e86abe
test: independent watch-only tests and assert error
2019-02-11 14:31:05 -08: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
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
Node
d86033fa16
test: update licenses for test files
2019-02-01 16:24:45 -08:00
Braydon Fuller
fa877503a4
blockchain: enable segwit for regtest
2019-01-31 13:03:59 -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
Orfeas Litos
7a9023f388
Add test for KeyRing.fromMultisigScript()
2018-12-09 22:11:48 +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
7d2caa072b
pool: fixes getBroadcasted() error
2018-08-31 09:30:40 -07:00
Christopher Jeffrey
f10d7b8363
pkg: remove bn.js dependency.
2018-08-10 16:33:38 -07:00
Christopher Jeffrey
dc5b8c373d
net: properly clear timers.
2018-08-10 16:24:10 -07:00
Christopher Jeffrey
b92839c82a
bcoin: use buffer-map. see #533 .
2018-08-10 16:23:46 -07:00
Javed Khan
944f29fe16
test: fix get block proof equivalent time
...
the test was randomly failing when getProofTime returns -0. Fixed
by replacing strictEqual with ok.
2018-07-13 00:05:45 +05:30
Christopher Jeffrey
41af7acfd6
net: remove bip150/bip151 support.
2018-07-12 10:17:13 -07:00
Javed Khan
6cf81d3490
test: fix timeout for node test
2018-07-10 17:09:11 +05:30
Javed Khan
58ab9ba267
test: increase timeout for ci
2018-07-10 16:45:03 +05:30
Javed Khan
21bf114dc6
Merge pull request #491 from nodar-chkuaselidze/ci
...
Enable CircleCI + CodeCov for CI and Coverage respectively.
2018-07-10 15:12:41 +05:30
Matthew Zipkin
b371b3ecda
test/txmeta: fix lint
2018-07-05 22:43:03 +05:30
Christopher Jeffrey (JJ)
5c26307db1
Merge pull request #467 from tuxcanfly/pow-tests
...
test: add pow-tests
2018-07-04 15:37:05 -07:00
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
Javed Khan
5af767159a
test: add pow-tests
2018-06-20 11:42:13 +05:30
Nodar Chkuaselidze
ce1f1fbcb2
http-test: close wclient.
2018-06-15 02:44:53 +04:00
Christopher Jeffrey
84bae8160d
test: remove old utils tests.
2018-06-08 04:19:18 -07:00
Christopher Jeffrey (JJ)
9fb9b1c4ad
Merge pull request #440 from nodar-chkuaselidze/mtx/from-json
...
MTX - Recover view from JSON
2018-04-06 16:12:35 -07:00
Christopher Jeffrey (JJ)
a0333d105c
Merge branch 'master' into outpoint-tests
2018-04-06 15:56:39 -07:00
Nodar Chkuaselidze
916d42af57
mtx: receover view from JSON
2018-04-06 11:02:03 -07:00
Nodar Chkuaselidze
2fa6452002
test-tx: update bufferWriter pkg
2018-03-30 18:57:21 -07:00
Christopher Jeffrey (JJ)
7edefa6136
Merge pull request #367 from nodar-chkuaselidze/test/tx
...
test-tx: add tx tests
2018-03-29 22:38:46 -07:00
Nodar Chkuaselidze
179c53d97f
wdb: fix hasAccount
2018-03-29 22:07:11 -07:00
Christopher Jeffrey
febc55b586
minor: lint.
2018-03-29 21:56:53 -07:00
Christopher Jeffrey
78df4f4d84
pkg: update deps.
2018-03-29 21:56:52 -07:00
Christopher Jeffrey
94fd001e88
wallet/http: require admin token.
2018-03-29 21:56:52 -07:00
Christopher Jeffrey
cd7c63d95d
wallet: always use separate http server.
2018-03-29 21:56:51 -07:00
Christopher Jeffrey
30597b83f6
wallet: refactor.
2018-03-29 21:56:51 -07:00
Christopher Jeffrey
cb978df380
db: drop old migrations. avoid using encoding.
2018-03-29 21:56:51 -07:00
Christopher Jeffrey
83e1de2e98
db: stop relying on encoding.
2018-03-29 21:56:51 -07:00
Christopher Jeffrey
e2ef35b24b
wallet: more migrations.
2018-03-29 21:56:50 -07:00
Christopher Jeffrey
f99064750a
net: move netaddress.
2018-03-29 21:56:50 -07:00
Christopher Jeffrey
5ea218b373
bcoin: require bn.js directly.
2018-03-29 21:56:49 -07:00
Christopher Jeffrey
3c82ac0486
bcoin: use util.revHex again.
2018-03-29 21:56:49 -07:00
Christopher Jeffrey
f2abdf68cb
bcoin: move encoding constants around.
2018-03-29 21:56:49 -07:00
Christopher Jeffrey
73664efcd0
bcoin: classify everything else.
2018-03-29 21:56:49 -07:00
Christopher Jeffrey
405feef9ce
bcoin: clean up requires.
2018-03-29 21:56:48 -07:00
Christopher Jeffrey
21ab415769
refactor: switch to bio module.
2018-03-29 21:56:48 -07:00
Christopher Jeffrey
bf4f5e3bac
bcoin: bstring requires.
2018-03-29 21:56:48 -07:00
Christopher Jeffrey
daa55a05bc
primitives: classify primitives.
2018-03-29 21:56:48 -07:00
Christopher Jeffrey
ca08d6d97e
bcoin: rename bufio and bstring.
2018-03-29 21:56:48 -07:00
Christopher Jeffrey
f9eba3f5a6
crypto: start using hash.digest().
2018-03-29 21:56:47 -07:00
Christopher Jeffrey
8332b93721
utils: remove dependence on co.
2018-03-29 21:56:47 -07:00
Christopher Jeffrey
424370bc1f
utils: stop using asyncobject.
2018-03-29 21:56:47 -07:00
Christopher Jeffrey
cbef19047a
bcoin: cleanup. fix bsock calls.
2018-03-29 21:56:47 -07:00
Christopher Jeffrey
401829db5a
node: start using blgr and bcfg.
2018-03-29 21:56:47 -07:00
Christopher Jeffrey
fe03b42936
utils: start using bval.
2018-03-29 21:56:47 -07:00
Christopher Jeffrey
d4685e6e6c
utils: start using bstr.
2018-03-29 21:56:46 -07:00
Christopher Jeffrey
41925d495c
utils: start using bbuf.
2018-03-29 21:56:46 -07:00
Christopher Jeffrey
e92b1f4cec
utils: start using bfilter.
2018-03-29 21:56:46 -07:00
Christopher Jeffrey
3a722481f9
utils: use bfile over utils/fs.
2018-03-29 21:56:46 -07:00
Christopher Jeffrey
658d3db928
encoding: refactor. remove bip70.
2018-03-29 21:56:46 -07:00
Christopher Jeffrey
5a23ba96d0
wallet: get server working.
2018-03-29 21:56:45 -07:00
Christopher Jeffrey
d0ed214067
bcoin: remove dependence on util.js.
2018-03-29 21:56:45 -07:00
Christopher Jeffrey
636d66a5c7
bcoin: use bcrypto. remove crypto module.
2018-03-29 21:56:45 -07:00
Christopher Jeffrey
a6dc571c2d
http: use bclient.
2018-03-29 21:56:45 -07:00
Christopher Jeffrey
649f8cc171
http: stop using socket.io.
2018-03-29 21:56:44 -07:00
Christopher Jeffrey
f3b94ded65
wallet/bcoin: stop tracking network everywhere.
2018-03-29 21:56:44 -07:00
Christopher Jeffrey
40bb08aed6
wallet: better/less property tracking.
2018-03-29 21:56:44 -07:00
Christopher Jeffrey
fe261db706
wallet: track account balances.
2018-03-29 21:56:44 -07:00
Christopher Jeffrey
175f169504
test: add more wallet double spend tests.
2018-03-29 21:56:44 -07:00
Christopher Jeffrey
c16e85e485
wallet: all async methods.
2018-03-29 21:56:43 -07:00
Christopher Jeffrey
c6d7c43485
wallet: tests passing.
2018-03-29 21:56:43 -07:00
Christopher Jeffrey
55f5ff9493
wallet: use batches.
2018-03-29 21:56:43 -07:00
Christopher Jeffrey
969fd8f704
wallet-rewrite
2018-03-29 21:56:43 -07:00
Node
bbafb98fcc
test-tx: add tx tests
2017-11-08 18:25:00 +04:00
Buck
dd69f18cc3
fixed lint errors
2017-11-05 14:48:37 -08:00
Buck
c51cc88ef6
PR cleanup
2017-11-05 14:46:02 -08:00
Buck
48d41ed55d
tests for outpoint
2017-11-03 18:42:33 -07:00
Buck
68b3ddf482
fixed outpoint bug and added first test
2017-11-03 14:51:37 -07:00
Christopher Jeffrey (JJ)
af64e2dd0a
Merge pull request #324 from tuxcanfly/test-coin
...
Primitives tests: coin
2017-10-18 22:26:10 -07:00
Christopher Jeffrey (JJ)
783f57e4a9
Merge pull request #291 from tuxcanfly/test-address
...
Primitives tests - addresses
2017-10-18 22:25:12 -07:00
Christopher Jeffrey (JJ)
c1144a9955
Merge pull request #327 from nodar-chkuaselidze/test-input
...
Tests: Input
2017-10-18 13:21:41 -07:00
Christopher Jeffrey (JJ)
1a3c5e8a22
Merge pull request #323 from tuxcanfly/test-headers
...
Primitives tests - headers
2017-10-18 13:17:46 -07:00
Node
3a802cacd6
cli: accept bech32 addresses in getTX/getCoin
2017-10-16 23:49:02 +04:00
Javed Khan
b9f19038ba
tests: add coin tests
2017-09-28 19:46:54 +05:30
Javed Khan
7b73402377
tests: add headers tests
2017-09-27 19:54:45 +05:30
Node
104dd9344b
test: add input test
2017-09-25 23:33:05 +04:00
Node
05e069dc56
test: Add input tests
2017-09-20 22:33:25 +04:00
Christopher Jeffrey
5107cfd27a
consensus: clean up some functions.
2017-09-06 22:38:23 -07:00