Commit Graph

58 Commits

Author SHA1 Message Date
Sky Young
cf32836440 Fix other locations that used strFloData 2019-09-10 08:41:36 -06:00
Sky Young
9c0b36b965 Get the hex version of the blocks merkle root 2019-07-23 12:23:15 -06:00
Sky Young
db1152fed9 Verify merkle root exists before matching on it 2019-07-23 12:20:48 -06:00
Sky Young
474685d7c1 Use correct bcoin Block export 2019-07-23 12:07:15 -06:00
Sky Young
5522c5649a Flip merkleRoot on transform data 2018-05-22 13:50:46 -07:00
Sky Young
9c0f824ad7 Add errors for block header undefined results 2018-05-22 13:33:20 -07:00
Sky Young
5a1ebc74c0 Don't crash on Genesis block search 2018-05-21 17:05:51 -07:00
Sky Young
9a83209551 Get floData from live fcoin tx object 2018-05-21 09:12:44 -07:00
Sky Young
d71c891add use includes instead of match 2018-05-18 16:05:51 -07:00
Sky Young
240e05a211 Grab floData correctly 2018-05-18 15:57:52 -07:00
Sky Young
582dc351f7 Set strFloData to default empty string 2018-05-18 15:56:32 -07:00
Sky Young
a4404e432a Update pool matching 2018-05-18 15:53:45 -07:00
Sky Young
5fc20a59a1 correctly return block time 2018-05-18 15:20:15 -07:00
Sky Young
e963fd25d5 Update flocore lib version 2018-05-17 10:44:21 -07:00
Sky Young
9162a7f01f Add fcoin instead of bcoin :) 2018-05-10 09:30:02 -07:00
Sky Young
87bd8fa36f Remove bcoin 2018-04-30 12:23:44 -07:00
OstlerDev
aafc5911f4 BTC -> Flo 2018-01-15 16:35:41 -08:00
Chris Kleeschulte
15fe096a07 wip on changing subsciption endpoints. 2017-11-09 11:42:57 -05:00
Chris Kleeschulte
1103eb9dd8
Mainchain will always be true. 2017-10-10 14:11:21 -04:00
Chris Kleeschulte
8196b1e081
Added check for missing header. 2017-10-10 09:27:50 -04:00
Chris Kleeschulte
5be6d0d724
Fixed response for not returning a header. 2017-10-09 09:49:31 -04:00
Chris Kleeschulte
3923f260e8
Minor fixes. 2017-10-06 14:50:32 -04:00
Chris Kleeschulte
5e5a58db19 Fixed tests. 2017-08-24 09:38:07 -04:00
Rob Riddle
2122b01023 Use transform stream instead of async for /blocks 2017-08-18 15:22:47 -04:00
Chris Kleeschulte
5bcfd8fcd8 Fixed current difficulty. 2017-08-15 17:05:04 -04:00
Chris Kleeschulte
21e30645cd Various repairs. 2017-08-15 15:43:13 -04:00
Chris Kleeschulte
d866dd7a65 Retrofitting for new bitcore-node. 2017-08-15 13:31:42 -04:00
Chris Kleeschulte
5a49f5c6c2 Added fixes for blocks route. 2017-08-09 19:41:50 -04:00
Chris Kleeschulte
c61490ed62 WIP changes for next version 2017-08-09 18:11:03 -04:00
Braydon Fuller
667a38053b block: check block argument and fix caching
Checks that the argument sent to the endpoint for /block/ and /rawblock/ is
a 64 character hexadecimal string (blockHash), otherwise will return 404.

Uses a long cache header for for the /rawblock/ endpoint since the result will not
change, and a short cache header for the /block/ endpoint since this data references
other blocks in the chain that can change.
2016-05-26 11:21:36 -04:00
Braydon Fuller
61f0c3063a bitcoind: fix error handling bug 2016-05-16 18:32:08 -04:00
Braydon Fuller
11874a1957 blocks: handle out of range height as 404 not found 2016-05-16 18:27:27 -04:00
Braydon Fuller
c6bd150bd9 blocks: camelCase adjustments for bitcore node 2016-05-11 11:54:08 -04:00
Braydon Fuller
351c315736 common: improve error logging 2016-05-10 19:26:10 -04:00
Braydon Fuller
7973e2398a blocks: switch to use req.param
so that the last argument is the next callback
2016-05-10 16:50:28 -04:00
Braydon Fuller
310dd99086 blocks: rename moreTs -> moreTimestamp for clarity 2016-05-10 16:24:37 -04:00
Braydon Fuller
4e54d195b9 blocks: add configurable option for caches 2016-05-09 17:54:57 -04:00
Braydon Fuller
e1df171f95 blocks: cache block header info with next block with 6 confirmations 2016-04-20 10:54:10 -04:00
Braydon Fuller
b686c5bea9 blocks: fix null prevhash issue 2016-04-15 15:50:14 -04:00
Braydon Fuller
13532666c3 test: update block tests 2016-04-15 13:45:58 -04:00
Braydon Fuller
7ded22fb2c block: add raw block endpoint 2016-04-11 15:40:55 -04:00
Braydon Fuller
19c5b617d1 block: only cache block summary with height if confirmed >= 6
- update api with changes in bitcore node
- add block event
2016-04-11 10:39:46 -04:00
Braydon Fuller
3c355c30a9 blocks: added lru cache 2016-04-11 10:33:53 -04:00
Braydon Fuller
13efeec84b blocks: fix for getBlockHashesByTimestamp 2016-04-11 10:29:50 -04:00
Braydon Fuller
e4f585ad15 general: updated controllers for new api from bitcoind 2016-04-11 10:28:49 -04:00
Joel Kaartinen
c42b8d9d91 Optimize block list page to not parse all transactions from a block when
the only data that is interesting is number of transactions. Fixes 100%
CPU while building block list.
2016-03-29 12:16:14 +03:00
Braydon Fuller
94f584f792 Added configurable caching. 2015-10-23 15:20:20 -04:00
Braydon Fuller
3dfc1bc9e3 Switch to use bitcore-lib. 2015-10-16 18:14:38 -04:00
Braydon Fuller
c7054051e3 Include mining pool information. 2015-09-22 13:32:41 -04:00
Braydon Fuller
b49f1505eb Added bindings for getNextBlockHash 2015-09-21 14:37:13 -04:00