Commit Graph

156 Commits

Author SHA1 Message Date
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
5f82c0d8c2
chain: alias all db methods. remove chainentry spaghetti code. 2017-09-06 10:20:40 -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
62152a1005
util: remove util.inherits. inline inheritance. 2017-08-06 19:45:10 -07:00
Christopher Jeffrey
cc1462f697
utils/util: reorganize functions. 2017-08-06 04:00:08 -07:00
Node
e6120039fc
http-api: Normalize API calls, fix getCoins by addr/addresses 2017-08-04 03:17:54 +04:00
Christopher Jeffrey
1d7b8ca7c1
http: better handling of api keys. 2017-08-01 01:38:36 -07:00
Christopher Jeffrey
e38da91065
lint: no extra parens around !await. 2017-07-31 18:21:03 -07:00
Christopher Jeffrey
88ef28d837
lint: no implicit casting. 2017-07-31 18:21:03 -07:00
Christopher Jeffrey
55cf07a871
refactor: style for const/let and returns. 2017-07-31 18:21:02 -07:00
Christopher Jeffrey
6f3988e861
refactor: use const as much as possible. 2017-07-31 18:21:02 -07:00
Christopher Jeffrey
9cc5c393b4
eslint: use prefer-const. 2017-07-31 18:21:02 -07:00
Christopher Jeffrey
2f51fd1c50
api: use satoshi values for everything. 2017-07-17 14:26:43 -07:00
Christopher Jeffrey
19f0f42717
http: minor. 2017-07-17 14:26:42 -07:00
Christopher Jeffrey
3af014119a
refactor: switch to template strings for errors. 2017-07-17 14:26:38 -07:00
Christopher Jeffrey
c53f4cf89e
refactor: switch to const/let. 2017-07-17 14:26:37 -07:00
Christopher Jeffrey
e00472891d
refactor: start using for...of. 2017-07-17 14:26:37 -07:00
Christopher Jeffrey
aa05bb5df7
refactor: use es6 maps for everything. 2017-07-17 14:26:37 -07:00
Christopher Jeffrey
d4cc22e1c5
refactor: crypto. 2017-06-27 07:27:53 -07:00
Christopher Jeffrey
8b74d95280
http: fix broadcast call. 2017-06-26 21:29:24 -07:00
Christopher Jeffrey
2ef4d137e6
pkg: switch from jshint to eslint. 2017-06-24 04:45:46 -07:00
Christopher Jeffrey
84eccc29fa
refactor: switch to async/await. see #227. 2017-06-24 02:39:06 -07:00
Christopher Jeffrey
28cd43045d
refactor: avoid using new Buffer() due to its new perf implications. 2017-05-30 21:11:10 -07:00
Christopher Jeffrey
11a90dd7da
http: minor. 2017-05-15 01:13:38 -07:00
Christopher Jeffrey
df4c8cc68c
http: fix block by height. 2017-05-14 15:30:14 -07:00
Christopher Jeffrey
cecf2c7789
http: fix get block call. fixes #208. 2017-05-12 11:44:32 -07:00
Christopher Jeffrey
a5520abaae
http: fix tx/address and broadcast routes. 2017-04-30 06:07:18 -07:00
Christopher Jeffrey
db715036aa
http: fix chain resetting for client. 2017-03-17 07:13:24 -07:00
Christopher Jeffrey
eb601eece6
node: start using logger contexts. 2017-03-14 06:10:35 -07:00
Christopher Jeffrey
1a8a9afade
config/wallet: refactor config handling. add wallet server. 2017-03-14 06:10:35 -07:00
Christopher Jeffrey
48066f1634
http: misc fixes. 2017-03-14 06:10:34 -07:00
Christopher Jeffrey
78a4f379f5
rpc: add u32 validation. rename node rpc methods. 2017-03-14 06:10:34 -07:00
Christopher Jeffrey
59e9ef277a
http: make rpc more hookable. 2017-03-14 06:10:34 -07:00
Christopher Jeffrey
a47316c264
http: refactor node websocket api. 2017-03-14 06:10:34 -07:00
Christopher Jeffrey
4c7a935484
http: better channel management. 2017-03-14 06:10:34 -07:00
Christopher Jeffrey
5cbbdbfb2f
refactor: config, plugins, and walletdb. 2017-03-14 06:10:34 -07:00
Christopher Jeffrey
a81733a720
node/config: refactor config and options. 2017-03-14 06:09:29 -07:00
Christopher Jeffrey
667b0e746d
http: fix json rpc id handling. see #159. 2017-03-12 23:44:04 -07:00
Christopher Jeffrey
cdbad54a8c
net: improvements. see comments.
- Improved local address handling.
- Enabled upnp discovery.
- Added retry for dns seeds.
- Improved hostlist in general.
2017-03-07 17:10:47 -08:00
Christopher Jeffrey
89ff0796c7
refactor: do not require json files. 2017-03-01 08:48:53 -08:00
Christopher Jeffrey
7a1e539700
http: refactor route handlers. 2017-02-28 22:45:47 -08:00
Christopher Jeffrey
9f09de4867
rpc/http/wallet: more aggressive validation for addrs/keys. 2017-02-28 14:52:54 -08:00
Christopher Jeffrey
47c43ea39a
rpcclient: refactor error handling. 2017-02-28 09:20:22 -08:00
Christopher Jeffrey
2ee803810e
http: remove unnecessary headers. 2017-02-28 05:35:25 -08:00
Christopher Jeffrey
49bb9ed0fa
http: always parse json for compatability. fixes #146. 2017-02-28 05:30:10 -08:00
Christopher Jeffrey
bb5a7b00d6
http: less spam. 2017-02-26 04:27:00 -08:00
Christopher Jeffrey
ad51bf53f3
rpc: better bitcoind compat. 2017-02-26 04:21:24 -08:00
Christopher Jeffrey
3ac0d3de78
http: fix for ckpool (getblocktemplate). 2017-02-26 04:03:27 -08:00