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
Sky Young
31ee7f6367
Bump up coinbase expectations now that we include flodata
2018-10-20 14:17:24 -06:00
Sky Young
c41ab92f78
Add more checkpoints to mainnet and testnet :)
2018-10-20 14:10:55 -06:00
Sky Young
5131accc21
Check coinbase transaction for floData and include it in the size.
2018-10-20 13:55:50 -06:00
Sky Young
16005103e0
Get witness data as well for Coinbase Transaction.
2018-10-20 13:25:54 -06:00
Sky Young
60e19a7b02
Include version check
2018-10-20 13:07:58 -06:00
Sky Young
92184992ea
Add in floData to other Witness serizliation/deserialization functions
2018-10-20 13:03:53 -06:00
Sky Young
4d7b920048
Calculate the size of floData and add it to the bufferwriter initial size
2018-10-20 12:15:30 -06:00
Sky Young
36f88b398f
Create segwit signature hash with floData included :)
2018-10-20 11:32:12 -06:00
Sky Young
86dc7c601a
Replace Bitcoin and bcoin with Flo and fcoin respectively
2018-10-20 11:25:37 -06: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
Sky Young
2cf4091bcc
Lower the other two amounts back to the old value
2018-10-18 19:27:00 -06:00
Sky Young
6fffcaef3d
Drop size down 4 bytes
2018-10-18 18:57:16 -06:00
Sky Young
e78fd5e578
Fix testnet activation windows
2018-10-18 18:22:14 -06:00
bitspill
f82d851dc2
Allow batch RPC calls
2018-10-16 14:51:41 -07:00
bitspill
d10de7fa72
Allow batch RPC calls
2018-10-16 14:27:23 -07:00
bitspill
bc82a1526d
bump size to include floData
2018-10-16 13:56:49 -07:00
bitspill
efb135d1c3
Include FloData in weight
2018-10-16 13:45:38 -07:00
Sky Young
12ef3c901f
Log the error stack as well (for finding bugs)
2018-10-04 13:47:12 -06:00
Sky Young
dd259ea6bd
Set default tx version to 2
2018-10-04 13:46:59 -06:00
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
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