Commit Graph

4435 Commits

Author SHA1 Message Date
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
Sky Young
dea7e6042f Return Transaction Errors from RPC 2018-08-06 15:45:28 -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
Sky Young
2d5bfb45e2 Update testnet rpcPort 2018-05-21 13:34:29 -07:00
Sky Young
2c0482a7be Testnet has a block that has an issue with this 2018-05-21 13:09:50 -07:00
Sky Young
f6aaf70c3d Add support for all 3 difficulty calculation algorithms 2018-05-21 13:08:47 -07:00
Sky Young
d2d2400a8e Add Testnet Checkpoints 2018-05-21 13:08:05 -07:00
Sky Young
0e21984228 Fix testnet halving interval 2018-05-21 13:07:38 -07:00
Sky Young
ba20ad4a90 Fix testnet magic 2018-05-21 13:07:22 -07:00
Sky Young
2bed9f7ef4 return floData on .format 2018-05-18 17:52:56 -07:00
Sky Young
9184bf1cfa Validate signatures from both 0.8.7 and 0.10.4 using OMIT_TX_COMMENT flag 2018-05-15 14:10:40 -07:00
Sky Young
a764fa2eca Remove Seeds (always pull from DNS) 2018-05-14 16:38:43 -07:00
Sky Young
c9d676efb4 Update Difficulty Calculations 2018-05-14 16:38:03 -07:00
Sky Young
4c03efc1ca Fix target calculations (only V3) 2018-05-10 14:37:25 -07:00
Sky Young
2c1d46c206 Max Satosis of Flo > MAX_JAVASCRIPT_INT 2018-05-10 14:36:28 -07:00
Sky Young
426431b251 Update last checkpoint number 2018-05-10 13:54:36 -07:00
Sky Young
242fb759e6 Split value into wholeCoin and Satoshis when serialized & recombine on deserialization 2018-05-10 13:54:01 -07:00
Sky Young
8c03f88d5f Update rltc to rflo 2018-05-09 14:36:29 -07:00
Sky Young
90fc371355 Change miner User Agent to fcoin & update version reported 2018-05-09 14:34:17 -07:00
Sky Young
8e72b51c43 Serialize & Deserialize Tx Data properly 2018-05-09 14:33:46 -07:00
Sky Young
9746bf81b5 Add Flo checkpoints every 100k blocks 2018-05-09 14:33:19 -07:00
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