Sky Young
93781c712a
Fix RPC port
2018-05-09 14:32:48 -07:00
Sky Young
add5821d52
Reverse hex byte array order for checkpoint hashes & magic
2018-05-09 14:32:39 -07:00
Sky Young
eddc878476
Switch to hex numbers vs decimal
2018-05-08 13:56:23 -07:00
Sky Young
3653da2d01
Flo-ify
2018-05-08 13:40:23 -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
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)
935c34f317
Merge branch 'master' into rpc-getaddressesbyaccount
2018-04-06 16:09:33 -07:00
Christopher Jeffrey (JJ)
bb93599eb3
Merge branch 'master' into fix/rescan-log
2018-04-06 16:03:14 -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
022e08737a
account: fix create methods
2018-03-30 20:29:34 -07:00
Christopher Jeffrey
c7d844ea37
node/wallet: add cors option. see #397 .
2018-03-29 22:22:47 -07:00
Orfeas Stefanos Thyfronitis Litos
2b0e5f5935
Document sendTX() return value
2018-03-29 22:12:01 -07:00
Orfeas Stefanos Thyfronitis Litos
8f3de71719
Handle broadcast() errors in sendTX()
...
Replace this.pool.broadcast(tx) with this.broadcast(tx) in case of a
selfish node because the latter handles broadcast errors, whereas the
former does not.
2018-03-29 22:11:50 -07:00
Orfeas Stefanos Thyfronitis Litos
c15cfbc081
Correct scriptVector() return value to {Stack}
...
The previously documented return value was {Boolean}.
2018-03-29 22:10:09 -07:00
Nodar Chkuaselidze
179c53d97f
wdb: fix hasAccount
2018-03-29 22:07:11 -07:00
Nodar Chkuaselidze
5f47b23736
wallet-http: provide info if key was added/removed to db
2018-03-29 22:07:00 -07:00
Javed Khan
37a1d02e76
networks: update simnet bech32 prefix
2018-03-29 22:06:48 -07:00
Steven Bower
8429c08ac6
Wallet: Minor log change
...
Makes it easier to distinguish between node HTTP server and wallet HTTP server in debug logs
2018-03-29 22:06:15 -07:00
Nodar Chkuaselidze
339dd50bf1
wallet: remove watchOnly check from wallet.fund
2018-03-29 22:06:05 -07:00
Christopher Jeffrey
8c609c6e9e
pkg: update deps. fix utils index.
2018-03-29 21:56:53 -07:00
Christopher Jeffrey
c388498ab0
pkg: update deps.
2018-03-29 21:56:53 -07:00
Christopher Jeffrey
319ec82997
wallet: fix depth incrementation.
2018-03-29 21:56:53 -07:00
Christopher Jeffrey
bd76939f4c
pkg: update bcrypto.
2018-03-29 21:56:53 -07:00
Christopher Jeffrey
ec876215a6
bip152: minor.
2018-03-29 21:56:53 -07:00
Christopher Jeffrey
d357ecb159
pkg: update deps.
2018-03-29 21:56:53 -07:00
Christopher Jeffrey
fac9c714db
bin: drop bin/cli.
2018-03-29 21:56:53 -07:00
Christopher Jeffrey
febc55b586
minor: lint.
2018-03-29 21:56:53 -07:00
Christopher Jeffrey
f1672a8b86
types: cleanup types.
2018-03-29 21:56:53 -07:00
Christopher Jeffrey
5b448b5bce
wallet: add wid->id index.
2018-03-29 21:56:53 -07:00
Christopher Jeffrey
1474d49231
script: remove useless vars.
2018-03-29 21:56:52 -07:00
Christopher Jeffrey
78df4f4d84
pkg: update deps.
2018-03-29 21:56:52 -07:00
Christopher Jeffrey
6787c001d2
build: improve no-compat webpack build.
2018-03-29 21:56:52 -07:00
Christopher Jeffrey
761ae4a80c
browser: fix error display.
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
09b9f94a70
pkg: minor.
2018-03-29 21:56:52 -07:00
Christopher Jeffrey
c63e977ccf
chaindb: minor.
2018-03-29 21:56:52 -07:00
Christopher Jeffrey
d5a2609f75
peer: add reverse dns lookup.
2018-03-29 21:56:52 -07:00
Christopher Jeffrey
03ddc79dfc
script/address: fix addr checking for nested p2sh inputs.
2018-03-29 21:56:52 -07:00
Christopher Jeffrey
2054524fd7
bcoin: get browserify working.
2018-03-29 21:56:52 -07:00
Christopher Jeffrey
11c7dab3c4
browser: improve webpack build.
2018-03-29 21:56:51 -07:00
Christopher Jeffrey
e4ad8b457f
net: update seed list.
2018-03-29 21:56:51 -07:00
Christopher Jeffrey
99a7eb5fa5
wallet/bcoin: refactor exposure.
2018-03-29 21:56:51 -07:00
Christopher Jeffrey
425b8780f7
wallet: better option parsing for wallet plugin.
2018-03-29 21:56:51 -07:00
Christopher Jeffrey
cd7c63d95d
wallet: always use separate http server.
2018-03-29 21:56:51 -07:00
Christopher Jeffrey
fcb3a10318
net: use bdns to resolve ip address.
2018-03-29 21:56:51 -07:00
Christopher Jeffrey
30597b83f6
wallet: refactor.
2018-03-29 21:56:51 -07:00
Christopher Jeffrey
aa3988aa2f
wallet/hostlist: minor.
2018-03-29 21:56:51 -07:00
Christopher Jeffrey
417b37b0c3
db: remove backend option.
2018-03-29 21:56:51 -07:00
Christopher Jeffrey
bad028ab67
chaindb: 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
dbde501444
db: use bdb key object.
2018-03-29 21:56:50 -07:00
Christopher Jeffrey
167304666b
db: migrate to key objects.
2018-03-29 21:56:50 -07:00
Christopher Jeffrey
a8e2001015
txdb: use new bucket system.
2018-03-29 21:56:50 -07:00
Christopher Jeffrey
aa115c2e9d
wallet: refactor removal.
2018-03-29 21:56:50 -07:00
Christopher Jeffrey
a43a2102e6
masterkey: minor.
2018-03-29 21:56:50 -07:00
Christopher Jeffrey
9dc6ebd8cf
wallet: add removing wallet functionality.
2018-03-29 21:56:50 -07:00
Christopher Jeffrey
86dc53f9dd
wallet: smarter path serialization.
2018-03-29 21:56:50 -07:00
Christopher Jeffrey
efca42b138
wallet: migrate paths.
2018-03-29 21:56:50 -07:00
Christopher Jeffrey
e2ef35b24b
wallet: more migrations.
2018-03-29 21:56:50 -07:00
Christopher Jeffrey
0055c82f22
migrate: add walletdb 6-to-7 migration.
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
9b269dd1f0
script: remove mast.
2018-03-29 21:56:49 -07:00
Christopher Jeffrey
163e89fc29
bcoin: lint.
2018-03-29 21:56:49 -07:00
Christopher Jeffrey
bad24a6f31
workers: classify.
2018-03-29 21:56:49 -07:00
Christopher Jeffrey
f313ca166d
wallet: classify.
2018-03-29 21:56:49 -07:00
Christopher Jeffrey
9240d2f827
protocol: classify.
2018-03-29 21:56:49 -07:00
Christopher Jeffrey
93fe6669bf
node: classify.
2018-03-29 21:56:49 -07:00
Christopher Jeffrey
4ebfb5d9ff
net: classify.
2018-03-29 21:56:49 -07:00
Christopher Jeffrey
8be995bd78
miner: classify.
2018-03-29 21:56:49 -07:00
Christopher Jeffrey
5c8a755d63
mempool: classify.
2018-03-29 21:56:49 -07:00
Christopher Jeffrey
32b81f0d95
btc: classify.
2018-03-29 21:56:48 -07:00
Christopher Jeffrey
51e3341252
script: classify.
2018-03-29 21:56:48 -07:00
Christopher Jeffrey
91ee6077b1
lru: minor.
2018-03-29 21:56:48 -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
6a5d5c1e48
chain: no return await.
2018-03-29 21:56:48 -07:00
Christopher Jeffrey
3565d5dfe7
chaindb: minor.
2018-03-29 21:56:48 -07:00
Christopher Jeffrey
280d5d38e5
net/miner/hd: classify.
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
3c3f6b953c
network/fees: minor.
2018-03-29 21:56:48 -07:00
Christopher Jeffrey
7bdd6e3519
minor: s/breq/brq/g
2018-03-29 21:56:47 -07:00
Christopher Jeffrey
73892701e8
utils: switch to bevent.
2018-03-29 21:56:47 -07:00
Christopher Jeffrey
4535cd1827
utils: start using bmutex.
2018-03-29 21:56:47 -07:00
Christopher Jeffrey
a79c2b0b1a
bcoin: start switching to class syntax.
2018-03-29 21:56:47 -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
277ac9a62a
net: start using bsocks and bupnp.
2018-03-29 21:56:47 -07:00
Christopher Jeffrey
ce8b6f483f
net: start using btcp and bdns.
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
77403b0a3e
utils: start using binet.
2018-03-29 21:56:46 -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
8ef82606e1
bcoin: cleanup. remove rbt.
2018-03-29 21:56:46 -07:00
Christopher Jeffrey
79260891e4
hd: move nfkd to hd directory.
2018-03-29 21:56:46 -07:00
Christopher Jeffrey
d1e4be8343
bcoin: use bdb.
2018-03-29 21:56:46 -07:00
Christopher Jeffrey
771a4ef17f
wallet: client refactor.
2018-03-29 21:56:46 -07:00
Christopher Jeffrey
aedbe27b6e
wallet: rename some methods.
2018-03-29 21:56:46 -07:00
Christopher Jeffrey
eaf2fa5ea2
wallet: add logs.
2018-03-29 21:56:46 -07:00
Christopher Jeffrey
b39554fa98
txdb: minor.
2018-03-29 21:56:45 -07:00
Christopher Jeffrey
37fdc7c08b
cli: improve wallet support.
2018-03-29 21:56:45 -07:00
Christopher Jeffrey
11ac46e051
wallet/client: different parsing solution.
2018-03-29 21:56:45 -07:00
Christopher Jeffrey
a313ac244c
wallet/client: fix arg parsing.
2018-03-29 21:56:45 -07:00
Christopher Jeffrey
749d4edc11
wallet: fixes for wallet server.
2018-03-29 21:56:45 -07:00
Christopher Jeffrey
877cecbedc
config: fix env parsing.
2018-03-29 21:56:45 -07:00
Christopher Jeffrey
cc91e3ea7b
http: move to node module.
2018-03-29 21:56:45 -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
1a5782fa06
script: do not use util.reverse.
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
c84afad1f6
http: use bsock instead of socket.io.
2018-03-29 21:56:45 -07:00
Christopher Jeffrey
a6dc571c2d
http: use bclient.
2018-03-29 21:56:45 -07:00
Christopher Jeffrey
f6ca348566
http: minor.
2018-03-29 21:56:44 -07:00
Christopher Jeffrey
a87260c959
http: rpc improvements. minor fixes.
2018-03-29 21:56:44 -07:00
Christopher Jeffrey
5ed8c0f4fe
walletclient: cleanup.
2018-03-29 21:56:44 -07:00
Christopher Jeffrey
649f8cc171
http: stop using socket.io.
2018-03-29 21:56:44 -07:00
Christopher Jeffrey
f617283539
wallet: remove useless server.
2018-03-29 21:56:44 -07:00
Christopher Jeffrey
fe2a6eb793
http: refactor to make separation easier.
2018-03-29 21:56:44 -07:00
Christopher Jeffrey
fc3b31836b
wallet/http: improve validation.
2018-03-29 21:56:44 -07:00
Christopher Jeffrey
645cafe653
wallet: minor.
2018-03-29 21:56:44 -07:00
Christopher Jeffrey
9a8106f4f7
refactor: avoid using utils in crypto and vice versa.
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
bd4367a2d1
txdb: fixes for input writing.
2018-03-29 21:56:43 -07:00
Christopher Jeffrey
abcf48cbe9
wallet: update rpc calls for getHashes.
2018-03-29 21:56:43 -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
Christopher Jeffrey
d7d390afb9
Revert "Fix confirmations not found"
...
This reverts commit e59ed00b57 .
2018-03-29 21:56:34 -07:00
Christopher Jeffrey
9967f780df
Revert "http: fix block call."
...
This reverts commit 4ff93746a0 .
2018-03-29 21:56:26 -07:00
Christopher Jeffrey
31651ce76e
Revert "mtx: allow multiple indicies for subtractIndex."
...
This reverts commit d489238711 .
2018-03-29 21:55:36 -07:00
ultragtx
4e7675cc7a
Litecoin: litecoinify
2017-12-08 16:03:46 +08:00
Nodar Chkuaselidze
52584af3c2
walletdb: fix scan log
2017-11-22 19:57:23 +04:00
Christopher Jeffrey
d489238711
mtx: allow multiple indicies for subtractIndex.
2017-11-04 12:16:28 -07:00
Christopher Jeffrey
4ff93746a0
http: fix block call.
2017-11-04 12:16:28 -07:00
Buck
68b3ddf482
fixed outpoint bug and added first test
2017-11-03 14:51:37 -07:00
Daniel McNally
b9b4e5f182
Catch 'already exists' error in importAddress
2017-10-20 21:49:31 -04:00
Daniel McNally
d77838d3a2
Catch 'not found' error in getAddressesByAccount
2017-10-20 11:50:04 -04:00
Node
e59ed00b57
Fix confirmations not found
2017-10-20 15:00:56 +04:00
Christopher Jeffrey
6bc8701f23
bcoin: some code cleanup.
2017-10-19 02:05:40 -07:00
Christopher Jeffrey (JJ)
a1ec1c255e
Merge pull request #307 from Bucko13/setpassphrase-fix
...
More consistent behavior around setting passphrase on unencrypted wallet
2017-10-18 22:44:02 -07:00
Christopher Jeffrey (JJ)
5ba79e4729
Merge pull request #316 from Bucko13/lock-coin-bug
...
use req.wallet for lock coin endpoints
2017-10-18 22:42:42 -07:00
Christopher Jeffrey (JJ)
a4858e274b
Merge pull request #295 from Bucko13/segwit-keyring
...
pass options on keyring creation
2017-10-18 22:40:08 -07:00
Christopher Jeffrey (JJ)
340f2176fc
Merge pull request #292 from nodar-chkuaselidze/fix/rpc-getbalance-default
...
RPC: change default to getbalance
2017-10-18 22:39:20 -07:00
Christopher Jeffrey (JJ)
c44293acd8
Merge pull request #282 from nodar-chkuaselidze/fix/createrawtransaction
...
RPC: Create/Sign Raw Transaction fix
2017-10-18 22:31:23 -07:00
Christopher Jeffrey (JJ)
bdeb72a035
Merge pull request #281 from Bucko13/import-key-passphrase
...
pass passphrase for key import
2017-10-18 22:30:10 -07:00
Christopher Jeffrey (JJ)
9098d4dcd6
Merge pull request #298 from nodar-chkuaselidze/fix/rpc-verifytxoutproof
...
rpc: fix verifytxoutproof
2017-10-18 22:25:50 -07:00
Christopher Jeffrey (JJ)
61906d7564
Merge pull request #300 from tuxcanfly/passphrase-fix
...
client: use 'new' passphrase param
2017-10-18 22:24:03 -07:00
Christopher Jeffrey (JJ)
8883da8a7d
Merge pull request #308 from Bucko13/createTX-signature
...
remove outputs from function signature
2017-10-18 13:20:53 -07:00
Christopher Jeffrey (JJ)
e137288b78
Merge pull request #325 from sangaman/master
...
Adding confirmations property to block and tx getJSON
2017-10-18 13:17:17 -07:00
Christopher Jeffrey (JJ)
8c091f6e08
Merge pull request #329 from nodar-chkuaselidze/fix/http-client
...
Fix bcoin.http.Client errors
2017-10-18 13:11:49 -07:00
Christopher Jeffrey (JJ)
4bf7426566
Merge pull request #342 from nodar-chkuaselidze/enhancement/cli-bech32
...
CLI to accept bech32 addresses
2017-10-18 13:06:46 -07:00
Christopher Jeffrey
57181f27ee
walletdb: increase bloom filter size to 3m addrs.
2017-10-18 12:58:22 -07:00
Christopher Jeffrey
bfde70f2ab
db: improve iterator perf.
2017-10-18 12:58:22 -07:00
Christopher Jeffrey
4d8ca8c16f
db: change iterator api to be more loop-friendly.
2017-10-18 12:58:21 -07:00
Christopher Jeffrey
1c1e429383
fs/co: add fs.exists and wait for promise on co.clearInterval.
2017-10-18 12:58:21 -07:00
Christopher Jeffrey
aeb3d8f352
http: minor fixes.
2017-10-18 12:58:21 -07:00
Christopher Jeffrey
86746e2bd0
siphash: add siphash32 and siphash64.
2017-10-18 12:58:21 -07:00
Node
3a802cacd6
cli: accept bech32 addresses in getTX/getCoin
2017-10-16 23:49:02 +04:00
Node
d76ca37d0d
rpcclient: check body.error first
2017-10-11 16:23:37 +04:00
Node
b40ac6e081
http-client: fix returned errors
2017-10-05 18:52:14 +04:00
Daniel McNally
4f317992f5
Fixes to TX & Block confirmations property
...
TX `confirmations` property set to 0 for unconfirmed transactions. Block
`confirmations` property set to -1 for orphaned blocks. Fixing to add +1
to `confirmations` to match bitcoind behavior and corresponding bcoin
rpc methods - block or tx at tip of main chain starts with 1
confirmation (not zero).
2017-10-02 00:58:48 -07:00
Daniel McNally
c2cef86296
Adding 'confirmations' property to block getJSON
...
Adds a 'confirmations' property to the JSON returned by `cli tx [hash]`
as well as the Rest `/tx/:hash` call by subtracting block height from
chain height
2017-09-28 23:41:13 -04:00
Daniel McNally
0f68427778
Adding 'confirmations' property to TX getJSON
...
Adds a 'confirmations' property to the JSON returned by cli tx [hash] as
well as the REST '/tx/:hash' call by subtracting TX height from chain
height
2017-09-28 22:47:50 -04:00
Christopher Jeffrey
ca4e938a75
mempool: fix orphan resolution edge case.
2017-09-26 20:22:54 -07:00
Christopher Jeffrey
1aa78e2248
mempool: sanitize after reorg.
2017-09-26 17:20:16 -07:00
Christopher Jeffrey
459a9f25f4
chain/mempool: optimize coinview handling. fix mempool orphan edge case.
2017-09-26 13:07:01 -07:00
Christopher Jeffrey
17e473fda5
upnp: minor.
2017-09-19 17:52:19 -07:00
Bucko
e27408dc58
getCoin was unnecessarily passing account
2017-09-19 15:43:34 -07:00
Bucko
d9ebfcc2f9
coin lock methods weren't handling parameters correctly in http client
2017-09-19 14:28:26 -07:00
Christopher Jeffrey
991213d303
chain: fix typo.
2017-09-19 13:30:53 -07:00
Christopher Jeffrey
4c18dc5d0e
chain/util: minor style change.
2017-09-19 13:10:40 -07:00
Bucko
e3ac717ada
use req.wallet for lock coin endpoints
2017-09-18 18:55:44 -07:00
Christopher Jeffrey
fdca08b498
chain: minor.
2017-09-06 23:06:41 -07:00
Christopher Jeffrey
f63c19cb19
bn: stop using bn#cmp.
2017-09-06 22:51:06 -07:00
Christopher Jeffrey
5107cfd27a
consensus: clean up some functions.
2017-09-06 22:38:23 -07:00
Christopher Jeffrey
d78df4b79c
miner: minor.
2017-09-06 14:21:23 -07:00
Christopher Jeffrey
eb5469088c
chain: refactor checkpoints handling. other misc refactoring.
2017-09-06 14:17:39 -07:00
Christopher Jeffrey
5f82c0d8c2
chain: alias all db methods. remove chainentry spaghetti code.
2017-09-06 10:20:40 -07:00
Christopher Jeffrey
b81643473e
encoding: refactor int64 handling.
2017-09-05 21:17:58 -07:00
Christopher Jeffrey
83178e9333
encoding: minor.
2017-09-05 09:41:02 -07:00
Christopher Jeffrey
4046202b3f
lint: minor.
2017-09-04 16:46:47 -07:00
Christopher Jeffrey
a2c3e70f09
bip151: use buffer pool.
2017-09-04 13:12:10 -07:00
Christopher Jeffrey
7e456595de
workers: minor.
2017-09-03 22:16:06 -07:00
Christopher Jeffrey
d00e924965
hd: use buffer pool for key derivation.
2017-09-03 11:29:59 -07:00
Christopher Jeffrey
45e41b1bb4
writer: alloc pool lazily.
2017-09-03 00:56:15 -07:00
Christopher Jeffrey
a543648310
writer: use 100kb pool for sighashing.
2017-09-03 00:05:47 -07:00
Christopher Jeffrey
e0eb1cdbe3
refactor: remove all duck typing.
2017-09-02 21:29:38 -07:00
Christopher Jeffrey
bc25bdb016
workers: drop all static methods for packets.
2017-09-02 21:09:22 -07:00
Christopher Jeffrey
ad4c7e81c8
tx: minor.
2017-09-01 18:05:50 -07:00
Christopher Jeffrey
55f594d616
stack: remove useless checks.
2017-09-01 18:05:26 -07:00
Bucko
4329907e86
fixed signature as well as call
2017-08-30 16:38:43 -07:00
Bucko
df52cbe6f9
remove outputs from function signature
2017-08-30 16:36:30 -07:00
Bucko
778e118378
implement tux's fix for changing property name and more consistent behavior around setting passphrase on unencrypted wallet
2017-08-30 14:32:24 -07:00
Christopher Jeffrey
57b98b2368
tx: refactor hasStandardWitness.
2017-08-30 10:14:51 -07:00
Christopher Jeffrey
063f55f448
script: remove instances of script.getSmall().
2017-08-30 10:07:07 -07:00
Christopher Jeffrey
7022c6649f
tx: minor.
2017-08-28 06:08:50 -07:00
Christopher Jeffrey
b87f557823
tx/script/chain: refactor locktime handling.
2017-08-27 19:07:57 -07:00
Christopher Jeffrey
73b84cc1a7
lint: remove useless parens.
2017-08-27 16:50:23 -07:00
Javed Khan
9b777ac7e5
client: use 'new' passphrase param
2017-08-27 15:14:43 +05:30
Christopher Jeffrey
9d48c1385b
mtx: rename subtractFee to subtractIndex.
2017-08-26 12:37:08 -07:00
Christopher Jeffrey
3c2c8ea955
hd: pass purpose number to bip44 derivation. drop bip45 support.
2017-08-26 02:41:27 -07:00
Christopher Jeffrey
26f6fb5277
wallet: enforce settxfee for all functions.
2017-08-26 01:35:36 -07:00
Christopher Jeffrey
6742482445
mtx: subtract fee evenly from all outputs.
2017-08-26 01:21:25 -07:00
Christopher Jeffrey
c6b76ec73f
Revert "wallet/mtx: add extraOutputs option."
...
This reverts commit 3957f83a59 .
2017-08-26 00:13:24 -07:00
Christopher Jeffrey
140eece7dd
script: improve perf of getScripthash.
2017-08-25 20:54:56 -07:00
Christopher Jeffrey
49154be76d
script: refactor opcode and optimize.
2017-08-25 18:54:51 -07:00
Christopher Jeffrey
3957f83a59
wallet/mtx: add extraOutputs option.
2017-08-25 15:10:30 -07:00
Christopher Jeffrey
5fae0c50a1
script: enforce stack size on unexecuted branches.
...
This primarily only affects zero-length scripts. An input script which pushed
this many items onto the stack without failing _is not possible_, but with
segwit, it is possible. However, a witness program would fail due to cleanstack
before there would be any kind of consensus fault. In other words, without this
fix, we still remain in consensus with bitcoin core, but ideally we should want
to fail for the same reason.
2017-08-25 08:08:47 -07:00
Node
1c25d8913e
rpc: fix revHex arg in verifytxoutproof
2017-08-25 15:24:54 +04:00
Christopher Jeffrey
7145d21c9c
script: improve isCode.
2017-08-24 23:47:22 -07:00
Christopher Jeffrey
47eb484657
script: include opcode and instruction pointer in stack size errors.
2017-08-24 23:13:31 -07:00
Christopher Jeffrey
13892b3b38
encoding: rename written to offset.
2017-08-24 22:36:59 -07:00
Christopher Jeffrey
22a879f154
opcode: fix uncatchable error on .equals().
2017-08-24 22:24:39 -07:00
Christopher Jeffrey
af132c8818
opcode: handle OP_1NEGATE in opcode.toNum.
2017-08-24 18:22:45 -07:00
Christopher Jeffrey
d6ce66bce9
script: refactor script and stack mutation.
...
This allows more reasonable signing behavior and eliminates all polymorphism.
2017-08-24 17:34:20 -07:00
Bucko
ed4e7b1243
pass options on keyring creation
2017-08-24 17:19:05 -07:00
Node
82595b95eb
rpc: getbalance default minconf=1
2017-08-24 20:57:27 +04:00
Christopher Jeffrey
a6b2c23a41
script: start using scriptnum implementation.
2017-08-20 15:13:17 -07:00
Christopher Jeffrey
1b0ae3ca79
refactor: use defineProperty instead of __define[GS]etter__.
2017-08-20 15:10:58 -07:00
Christopher Jeffrey
c54ba4c5ab
http/client: lint.
2017-08-20 14:35:42 -07:00
Christopher Jeffrey
6c8c18f2a0
opcode: improve perf of opcode.from methods.
2017-08-20 12:52:35 -07:00
Christopher Jeffrey
2647d011dc
opcode: experiment with using cached opcodes.
2017-08-19 23:14:30 -07:00
Christopher Jeffrey
5047028511
script: stop using new Opcode.
2017-08-19 23:14:18 -07:00
Christopher Jeffrey
040e798d9f
rpc: fix getTXOutProof.
2017-08-19 19:36:28 -07:00
Node
29f9d401e4
rpc: signrawtransaction input name fix
2017-08-18 14:35:12 +04:00
Node
4fb2df7789
rpc: createrawtransaction from inputs
2017-08-18 11:01:43 +04:00
Christopher Jeffrey
8f9f5dfc06
pool: fix map.clear call in stopSync. fixes #274 .
2017-08-17 19:51:54 -07:00
Bucko
af32c5d4c2
pass passphrase for key import
2017-08-17 18:24:40 -07:00
Christopher Jeffrey (JJ)
d44d93486f
Merge pull request #279 from Bucko13/check-for-id-param
...
check in http client that an id is passed to create wallet
2017-08-17 17:23:47 -07:00
Christopher Jeffrey (JJ)
fd5dcec680
Merge pull request #278 from Bucko13/wallet-options
...
add documentation for mnemonic option in wallet creation
2017-08-17 17:23:21 -07:00
Christopher Jeffrey (JJ)
2c8fcafa0a
Merge pull request #265 from nodar-chkuaselidze/fix/rpc-requests
...
REST API fixes
2017-08-17 17:23:04 -07:00
Christopher Jeffrey (JJ)
87a31093f6
Merge pull request #276 from nodar-chkuaselidze/fix/invalidate
...
Chain: Fix _invalidate
2017-08-17 17:21:33 -07:00
Christopher Jeffrey
5415147d4e
encoding: encoding improvements for base128 varints.
2017-08-17 10:55:30 -07:00