Nxt Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Nxt Client 1.11.5 - NEW RELEASE: Ardor 2.0.3e TestNet IS LAUNCHED!

Pages: [1]

Author Topic: getBlockchainStatus --> isSyncing, or isSynchronized  (Read 368 times)

altsheets

  • Full Member
  • ***
  • Offline Offline
  • Posts: 231
  • check out #AAssetNXT #AltFolio and #AssetGraphs
    • View Profile
    • AssetGraphs-v2 live examples
  • Karma: +31/-1

I suggest a new flag:

getBlockchainStatus -->  isSynchronized
  • true = when numberOfBlocks ~ lastBlockchainFeederHeight,
    and all other perhaps necessary conditions fullfilled.

  • false = when there are still blocks being sync'ed

The NRS is showing a message "Finished blockchain download" anyways - so perhaps in that moment, this flag could be set to True?

See https://forum.thesupernet.org/index.php?topic=796.msg16304#msg16304 and and https://forum.thesupernet.org/index.php?topic=796.msg16340#msg16340 for how I found this idea.

AltFolio | Newbium DataSite | AAssetNXT & -HZ | AssetGraphs | ABEE | Advice | assetparser.py & shareholders.py | bamm.py | PeerCrawler | Github e.g. ChainCountDown, ethjsre | ... much more | dividends soon paid in AAssetNXT & AAssetHZ, autumn/winter 2016
Pages: [1]