Commit Graph

700 Commits

Author SHA1 Message Date
sairajzero
69a829a6eb Update index.js 2023-01-28 01:46:39 +05:30
sairajzero
09a934f65b test-fix 2023-01-28 01:41:49 +05:30
sairajzero
66fa217f10 log: check-fix 2023-01-28 01:36:08 +05:30
sairajzero
d2bb1c6acb logging 2023-01-28 01:30:44 +05:30
sairajzero
3cd4806d12 logging 2023-01-28 01:24:26 +05:30
sairajzero
2de483ada3 logger 2023-01-28 01:16:07 +05:30
sairajzero
9e0ebda278 logging 2023-01-28 01:10:19 +05:30
sairajzero
f899f5671d Adding debug logs 2023-01-28 01:03:38 +05:30
sairajzero
6e2ffdf298 bug fixes 2023-01-28 00:58:09 +05:30
sairajzero
2145fdb056 pass 'express-ws' module to service setupRoutes
- flosight-api uses 'express-ws' module for ws api calls
2023-01-27 18:07:38 +05:30
sairajzero
4472ed8394 Changing fns to use _streamAddressSummary
Functions updated:
- getAddressHistory
- getAddressSummary

(old fns are kept as it is and renamed to __getAddressHistory and __getAddressSummary respectively)
2023-01-27 17:38:37 +05:30
sairajzero
e13bd5e3e6 Adding _streamAddressSummary
- Fn uses streamer to process data. Thus doesnt store the entire list of txid or tx details
- streamer fn can process the tx data as required
2023-01-27 17:36:39 +05:30
sairajzero
0283be05db Limit max response size 2023-01-27 17:31:02 +05:30
sairajzero
69e9465b93 block service: set MAX_IGNORED_BLOCK to 16 2023-01-18 00:19:20 +05:30
sairajzero
700abe0500 hotfix: block subscription getting stuck
- Issue: Block subscription getting stuck when a (missing) block wasn't received by block service.
- Solution: Re-trigger the sync process when too many blocks ignored

- Others: fixed a typo in _reportInterval property
2023-01-17 21:54:48 +05:30
sairajzero
0572ee6b35 header: clear _syncCheckInterval upon synced
Header service: clear _syncCheckInterval to null when clearing interval after sync completed
2023-01-17 16:44:42 +05:30
sairajzero
ece347c825 hotfix: best header not updating for prev fix
- updated header service best header from fcoin node directly.
- set interval check only if fcoin is started by flocore (else header best height ll not get updated and sync complete incorrectly)
2023-01-15 00:02:25 +05:30
sairajzero
f9e2ed304b hotfix for unresponsive header sync 2023-01-11 03:38:38 +05:30
00515c5378
Update index.js
Added a missing return HeaderService.prototype._handleError
2023-01-09 05:12:39 +05:30
4113d9cfd0
Update index.js 2022-01-25 11:23:06 +05:30
7fa2f096df
Update reorg.js 2022-01-25 11:18:46 +05:30
fcecf08ac0
Update reorg.js 2022-01-25 11:18:13 +05:30
af6048de93
Update index.js 2022-01-25 11:13:27 +05:30
d47b6047e5
Update index.js 2022-01-25 11:00:27 +05:30
c525516a95
Update reorg.js 2022-01-25 10:57:40 +05:30
0eaa4b6fd2
Update index.js 2022-01-25 10:54:54 +05:30
2921e389df
Update block_handler.js 2022-01-25 00:31:31 +05:30
522d00bd52
Update index.js 2022-01-25 00:25:25 +05:30
821aae706d
Update index.js 2022-01-25 00:22:55 +05:30
18d1a16b0c
Update reorg.js 2022-01-25 00:07:57 +05:30
9c0ec67ccf
Update index.js 2022-01-25 00:03:52 +05:30
f0768027c9
Update index.js 2022-01-24 18:06:15 +05:30
80f22f731f
Update index.js 2022-01-24 17:57:48 +05:30
81a3d5f8ff
Update reorg.js 2022-01-24 17:56:37 +05:30
69fc6790ae
Update reorg.js 2022-01-24 17:55:39 +05:30
5db68b6bb7
Update reorg.js 2022-01-24 17:53:30 +05:30
091d7aa863
Update reorg.js 2022-01-24 17:52:14 +05:30
582bdd698a
Update reorg.js 2022-01-24 17:50:10 +05:30
726156843e
Update index.js 2022-01-24 17:45:10 +05:30
846f85e2f8
Update block_handler.js 2022-01-24 17:40:20 +05:30
ca47013c5a
Update block_handler.js 2022-01-24 15:17:50 +05:30
82357f2ecc
Update reorg.js 2022-01-24 15:17:02 +05:30
c3cc5f7465
Update index.js 2022-01-24 15:16:15 +05:30
1888b4a4ae
Throwing error removed
new Error was stopping the running instance of flosight. Substituted by log.info
2022-01-24 15:15:11 +05:30
05c6cd7739
Fixed header existence conditions 2021-05-25 11:07:56 +05:30
2c37e05ff7
Added test to check header.height 2021-05-25 11:01:31 +05:30
sairajzero
0cfb80a164 reverting log.info to log.debug 2021-05-24 17:56:13 +05:30
11b0a58351
Fixed syntax issue 2021-05-24 16:54:44 +05:30
869a7c21b4
Converted _sync log.debug to log.info 2021-05-24 16:29:15 +05:30
17dd83de10
db index.js asserts removed for resilience 2021-05-20 09:40:40 +05:30
bad1fb2552
Updated definition of index.log 2021-05-18 11:02:41 +05:30
5344d9cd5b
Fixed the conditional operator 2021-05-17 16:14:54 +05:30
89c43cd9a7
Fixing the conditional operator 2021-05-17 16:11:11 +05:30
0d4a7e3e42
Modification of condition operator 2021-05-17 16:06:06 +05:30
d689045002
Updated comparison operator 2021-05-17 16:00:27 +05:30
Vivek Teega
1efed08a39 1.0.9 Removing assertions in transction and p2p service 2021-05-17 14:02:31 +05:30
Vivek Teega
56e5cb1f25 1.0.8 Commented out assertion stops 2021-05-17 13:37:19 +05:30
Vivek Teega
453d11c64c 1.0.7 Commented out assertion stops 2021-05-17 12:59:36 +05:30
Vivek Teega
3598c92e0f 1.0.6 Commented out more node.stop() calls
- Commented out all node.stop() calls to prevent the node from exiting under various error conditions
2021-05-13 18:46:20 +05:30
Vivek Teega
0061285204 1.0.5 "return" was missing from lib/services/block/index.js
- Reverted back the previous 2 commits
- Added return to lib/services/block/index.js
2021-05-11 13:21:45 +05:30
Vivek Teega
3b8d992504 1.0.4 FLOsight Error Resolution
Keeping the return as, return next();
2021-05-11 13:11:51 +05:30
Vivek Teega
79fff4051b 1.0.3 FLOsight Error Resolution
Commenting out the part which makes the node
2021-05-11 13:09:50 +05:30
Vivek Teega
c3d32b7ffc FLO Crash Error Resolution 2021-05-10 12:39:02 +05:30
Vivek Teega
861e908080 Change in reorg operation
Reorg operation previously used to nuke 2000 block headers and redownload them from peers upon detecting a fork in the blockchain. Flosight has been crashing a lot because of this. We have updated the number of block headers to nuke to 20000
2021-04-12 15:04:07 +05:30
Sky Young
a7c8cd4563 Revert changes to header service 2020-01-09 12:02:17 -07:00
Sky Young
d8da495b38 Fix Regtest Support! 2020-01-08 16:14:59 -07:00
Sky Young
02cc97b0a1 Pass network to Address.toString() 2019-08-16 09:24:20 -06:00
Sky Young
978679cad7 Pass fcoin Block template 2019-07-24 17:46:08 -06:00
Sky Young
ecf9bbaeea Properly import TX and Block from fcoin 2019-07-22 17:26:54 -06:00
Sky Young
59d6cc0867 Handle shutdown of fcoin 2019-07-19 17:33:19 -06:00
Sky Young
3a2f8d19de Update fcoin 2019-07-19 15:19:59 -06:00
Sky Young
02006ed18c Set the network version of fcoin before importing wallet
https://github.com/oipwg/fcoin/blob/master/docs/Examples/fullnode-and-wallet.js#L2
2018-10-04 12:37:34 -06:00
Sky Young
b139c33726 use self._bcoin 2018-10-04 12:05:27 -06:00
Sky Young
1268b47d85 Startup a bcoin wallet as well 2018-10-04 12:00:57 -06:00
Sky Young
2b0815df6c plugin id is zmq not bzmq 2018-10-04 11:12:33 -06:00
Sky Young
6c6e0ad446 Add bzmq plugin to allow zmq access 2018-10-04 10:30:00 -06:00
Sky Young
06bb34123a Add config: true to fcoin config to allow use of fcoin.conf file in datadir
This is mainly to allow the setting and changing of API keys in a seperate file, in case people want to access
2018-10-03 13:04:34 -06:00
Sky Young
375ee80b5d Make sure it is the initial sync to log Sync Complete
this prevents logging of Sync Complete every time a new block is added
2018-08-27 12:13:00 -07:00
Sky Young
8715aa5071 Small formatting changes 2018-08-27 12:10:09 -07:00
Sky Young
f488a02d2d Fix syncComplete calculations
The _lastHeaderCount would always be 2000 behind upon startup, even if it is synced with the last header, causing no more headers to be synced. This fixes the issue that prevented syncing occasionally after restart.
2018-08-27 12:10:02 -07:00
Sky Young
db11257a43 Update p2p http RPC port 2018-08-06 15:48:13 -07:00
Sky Young
e7ef0db2cb Merge branch 'master' of https://github.com/bitpay/bitcore-node into bitpay-master 2018-08-06 11:12:20 -07:00
Sky Young
b081c0a5f8 Only add tx to cache if it has at least 6 transactions 2018-06-08 15:48:39 -07:00
Sky Young
b1f828bea9 Revert "Update P2P Ports"
This reverts commit 57bc11a592.
2018-05-17 09:53:52 -07:00
Sky Young
dc7eacb112 Update Genesis Info 2018-05-17 09:47:23 -07:00
Sky Young
d45f6aecac Update protocol version 2018-05-17 09:38:20 -07:00
Sky Young
210b2fbcd7 Replace ts with time due to fcoin based on a higher version of lcoin 2018-05-17 09:36:43 -07:00
Sky Young
799675b234 Update printed version to 5.0.0 2018-05-17 09:35:44 -07:00
Sky Young
b9e4c8a6a5 move fcoin to bcoin 2018-05-17 09:35:30 -07:00
Sky Young
57bc11a592 Update P2P Ports 2018-05-17 09:35:18 -07:00
Sky Young
6358953553 Add Flo Ports 2018-05-16 11:03:32 -07:00
Sky Young
fe2e29d74a Rename bcoin to fcoin 2018-05-15 15:04:33 -07:00
Micah Riggan
eb637d3125
Adding rpc for broadcastRawTransaction 2018-05-10 16:32:08 -04:00
Sky Young
17a4e0f0cc Use fcoin instead of bcoin 2018-05-08 13:48:43 -07:00
Matias Alejo Garcia
34f31ac57d
Revert "Revert "add txIdList cache"" 2018-04-12 14:41:18 -03:00
Matias Alejo Garcia
bf8f25d9eb
Revert "add txIdList cache" 2018-04-12 12:30:09 -03:00
Matias Alejo Garcia
ddda913ccd add txIdList cache 2018-02-12 00:48:30 -03:00
Matias Alejo Garcia
0c24271833 change order to 'desc' 2018-02-11 19:47:52 -03:00
Matias Alejo Garcia
01a3df31c8 fix history sorting when paging results 2018-02-11 15:44:39 -03:00
OstlerDev
4a9658184a btc -> flo 2018-01-15 16:43:07 -08:00