Commit Graph

87 Commits

Author SHA1 Message Date
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
d47b6047e5
Update index.js 2022-01-25 11:00:27 +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
5344d9cd5b
Fixed the conditional operator 2021-05-17 16:14:54 +05:30
Vivek Teega
453d11c64c 1.0.7 Commented out assertion stops 2021-05-17 12:59:36 +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
ecf9bbaeea Properly import TX and Block from fcoin 2019-07-22 17:26:54 -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
dc7eacb112 Update Genesis Info 2018-05-17 09:47:23 -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
fe2e29d74a Rename bcoin to fcoin 2018-05-15 15:04:33 -07:00
Sky Young
17a4e0f0cc Use fcoin instead of bcoin 2018-05-08 13:48:43 -07:00
Chris Kleeschulte
0a4e0dd9fd
Fixed tests and repaired reorg logic. 2017-10-26 15:35:01 -04:00
Chris Kleeschulte
299b905d5b
wip on reorg changes. 2017-10-26 09:59:39 -04:00
Chris Kleeschulte
ad650c383e
Added a block cache to speed up syncing. 2017-10-24 17:46:34 -04:00
Chris Kleeschulte
4f46947516
Fixed tx api call. 2017-10-20 10:04:33 -04:00
Chris Kleeschulte
f90e0d2ed5
Removed header interval. 2017-10-19 15:05:38 -04:00
Chris Kleeschulte
93db6790e2
Repairs to getAddressSummary. 2017-10-11 16:38:28 -04:00
Chris Kleeschulte
7da189acf9
Added warning about re-querying for sync blocks. 2017-10-10 14:10:21 -04:00
Chris Kleeschulte
aa6570d23a
Fixed issue with missing header on log entry. 2017-10-07 14:18:14 -04:00
Chris Kleeschulte
c7c268f00a
Adding search mempool by address. 2017-10-05 16:18:16 -04:00
Chris Kleeschulte
67ce58d698
Fixed logging issues. 2017-10-04 18:30:22 -04:00
Chris Kleeschulte
b8bc017136
Fixed reorg where we don't have all the previous blocks. 2017-10-02 10:13:33 -04:00
Chris Kleeschulte
ffa63fc146
Added reorg fixes. 2017-10-01 19:15:20 -04:00
Chris Kleeschulte
09b365772c
more reorg stuff. 2017-09-28 11:01:57 -04:00
Chris Kleeschulte
74542a3e7f
Changed to a more traditional reorg detection. 2017-09-27 14:06:36 -04:00
Chris Kleeschulte
0c75879084 Fixed for getDetailedTransaction. 2017-09-27 10:21:52 -04:00
Chris Kleeschulte
ee97cb5b12
Added fixes for reorg and added time since last block. 2017-09-26 11:05:24 -04:00
Chris Kleeschulte
f5ad8b89fb
Added next hash support in header service. 2017-09-25 21:21:05 -04:00
Chris Kleeschulte
a5f9d1a6d0
Fixed edge case reorg issues. 2017-09-24 12:34:27 -04:00
Chris Kleeschulte
b160814706
Clean up. 2017-09-22 14:16:02 -04:00
Chris Kleeschulte
a1db879fdc
Fixed tests. 2017-09-22 13:31:52 -04:00
Chris Kleeschulte
ada997c8bd
Added reorg test. 2017-09-21 17:05:09 -04:00
Chris Kleeschulte
d5e5904329
Added more checks. 2017-09-19 11:03:39 -04:00
Chris Kleeschulte
66e82a3fe7
Fixed edge case where new peer has unexpectedly low number of blocks. 2017-09-19 08:48:49 -04:00
Chris Kleeschulte
de163ad4c9
Fixed issues with reorg again. 2017-09-14 10:10:07 -04:00
Chris Kleeschulte
7350fb3bf6
Fixed reorg edge case scenario. 2017-09-13 11:02:48 -04:00
Chris Kleeschulte
6a18c1e46e
Fixed issue with reorg. 2017-09-11 15:41:27 -04:00
Chris Kleeschulte
82dd1dfe3f
Fixed reorging. 2017-09-08 14:18:55 -04:00
Chris Kleeschulte
02ff6c680c
Fixed sync resume (memory issues).
Input values on tx index are no longer lazy loaded.
2017-09-07 18:55:33 -04:00
Chris Kleeschulte
3dd9aea3dd
Fixed issue where new blocks were not indexed by header service. 2017-09-01 15:57:03 -04:00
Chris Kleeschulte
99d8a6f7ae
Usability upgrades:
- node will start services prior to bcoin becoming synchronized
- resume after peer disconnection and reconnection
- error message when using non-supported versions of nodeJS.
2017-08-31 15:26:59 -04:00