[ANN] FindstakeJS is released

I have got Sept 25 04:44 from IPs at opposite side of the earth.
Getting the “Find Stakes” button to show is difficult.

After searching one output, can the “Find Stakes” button be reused? I can click on it but don’t see the counter. i am using firefox

44? thats good enough for me

You can only lookup unspent tx as it makes no sense to find stakes on spent outputs (with the exception of the test example).

If you type in a tx that is not present, the (findstake_one)page simply hangs at status ''Retrieving data…"

The same origin policy does not allow the code to check whether an url exists or not. So if nothing happens, just Refresh (F5) the page and start over

PS:
has anybody used Divshot.com? They only service static web hosting but if you manage to stay below 100Mb it stays free of charge. And you know what I like a lot about peercoin? its small blockchain!

Let s see if I migrate the json files from google drive…

Yes, it displays local time.

There could be 24 hours uncertainty for the user.

My results show that the found stake is neither displayed in GMT nor user’s local time. Could it be the web server’s local time?

You can only lookup unspent tx as it makes no sense to find stakes on spent outputs (with the exception of the test example).

If you type in a tx that is not present, the (findstake_one)page simply hangs at status ''Retrieving data…"

The same origin policy does not allow the code to check whether an url exists or not. So if nothing happens, just Refresh (F5) the page and start over

I was using the test address / dates you provided and use my utxo that has found stake before. The page hangs at ''Retrieving data…" 4 out of 5 times, starting over or not.

For me it’s perfectly fine, what is displayed by FindStakeJS is my local timezone. Example with TXiD 29b3b531b137da9cc0988533f31fdc09d4cfa9bc32b7770729b6afb556e53dd4 which minted at 2015-02-07 01:48:30 UTC (https://bkchain.org/ppc/tx/51db0d88cfc2daea082718311961c90e29870a97d9a0c469efda106d668ed908):

I am currently in Sofia (Bulgaria) and the timezone is UTC+2:

So, for me these coins have staked at 2015-02-07 03:48:30 UTC+2. Which is exactly what FindStakeJS is reporting in my Web browser:

What is your result for the test case

tx: 262c5be8cef19cad44bdf4af664bfd22f67e7b58f90bd39af90ceeef453fff3d index:1 around Sep 25th, 2014 (unix time 1411634680) min diff: 57 ... GMT: Thu, 25 Sep 2014 08:44:40 GMT

[quote=“mhps, post:26, topic:3304”]What is your result for the test case

tx: 262c5be8cef19cad44bdf4af664bfd22f67e7b58f90bd39af90ceeef453fff3d index:1 around Sep 25th, 2014 (unix time 1411634680) min diff: 57 ... GMT: Thu, 25 Sep 2014 08:44:40 GMT
[/quote]

Sep 25th, 11:44 UTC+2 (Sofia, Bulgaria Timezone)

I’m using Google Chrome (latest stable version). I have same results in Firefox (latest stable version). I haven’t tried other browsers.
OS: OSX

mhps, maybe you should check this: http://whatismytimezone.com/

It reports your web browser timezone. If it is not correct then there’s something wrong with your web browser. If not, then this is certainly a compatibility issue between your web browser and FindstakeJS. Maybe you could give us more details about your OS and web browser version.

This is what is written for me (currently staying in Sofia, Bulgaria):

The current time is Sat Feb 07 2015 10:08:11 GMT+0200 (EET) The GMT current time is Sat, 07 Feb 2015 08:08:11 GMT You are currently at GMT+/--2:00

FYI

if your output has staked before, it means it created a new transaction, so your tx is spent into a new tx output, which explains why the page can’t find it as it only contains unspents to minimise the database.

I just uploaded that test case for future test purposes

@Thireus: If you dont mind I’ll include 29b3b531b137da9cc0988533f31fdc09d4cfa9bc32b7770729b6afb556e53dd4_1 to my test set

Sure, no problem.

btw, what does the “46.7” number means, is this the % chance to mint at this date?

[quote=“thehuntergames, post:14, topic:3304”]There is a readme file too, but if you dont want to install nodejs and all that jazz, just download findstake_singlepage.html from https://github.com/jointhepartypooper/FindstakeJS/tree/master/FindstakeSinglePage

and open it

How to use:

What browser do i need to use and what software need to be installed ?

I really liked this and have added it to the services off peercointalk.

It can be found here http://findstakejs.peercointalk.org/

at the moment had issues with the build :frowning: but will get there :slight_smile: for now use the single page
http://findstakejs.peercointalk.org/findstake_singlepage.html

Fuzzybear

[quote=“FuzzyBear, post:32, topic:3304”]I really liked this and have added it to the services off peercointalk.

It can be found here http://findstakejs.peercointalk.org/

at the moment had issues with the build :frowning: but will get there :slight_smile: for now use the single page
http://findstakejs.peercointalk.org/findstake_singlepage.html

Fuzzybear[/quote]

Thanks for hosting this Fuzzy! Could you please add a link to the findstake_singlepage on the home page? I personally prefer using the singlepage which I find more useful.

Hi fb,
I assume you ve got nodejs installed and all, having looked at at http://findstakejs.peercointalk.org/

However I think you forgot to run ‘node webserver.js’ as it isnt able to get data from Rest api:

http://findstakejs.peercointalk.org/peercoin/P8pGJii1Jos35Au7ymBhS46ahuoDVrDdb8/unspent

[quote=“thehuntergames, post:34, topic:3304”]Hi fb,
I assume you ve got nodejs installed and all, having looked at at http://findstakejs.peercointalk.org/

However I think you forgot to run ‘node webserver.js’ as it isnt able to get data from Rest api:

http://findstakejs.peercointalk.org/peercoin/P8pGJii1Jos35Au7ymBhS46ahuoDVrDdb8/unspent[/quote]
hey thehungergames, many thanks for your reply, yes I got node.js installed and but was having an error when trying to configure node-gyp

following guide https://www.npmjs.com/package/node-gyp

I’m running python 2.7 on windows

run command npm install -g node-gyp
this goes through fine
run commend npm config set python C:/python27
this goes through fine

then not sure which directory supposed to cd into?
run command node-gyp configure
get an error

gyp: binding.gyp not found (cwd: C:\FindstakeJS-master\FindstakeJS-master) while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (C:\Users\Administrator\AppData\Roaming\npm\node_modules\node-gyp\lib\configure.js:343:16) gyp ERR! stack at ChildProcess.emit (events.js:110:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1067:12) gyp ERR! System Windows_NT 6.1.7601 gyp ERR! command "node" "C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" gyp ERR! cwd C:\FindstakeJS-master\FindstakeJS-master gyp ERR! node -v v0.12.0 gyp ERR! node-gyp -v v1.0.2 gyp ERR! not ok
any ideas??

fuzzybear

Let me see…
for starters I installed python 2.7 (with default location)

then I installed Microsoft Visual Studio C++ 2010 (Express) to get the compiler sdk

With that I was able to ‘npm install level’ successfully

One of my utxo found a block, confirming that FindstakeJS, when started using a local clone frombithub, works and displays stake-finding time in local time zone. Thank you, thehuntergames !

how do you use this? i put my address into the box and hit search and 40 minutes later nothing…am i doing something wrong?

at the moment had issues with the build :( but will get there :) for now use the single page http://findstakejs.peercointalk.org/findstake_singlepage.html

Fuzzybear

so use the version where you need to fill in a tx id and an index.

IMHO the link should be removed until the issues are resolved. This is very confusing for users.

[quote=“thehuntergames, post:39, topic:3304”]

at the moment had issues with the build :frowning: but will get there :slight_smile: for now use the single page
http://findstakejs.peercointalk.org/findstake_singlepage.html

Fuzzybear

so use the version where you need to fill in a tx id and an index.

IMHO the link should be removed until the issues are resolved. This is very confusing for users.[/quote]
whats a txOutIndex? is this visible on a blockchain explorer?