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: [PLG] Next Block Predictor Plugin  (Read 1693 times)

jones

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1043
  • write code not war
    • View Profile
    • jNxt
  • Karma: +310/-8
[PLG] Next Block Predictor Plugin
July 01, 2015, 06:47:37 am

A very simple box in the left corner of the screen that tells you how much time is left on the current block.



Download: http://jnxt.org/block_counter.zip

* I estimate that it is within a few seconds of being correct about 76ish% of the time, but sometimes it can be somewhat off, just due to how the calculations are made.
-- Jones NXT-RJU8-JSNR-H9J4-2KWKY

yassin54

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 2508
  • I am Homer, Sorry my english is Bad!!
    • View Profile
  • Karma: +240/-14
Re: [PLG] Next Block Predictor Plugin
July 01, 2015, 10:48:15 am

Nice Work!
where I must put this file?
C:\Program Files\Nxt\  ?
Thanks

starik69

  • Full Member
  • ***
  • Offline Offline
  • Posts: 197
    • View Profile
  • Karma: +10/-15
Re: [PLG] Next Block Predictor Plugin
July 01, 2015, 10:59:42 am

Is it possible to add (may be optional) timer till forge own block like it is in "classic" NRS? ???
Oh, you hardcoded first 20 forgers :-[
« Last Edit: July 01, 2015, 12:07:19 pm by starik69 »
NXT-R2U6-22MC-LQL2-22222 (648774468) - NXT | All versions of NXT client and more - https://mega.co.nz/#F!J1xmgAyC!cnaqdxHALLMGiS0hTPrhAg

jones

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1043
  • write code not war
    • View Profile
    • jNxt
  • Karma: +310/-8
Re: [PLG] Next Block Predictor Plugin
July 01, 2015, 04:44:05 pm

Nice Work!
where I must put this file?
C:\Program Files\Nxt\  ?
Thanks

Find your Nxt folder and put it in /html/ui/plugins relative to the base nxt folder

Is it possible to add (may be optional) timer till forge own block like it is in "classic" NRS? ???
Oh, you hardcoded first 20 forgers :-[

It would be possible to do this but it's a little different that the original idea, might decide to add it in later.

Tes, it scans the top 80ish% of forging accounts because that is the most efficient way I've found tk do this, if you do all the accounts, then there's a good chance that pepole won't forge and its wrong just as much. In this scenario I'm mostly sure that given the opportunity, these accounts will forge the block.
-- Jones NXT-RJU8-JSNR-H9J4-2KWKY

yassin54

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 2508
  • I am Homer, Sorry my english is Bad!!
    • View Profile
  • Karma: +240/-14
Re: [PLG] Next Block Predictor Plugin
July 01, 2015, 06:32:55 pm

Nice Work!
where I must put this file?
C:\Program Files\Nxt\  ?
Thanks

Find your Nxt folder and put it in /html/ui/plugins relative to the base nxt folder
Thanks

allwelder

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1867
  • NxtChina.org
    • View Profile
    • NxtChina.org
  • Karma: +196/-13
Re: [PLG] Next Block Predictor Plugin
July 02, 2015, 01:27:09 am

Nice,shared on NxtChina.org
NxtChina |Weibo |Twitter Donation welcomed:NXT-APL9-66GU-K8LY-B3JJJ

crimi

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 881
    • View Profile
  • Karma: +122/-11
Re: [PLG] Next Block Predictor Plugin
July 02, 2015, 06:17:26 pm

cool, you can now predict a little better when a third party will confirm your transaction.
PeerExplorer.com | NodeExplorer.com

Tosch110

  • Global Moderator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 2375
    • View Profile
  • Karma: +211/-16
Re: [PLG] Next Block Predictor Plugin
July 12, 2015, 11:43:44 pm

Did you take it offline? :(

chevdor

  • Full Member
  • ***
  • Offline Offline
  • Posts: 165
    • View Profile
  • Karma: +19/-0
Re: [PLG] Next Block Predictor Plugin
July 13, 2015, 12:46:42 pm

cool, can you add a function that tells when is MY next block? Make sure you can display years :)
NXT-YCLA-V44V-USJK-3GPJD
BM-2cXnA5HdtsDttGaPEAJd1oYX3zMbiKDewV

jones

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1043
  • write code not war
    • View Profile
    • jNxt
  • Karma: +310/-8
Re: [PLG] Next Block Predictor Plugin
July 14, 2015, 04:35:36 am

Did you take it offline? :(

No, its back up now, jnxt had some router issues yesterday, but it is all sorted out.

cool, can you add a function that tells when is MY next block? Make sure you can display years :)

the prediction of when you will forge the next block changes every block, and quite dramatically most of the time, so an average would probably be the best. you can do the calculation yourself pretty easily.

(1'000'000'000 / you balance) * 107 seconds per block.
-- Jones NXT-RJU8-JSNR-H9J4-2KWKY

neawanna

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 363
    • View Profile
  • Karma: +28/-9
Re: [PLG] Next Block Predictor Plugin
November 15, 2015, 09:53:18 am

This plugin isn't compatible with the latest 1.6.2 NRS. It caused UI to stall in various places on my machine.
Pages: [1]