[ANN] FindstakeJS is released

if your address is PLY5hz1DcQGsdK3V2i7kf4PFVhjU7pGjdr

this example has a lot of outputs, but usually there is only one

[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]

Yes sorry got distracted on the forum redesing, now that is finished can have a look at sorting this out, I will have some time later today if you are round to run through the install as would be good to get it up and running as I can then help others setting up as well. Let me know in chat or here when you are free, but i’ll start work when I can.

Fuzzybear

Yeah had I known installing level(down) would be such a pain for some, I would have chosen another db.

I luckily had no difficulties on a 32bit machine but from what I could gather on the web it can be a bit more work on a 64bit.

see e.g. https://github.com/Level/level/issues/12

This is what I’ve collected so far:

  • Windows: Node 0.10 and above only. See installation instructions for node-gyp’s dependencies here, you’ll need these (free) components from Microsoft to compile and run any native Node add-on in Windows.

  • copied from https://github.com/TooTallNate/node-gyp#installation
    On Windows:
    Python (v2.7.3 recommended, v3.x.x is not supported)
    Windows XP/Vista/7:
    Microsoft Visual Studio C++ 2010 (Express version works well)
    For 64-bit builds of node and native modules you will also need the Windows 7 64-bit SDK
    If the install fails, try uninstalling any C++ 2010 x64&x86 Redistributable that you have installed first.
    If you get errors that the 64-bit compilers are not installed you may also need the compiler update for the Windows SDK 7.1
    Windows 7/8:
    Microsoft Visual Studio C++ 2012/13 for Windows Desktop (Express version works well)

@FuzzyBear

I played a bit with hook.io and managed to make a hook to lookup unspent txo with jsonp.

Please have a look at


index.html page

that no longer asks for a txid but just a Peercoin Address :))

If you want to make http://findstakejs.peercointalk.org/ work without nodejs simply use the newly uploaded index.html

[quote=“thehuntergames, post:44, topic:3304”][member=1]FuzzyBear[/member]

I played a bit with hook.io and managed to make a hook to lookup unspent txo with jsonp.

Please have a look at


index.html page

that no longer asks for a txid but just a Peercoin Address :))

If you want to make http://findstakejs.peercointalk.org/ work without nodejs simply use the newly uploaded index.html[/quote]
Hey thehungergames,

Sweet many thanks for this update, I have updated both the singlepage and index.html to be the ones you linked. Have you an address and dates that I can test with that should produce a known result?

Fuzzybear

@FuzzyBear

I am sorry to say that I ve found another bug. Please get the latest version of index.html from github.

This time testing with
PUCyeBisMSYyAjVB69UThCb1j8eTdVrmA2
which has 5 outputs
the page does not get stuck at ‘retrieving data…’

At the moment it is still finding stakes for March 2015, will let you know when it is done.

[quote=“thehuntergames, post:46, topic:3304”][member=1]FuzzyBear[/member]

I am sorry to say that I ve found another bug. Please get the latest version of index.html from github.

This time testing with
PUCyeBisMSYyAjVB69UThCb1j8eTdVrmA2
which has 5 outputs
the page does not get stuck at ‘retrieving data…’

At the moment it is still finding stakes for March 2015, will let you know when it is done.[/quote]

Updated index.html

What date range you get 5 outputs? I run for feb 28th for both dates and get

Data successfully retrieved Starting... Findstake started Finished!
running for a month range is taking a while :stuck_out_tongue:

Feel I have not set it up properly still :frowning:

Fuzzybear

PUCyeBisMSYyAjVB69UThCb1j8eTdVrmA2 has 5 unspent outputs. But as expected with its low balance no stakes were found.

PLY5hz1DcQGsdK3V2i7kf4PFVhjU7pGjdr has even more unspent outputs.
If the owner decides to mint on march 6th and march 8th, he should be able to find stakes at a difficulty of 22.1 and 36.9 respectively. Both around 6:11AM and 6:04AM New York time

Tested with the installed version:
central european time

no guarantees: if the owner moves the coins, the unspent outputs will dynamically change along with them

Unanswered question:

What does this “36.9” number means? Is this the % chance to mint at this date?

[quote=“Thireus, post:49, topic:3304”]Unanswered question:

What does this “36.9” number means? Is this the % chance to mint at this date?[/quote]

Difficulty of the found stake, I think. If the network difficulty is higher than this, the stake won’t be accepted as a block.

Awesome thank you for the clarification! :slight_smile:

@FuzzyBear

I ve changed the divshot.com and hook.io ajax links to https. Updates to be found on github.

[quote=“thehuntergames, post:52, topic:3304”][member=1]FuzzyBear[/member]

I ve changed the divshot.com and hook.io ajax links to https. Updates to be found on github.[/quote]

I see everyone is joining the SSL party :). This is great to see. Good job!

FuzzyBear

please update findstakejs.peercointalk.org as it consoles an error:

Mixed Content: The page at ‘https://findstakejs.peercointalk.org/’ was loaded over HTTPS, but requested an insecure script ‘http://hook.io/jointhepartypooper/hookGetFindstakeData?PeercoinAddress=PWcA…SmkqN&run=true&callback=P…&_=1425709333403’. This request has been blocked; the content must be served over HTTPS.

[member=1]FuzzyBear[/member] for the mention :slight_smile:

+1 for the rest.

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

please update findstakejs.peercointalk.org as it consoles an error:

Mixed Content: The page at ‘https://findstakejs.peercointalk.org/’ was loaded over HTTPS, but requested an insecure script ‘http://hook.io/jointhepartypooper/hookGetFindstakeData?PeercoinAddress=PWcA…SmkqN&run=true&callback=P…&_=1425709333403’. This request has been blocked; the content must be served over HTTPS.[/quote]

https://findstakejs.peercointalk.org/ updated and no console errors on https requests :slight_smile:

Fuzzybear

If there are multiple transactions in the address, I hope findstakeJS can tell which utxo it is (with balance) when a block is found.

I think it does. Otherwise you’d have to run this one TX after the other: https://findstakejs.peercointalk.org/findstake_singlepage.html

Anything is possible, for now you can use findstake_singlepage.html as I am curious for the final outcome of de attack described in the 40 page Neucoin paper. Findstakejs might not work anymore as of next hard fork of ppc.

If you want to DIY, try replace

retobj.success = true;

with

retobj.success = true; console.log(this.PrevTxOutValue);

which will log the output value of the txo

I think it does. Otherwise you’d have to run this one TX after the other: https://findstakejs.peercointalk.org/findstake_singlepage.html[/quote]

I run the one at https://findstakejs.peercointalk.org/ . The singlepage version hangs at “retrieving data…”