I would like to include the NFactor count down in block explorer.
I remember someone post kind of JAVA code for generating NFactor check points before (not the mm/dd/yyyy format in official website but in unix time stamp) Searched for a while but can not find it.
Could the author pls post again?
Some of the things that I think bumface/ziggy needs to do from my point of view:
1. Explain more about the N-factor. MANY people does not know about this.
We need to know the dates of when the N-factor changes for UTC and what that implies.
It's a BIG part of UTC so I don't understand how this is not explained on the OP from day 1.
bumface, you told me you'll speak to ziggy about this 3 days ago? What happened?
I'll post my N-factor timetable again, derived from the code in
https://github.com/ziggy909/ultracoin/blob/master/src/main.cpp starting at line 994. I made a little javascript loop with the same calculations starting with Ultracoins sj-time.
var sjtime = 1388361600;
var Ntime;
var l = 0;
var seconds = 0;
var s = 0;
var n = 0;
var N = 0;
var last = 8; // no output until N=9
while (seconds < 12884901888)
{
seconds += 1;
s = seconds;
l = 0;
n = 0;
N = 0;
while ((s >> 1) > 3)
{
l += 1;
s >>= 1;
}
s &= 3;
n = (l * 170 + s * 25 - 2320) / 100;
if (n < 0) n = 0;
N = Math.floor(n);
if (N > last)
{
last = N;
Ntime = new Date(sjtime*1000 + seconds*1000);
//print("N-Factor :" + N + " significant digits :" + l + " leftovers :" + s + " raw N :" + n + " Seconds from start :" + seconds);
print("N-Factor :" + N + " Date :" + Ntime.toUTCString());
}
}
This is the output (i used a javascript console bookmarklet in firefox, it shut down the script before it got past N-factor 17)
N-Factor :9 Date :Thu, 23 Jan 2014 06:32:32 GMT
N-Factor :10 Date :Sun, 16 Feb 2014 13:05:04 GMT
N-Factor :11 Date :Fri, 28 Feb 2014 16:21:20 GMT
N-Factor :12 Date :Sun, 06 Apr 2014 02:10:08 GMT
N-Factor :13 Date :Sat, 24 May 2014 15:15:12 GMT
N-Factor :14 Date :Sat, 12 Jul 2014 04:20:16 GMT
N-Factor :15 Date :Thu, 22 Jan 2015 08:40:32 GMT
N-Factor :16 Date :Wed, 29 Apr 2015 10:50:40 GMT
N-Factor :17 Date :Sun, 14 Feb 2016 17:21:04 GMT
The next N-factor increase should be on the 28th of this month.
there is this that i posted, however the javascript code will kill your browser and is not suitable for a web page, the best way to really do this would be to take the original chart and add 1388361600 to the first number in each range, to get javascript to display a unix timestamp as a date you need to multiply by 1000, javascript goes by miliseconds. i can probably put together something that just puts the numbers into an array and spits out the timestamp or date for the next n-factor if you would like.