Pages:
Author

Topic: [GP] GoldPieces - An expandable digital currency for online multiplayer gaming - page 55. (Read 131317 times)

sr. member
Activity: 345
Merit: 250



That's more like I'd expect, which source file contains the staking function? I was trying to find camorra and Kingdom earlier but so many files in gave up and went to work

main.cpp
legendary
Activity: 1050
Merit: 1000

Code:
// miner's coin stake reward based on coin age spent (coin-days)
int64_t GetProofOfStakeReward(int64_t nCoinAge, int64_t nFees)
{
    int64_t nRewardCoinYear;

    nRewardCoinYear = MAX_MINT_PROOF_OF_STAKE;

    int64_t nSubsidy = nCoinAge * nRewardCoinYear / 365 / COIN;


    if (fDebug && GetBoolArg("-printcreation"))
        printf("GetProofOfStakeReward(): create=%s nCoinAge=%"PRId64"\n", FormatMoney(nSubsidy).c_str(), nCoinAge);

    return nSubsidy + nFees;
}

wait a second the last part of that equation. Is that dividing the reward by the amount of coins your staking? if so wouldn't that mean more coins = less reward?

That's what it looks like to me as well, but I'm no programmer.
Just for reference.

Mintcoin  int64 nSubsidy = nCoinAge * nRewardCoinYear / 365;

Hyperstake int64 nSubsidy = nCoinAge * nRewardCoinYear / 365;


That's more like I'd expect, which source file contains the staking function? I was trying to find camorra and Kingdom earlier but so many files in gave up and went to work
sr. member
Activity: 345
Merit: 250

Code:
// miner's coin stake reward based on coin age spent (coin-days)
int64_t GetProofOfStakeReward(int64_t nCoinAge, int64_t nFees)
{
    int64_t nRewardCoinYear;

    nRewardCoinYear = MAX_MINT_PROOF_OF_STAKE;

    int64_t nSubsidy = nCoinAge * nRewardCoinYear / 365 / COIN;


    if (fDebug && GetBoolArg("-printcreation"))
        printf("GetProofOfStakeReward(): create=%s nCoinAge=%"PRId64"\n", FormatMoney(nSubsidy).c_str(), nCoinAge);

    return nSubsidy + nFees;
}

wait a second the last part of that equation. Is that dividing the reward by the amount of coins your staking? if so wouldn't that mean more coins = less reward?

That's what it looks like to me as well, but I'm no programmer.
Just for reference.

Mintcoin  int64 nSubsidy = nCoinAge * nRewardCoinYear / 365;

Hyperstake int64 nSubsidy = nCoinAge * nRewardCoinYear / 365;

full member
Activity: 184
Merit: 100
Can you please PLEASE fix the bug that turns off staking everytime you send coins or create new addresses ?
Ive lost several days of staking now.


Try using the coin control feature to send coins that aren't likely to stake soon.

I thought it was normal for staking to get turned off when you send PoS coins. The only way to get round it is to use coin control and not many coins have it. Either that or spit your coins into multiple wallets/addresses.
legendary
Activity: 1764
Merit: 1022
So, basicly make a ton of small under 50 coin blocks and stake those?
That would be best?

If you keep your wallet open 24/7 then each time your coins stake they split into two smaller sets. They will keep splitting until they get too small and then they will start to group up during each stake. So if you make them too small they will group up against the network weight to solve a block. As the network weight goes down the smaller blocks will stake more often then when a POS network is first starting out since most coins are in large chunks which make the network weight larger. So as all of the chucks in all of the wallet keep spitting and staking the network weight will even out against the stakes. Just need to give it some time and everyone should be staking good.
legendary
Activity: 1022
Merit: 1000
So, basicly make a ton of small under 50 coin blocks and stake those?
That would be best?
sr. member
Activity: 420
Merit: 250
Can you please PLEASE fix the bug that turns off staking everytime you send coins or create new addresses ?
Ive lost several days of staking now.


Try using the coin control feature to send coins that aren't likely to stake soon.
full member
Activity: 188
Merit: 100
sector5.xyz - HYPER, GP, LTC
Can you please PLEASE fix the bug that turns off staking everytime you send coins or create new addresses ?
Ive lost several days of staking now.



Which POS does not turn off staking when you send coins? I thought that all POS coins turns off staking when coins are sent.

it's not a bug. it's a feature! make sure to uncheck 'for staking only' when unlocking your wallet.
legendary
Activity: 1764
Merit: 1022
Can you please PLEASE fix the bug that turns off staking everytime you send coins or create new addresses ?
Ive lost several days of staking now.



Which POS does not turn off staking when you send coins? I thought that all POS coins turns off staking when coins are sent.
full member
Activity: 141
Merit: 100
Can you please PLEASE fix the bug that turns off staking everytime you send coins or create new addresses ?
Ive lost several days of staking now.

hero member
Activity: 677
Merit: 500
It all in the code, I sure u know how to search for words in text editor. CTRL-F or CMD-F works nicely Wink

Here is a hint:
Code:
// miner's coin stake reward based on coin age spent (coin-days)
int64_t GetProofOfStakeReward(int64_t nCoinAge, int64_t nFees)
{
    int64_t nRewardCoinYear;

    nRewardCoinYear = MAX_MINT_PROOF_OF_STAKE;

    int64_t nSubsidy = nCoinAge * nRewardCoinYear / 365 / COIN;


    if (fDebug && GetBoolArg("-printcreation"))
        printf("GetProofOfStakeReward(): create=%s nCoinAge=%"PRId64"\n", FormatMoney(nSubsidy).c_str(), nCoinAge);

    return nSubsidy + nFees;
}

I'm trying to get someone with expertise in POS coins to look over the code for us.
There will be around 4m coins (500%) after one year. Everything looks to be working fine. I to am getting stakes in the 0.5-1gp range, that is normal.
sr. member
Activity: 420
Merit: 250
It all in the code, I sure u know how to search for words in text editor. CTRL-F or CMD-F works nicely Wink

Here is a hint:
Code:
// miner's coin stake reward based on coin age spent (coin-days)
int64_t GetProofOfStakeReward(int64_t nCoinAge, int64_t nFees)
{
    int64_t nRewardCoinYear;

    nRewardCoinYear = MAX_MINT_PROOF_OF_STAKE;

    int64_t nSubsidy = nCoinAge * nRewardCoinYear / 365 / COIN;


    if (fDebug && GetBoolArg("-printcreation"))
        printf("GetProofOfStakeReward(): create=%s nCoinAge=%"PRId64"\n", FormatMoney(nSubsidy).c_str(), nCoinAge);

    return nSubsidy + nFees;
}


I'm trying to get someone with expertise in POS coins to look over the code for us.
hero member
Activity: 677
Merit: 500
So.... We have to make our coins into blocks of 50 coins and then it will stake faster..?

It should workout to be about the same speed either way you stack them, around 4m~ coins (500%) in January 2016
hero member
Activity: 677
Merit: 500
Ok guys it's been a great weekend, Here's my To DO for today

Organize OP /Spruce it up/Work on a road map
After which il continue working on our first game.

Also 100GP was added to the Team Funds

current balance: 1,819 GP
donate: GVPx5Vysf9jNQ5dPXHzYLE2xUNbqmkUJt2

I will get started on our Marketing campaign after the op is organized a bit better today as well.

Thanks!
~Inkha
hero member
Activity: 677
Merit: 500
Gold pieces coin is a online games coin.
it is a exchanging coin.
it have community forums.
if you want to play their games you will need to have some kind of callback system.
so they know when a player has submitted payment.
this could work similar to wallet but will be specifically created to game owner and players.
anyone can play this games easily whit this coin.

I'l be working on a payment gateway/callback system for online games after I get our first game http://Halhan.com to a public release. I know many online games that can integrate us as well once the payment gateway is ready (As a payment option for their cash shops, not an in-game currency)
full member
Activity: 139
Merit: 100
So.... We have to make our coins into blocks of 50 coins and then it will stake faster..?

There's a couple of us testing for optimal staking right now, so for the time being just let your coins age until we have some statistics. Smiley
legendary
Activity: 1022
Merit: 1000
So.... We have to make our coins into blocks of 50 coins and then it will stake faster..?
sr. member
Activity: 252
Merit: 250
Since everyone is seeming to have wrong stakes, I have a block of 90 going to be staking within the next 11+ hours, so when that stakes I will let you guys know the results and see what comes of it. Smiley
legendary
Activity: 1050
Merit: 1000

Code:
// miner's coin stake reward based on coin age spent (coin-days)
int64_t GetProofOfStakeReward(int64_t nCoinAge, int64_t nFees)
{
    int64_t nRewardCoinYear;

    nRewardCoinYear = MAX_MINT_PROOF_OF_STAKE;

    int64_t nSubsidy = nCoinAge * nRewardCoinYear / 365 / COIN;


    if (fDebug && GetBoolArg("-printcreation"))
        printf("GetProofOfStakeReward(): create=%s nCoinAge=%"PRId64"\n", FormatMoney(nSubsidy).c_str(), nCoinAge);

    return nSubsidy + nFees;
}

wait a second the last part of that equation. Is that dividing the reward by the amount of coins your staking? if so wouldn't that mean more coins = less reward?
legendary
Activity: 1050
Merit: 1000
Been reading through this thread regarding staking... you guys have to consider the compounding rate of your coins. It'll be wayyy more than 500% increase in coins if this compounds daily. The formula for compounding interest is A=P(1+(i/N)^NY.

Variables P is present supply,i is interest/annum, N is the number of compounding periods, and Y is the duration of staking.

Do the math:
A = 750000(1+5/365)^365*1
A = 750000(1+0.0137)^365
A = 750000(143.53)
A = 107250000

That may seem like a crazy number... 107,250,000 coins after 1 year... but thats the magic of compounding-daily Cheesy

Now lets see what happens if this coin compounds monthly:
A = 750000(1+5/12)^12*1
A = 750000(1+0.4167)^12
A = 750000(1.4167)^12
A = 750000^65.36
A = 49,020,000

49 MLN total coins after 1 year.

And what happens if this coin does not compound- just simple interest?

A = P(1+RT)
A = 750000(1+5*1)
A = 750000(6)
A = 4,500,000

4.5 MLN total coins after 1 year.



The compounding rate has a HUGE effect on how many coins exist after 1 year.

These numbers will always differ though, because not everyone stakes (exchange wallets dont stake from what I hear), and also due to the min/max stake age, the estimated supply after 1 year will almost always be less than the calculated amount. Unless the yearly increase of coins has been hard coded, percentage increases following compounding rates will always make calculating estimated supply difficult.

yes with compound you will get way more than 500% but only if you actually get 500% pa stake rate which it appears not to be
from the code its :
age*stakeweight/365/numcoins
thanks for posting a snip of the source what's the value for the constant MAX_MINT_PROOF_OF_STAKE?

sorry if this seems dumb but it still doesnt make sense how 102 coins in 32 hours produce the same as 12400 in 26 hours

put it this way if you opened 2 bank accounts at 5% apr deposited $100 in one and $12000 in the second would you expect them to pay the same amount of $ interest in each account each month?
no
Pages:
Jump to: