FindstakeJS
Getting to know in advance when your Peercoins stake
FindStakeJS originates from Kac-'s Findstake project, a tool written in Go to predict stakes but ported to JavaScript. UI, webserver and database all in one language.
Most cryptocoin mining requires specialized hardware, but Peercoin minting can be done on any computer. Minting is energy-efficient, because it is based on the Peercoins you hold, rather than on your processing power.
*But Peercoin can even be more energy-efficient! *
With FindStakeJS, there is no need to leave Peerunity on 24-7 anymore. Find out in advance and turn on your wallet software just before it counts and help secure the network.
Features:
Easy to use interface. (But can be improved if you are a twitter bootstrap rockstar)
Can be used without online data services, your Peerunity has already all the date it needs.
A command line option to update its internal database via Peerunityd rpc-json interface.
At the moment Iâm stuck with âRetrieving dataâŚâ on Chrome. I donât really have time to debug, but it seems it doesnât fetch anything.
Would it be possible to explain how this data is parsed so that we can create our own?
Also another question: How is it possible to use this tool if our address has split transactions (i.e. after the minting reward we end up with two different transactions)? Canât it be made possible to enter a txID instead of address ID?
assuming you
have node installed and
ve waited until ânode updatedb.jsâ finishes, which takes about 2 hours,
you can lookup unspent tx with the following url:
one address can have multiple outputs, this example has a lot of outputs
project still doesnot work properly, it finds stakes in the first minutes after start, but i am done debugging at the moment, hopefully somebody has a fresh look at it.
âupdateâ
bug found and addressed
As for only a tx input iso an address; It actually requires an outpoint, which is a txid AND an index; Tat is too much to ask for IMHO.
To be user friendly, the UI just ask for the address and collect all unspent outputs it self to be included in the loop. It filters out those who hasnât reached the 30 days age limit as well so the loop does slow down too much by unnecessary hash calculation. I tested with above mentioned example to test worst case wise how much it slows does down with so many outputs, but it is still workable, ish
[quote=âthehuntergames, post:3, topic:3304â]assuming you
have node installed and
ve waited until ânode updatedb.jsâ finishes, which takes about 2 hours,
you can lookup unspent tx with the following url:
one address can have multiple outputs, this example has a lot of outputs
project still doesnot work properly, it finds stakes in the first minutes after start, but i am done debugging at the moment, hopefully somebody has a fresh look at it.[/quote]
Do you have plans to host this somewhere so people can use it without installing? If so, may I ask you for simple API?
With nwjs you can package the nodejs app to a desktop application findstakejs.exe which runs a internal webbrowser that has no same origin limitations.
No, this will encourage people to unlock their wallet at the right time (those who only have one or two transactions in their wallet that can be used for minting). Not everyone is minting with full active nodes too.
Full active nodes will remain full active (because it takes time to have more than 8 connections, so you donât want to loose this advantage).
Those who are minting with non-full active nodes will still need to run their wallet h24 to keep a decent connection as it requires a minimum of 8 active connections to be able to mint.
Also most wallets that are minting have dispatched transactions: they are minting one PoS block every 1h for example, so they cannot switch off their equipments in-between.
This may help little minters, those who have one big transaction only to open their wallet and unlock it at the right time. So I would rather say this is actually encouraging people to join the network.
The answer is no for the first order effect, where as difficulty changes is assumed to be insignificant. This is because a node only contributes to the security of the network when it finds a block. If it is not going to find a block in a certain period, it wonât add security to the network in the period.
However for the higher order effects, when unpredicted big change of difficulty is considered, taking nodes off line will reduce network security. Specifically, if someone takes his node off line for a month because the diff has been 15 and in this month his stakes will only find block at diff=13, then unexpectedly the difficulty dips to below 13, the node wonât be able to find the block at diff = 13 (hence unable to contribute to network security, pushing the diff up).
FindstakeJS
Getting to know in advance when your Peercoins stake
FindStakeJS originates from Kac-'s Findstake project, a tool written in Go to predict stakes but ported to JavaScript. UI, webserver and database all in one language.
Most cryptocoin mining requires specialized hardware, but Peercoin minting can be done on any computer. Minting is energy-efficient, because it is based on the Peercoins you hold, rather than on your processing power.
*But Peercoin can even be more energy-efficient! *
With FindStakeJS, there is no need to leave Peerunity on 24-7 anymore. Find out in advance and turn on your wallet software just before it counts and help secure the network.
Features:
Easy to use interface. (But can be improved if you are a twitter bootstrap rockstar)
Can be used without online data services, your Peerunity has already all the date it needs.
A command line option to update its internal database via Peerunityd rpc-json interface.[/quote]
Maybe it is not obvoius, but donât click on the link above. Substitute the âyour-Peercoin-addressâ in the address with your address.
You can get the txID by openning your wallet and right-clicking on the transaction when you received the fund, and selecting âShow detailsâŚâ.
The n is usually 1. I think the findstakeJS should use 1 as default.
BTW what time zone is the found stake displayed in ?