Bitcoin Forum
June 01, 2024, 07:21:32 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 [26] 27 28 »
  Print  
Author Topic: AnaLCoin | SHA256 | POW/POS | 300k coins | IN-WLT TRDNG ! | LAUNCHED !!!  (Read 54405 times)
jc12345
Legendary
*
Offline Offline

Activity: 1638
Merit: 1013


View Profile
April 01, 2015, 04:00:02 PM
 #501


away from my wallet, whats the problem?

The block chain is not moving along on autopilot to produce POS blocks every 40s or so as per the design. Only when coins are sent to another address does it trigger a POS block. If nothing is sent, the chain stands still. If Anal hodlers want to move their coins, it is currently a manual process whereby someone must send 20 coins or so to and fro from one address to another all the time so that the movement triggers POS blocks to be solved. Something is not right and the dev (or someone with coding knowledge) must fix this.
VanityWallets2015
Hero Member
*****
Offline Offline

Activity: 1498
Merit: 506



View Profile
April 01, 2015, 06:35:27 PM
Last edit: October 11, 2016, 06:27:07 PM by VanityWallets2015
 #502

This post was inappropriate and posted during a time of personal and mental health issues, sorry.

         ▄▄▄███████▄▄▄
     ▄▀█▀█ █████████████▄▄
   ▄██ █ █▄████████████████▄
  ██ █ ██▀█ █████████████████
 █▀█▄█▄▀█▄██▄█████████████████
██ █ ██ ██ ██▄▀████████████████
███▀█▀██ ███▀███▀██████████████
███▄██ ██▄▀██▄███▄█████████████
 ███▄▀██▀██▄▀██▄▀██▄▀▀████████
  █████▀█▄█▀█▄▀▀██▄▀▀██▄▄▀█▀█
   ▀████▄███▄█▀█▄▄▀▀▀█▄▄█▀█▀
     ▀▀████▄▀██▄▄█▀▀█▄▄▄▀▀
         ▀▀▀██▄▄███▀▀▀
.
......1xBit.com..BENEFIT ..SEASON........
       ▄▄███████████▄▄
    ▄███████████████████▄
  ▄██████████████████████▄
 █████████████████████████
██████████████████████████▌
████████████████████████████▄▄
███████████████████████████████
        █    █▄   █
        ▀▀▄    ▀▀▀█▀▀▀█▀▀▀▀▀▀▀█
           ▀▀▄    ▀▀▄▄█      ▄▀
              ▀▀▄     █▀▀▄▄  █
                 ▀▀▄  █   ▄█▀
                    ▀▀█▄▀▀
.
.
..PLAY NOW..
Vlizzjeffrey
Hero Member
*****
Offline Offline

Activity: 784
Merit: 503


Bitcoin King BTC


View Profile
April 01, 2015, 08:47:43 PM
 #503

we must advertise this on datingsites so all the girls can see it, all the girls who like anal will buy this for sure then it will be madness, imagine millions of women buying analcoin because they just cant resist it.

           ▀██▄ ▄██▀
            ▐█████▌
           ▄███▀███▄
         ▄████▄  ▀███▄
       ▄███▀ ▀██▄  ▀███▄
     ▄███▀  ▄█████▄  ▀███▄
   ▄███▀  ▄███▀ ▀███▄  ▀███▄
  ███▀  ▄████▌   ▐████▄  ▀███
 ███   ██▀  ██▄ ▄██  ▀██   ███
███   ███  ███   ███  ███   ███
███   ███   ███████   ███   ███
 ███   ███▄▄       ▄▄███   ███
  ███▄   ▀▀█████████▀▀   ▄███
   ▀████▄▄           ▄▄████▀
      ▀▀███████████████▀▀
DeepOnion★  Anonymity Guaranteed
★  Anonymous and Untraceable
★  Guard Your Privacy
      ▄▄██████████▄▄
    ▄███▀▀      ▀▀█▀   ▄▄
   ███▀              ▄███
  ███              ▄███▀   ▄▄
 ███▌  ▄▄▄▄      ▄███▀   ▄███
▐███  ██████   ▄███▀   ▄███▀
███▌ ███  ███▄███▀   ▄███▀
███▌ ███   ████▀   ▄███▀
███▌  ███   █▀   ▄███▀  ███
▐███   ███     ▄███▀   ███
 ███▌   ███  ▄███▀     ███
  ███    ██████▀      ███
   ███▄             ▄███
    ▀███▄▄       ▄▄███▀
      ▀▀███████████▀▀
Peter80
Member
**
Offline Offline

Activity: 68
Merit: 10


View Profile
April 01, 2015, 08:55:15 PM
 #504

ANALICIOUS GIVEAWAY!



Please contribute Analcoin to the following address for a FAUCET/GIVEAWAY to encourage people to use Analcoin. Probably 0.05 per person. I will donate 500 coins to this.
NEW FAUCET/GIVEAWAY DONATION ADDRESS: AG6wWbkuVu2aeRruEo3Tc7hg5eL6evFY2g
Giveaway to start around 4/4/2015




as promised send 1000 Anal for the Giveaway. --> 59efb49d182c86fda87cc9de49ed5a7ad7cfc91b37242f0f4bdc20d98d33dfff

@DEV --> If you have no time for edit ann etc., pls talk with Vanity - he did great community work! Come on Wink

VanityWallets2015
Hero Member
*****
Offline Offline

Activity: 1498
Merit: 506



View Profile
April 01, 2015, 09:43:01 PM
Last edit: October 11, 2016, 06:27:26 PM by VanityWallets2015
 #505

This post was inappropriate and posted during a time of personal and mental health issues, sorry.

         ▄▄▄███████▄▄▄
     ▄▀█▀█ █████████████▄▄
   ▄██ █ █▄████████████████▄
  ██ █ ██▀█ █████████████████
 █▀█▄█▄▀█▄██▄█████████████████
██ █ ██ ██ ██▄▀████████████████
███▀█▀██ ███▀███▀██████████████
███▄██ ██▄▀██▄███▄█████████████
 ███▄▀██▀██▄▀██▄▀██▄▀▀████████
  █████▀█▄█▀█▄▀▀██▄▀▀██▄▄▀█▀█
   ▀████▄███▄█▀█▄▄▀▀▀█▄▄█▀█▀
     ▀▀████▄▀██▄▄█▀▀█▄▄▄▀▀
         ▀▀▀██▄▄███▀▀▀
.
......1xBit.com..BENEFIT ..SEASON........
       ▄▄███████████▄▄
    ▄███████████████████▄
  ▄██████████████████████▄
 █████████████████████████
██████████████████████████▌
████████████████████████████▄▄
███████████████████████████████
        █    █▄   █
        ▀▀▄    ▀▀▀█▀▀▀█▀▀▀▀▀▀▀█
           ▀▀▄    ▀▀▄▄█      ▄▀
              ▀▀▄     █▀▀▄▄  █
                 ▀▀▄  █   ▄█▀
                    ▀▀█▄▀▀
.
.
..PLAY NOW..
VanityWallets2015
Hero Member
*****
Offline Offline

Activity: 1498
Merit: 506



View Profile
April 01, 2015, 09:45:04 PM
Last edit: October 11, 2016, 06:27:36 PM by VanityWallets2015
 #506

This post was inappropriate and posted during a time of personal and mental health issues, sorry.

         ▄▄▄███████▄▄▄
     ▄▀█▀█ █████████████▄▄
   ▄██ █ █▄████████████████▄
  ██ █ ██▀█ █████████████████
 █▀█▄█▄▀█▄██▄█████████████████
██ █ ██ ██ ██▄▀████████████████
███▀█▀██ ███▀███▀██████████████
███▄██ ██▄▀██▄███▄█████████████
 ███▄▀██▀██▄▀██▄▀██▄▀▀████████
  █████▀█▄█▀█▄▀▀██▄▀▀██▄▄▀█▀█
   ▀████▄███▄█▀█▄▄▀▀▀█▄▄█▀█▀
     ▀▀████▄▀██▄▄█▀▀█▄▄▄▀▀
         ▀▀▀██▄▄███▀▀▀
.
......1xBit.com..BENEFIT ..SEASON........
       ▄▄███████████▄▄
    ▄███████████████████▄
  ▄██████████████████████▄
 █████████████████████████
██████████████████████████▌
████████████████████████████▄▄
███████████████████████████████
        █    █▄   █
        ▀▀▄    ▀▀▀█▀▀▀█▀▀▀▀▀▀▀█
           ▀▀▄    ▀▀▄▄█      ▄▀
              ▀▀▄     █▀▀▄▄  █
                 ▀▀▄  █   ▄█▀
                    ▀▀█▄▀▀
.
.
..PLAY NOW..
VanityWallets2015
Hero Member
*****
Offline Offline

Activity: 1498
Merit: 506



View Profile
April 02, 2015, 12:01:56 AM
Last edit: October 11, 2016, 06:26:15 PM by VanityWallets2015
 #507

This post was inappropriate and posted during a time of personal and mental health issues, sorry.

         ▄▄▄███████▄▄▄
     ▄▀█▀█ █████████████▄▄
   ▄██ █ █▄████████████████▄
  ██ █ ██▀█ █████████████████
 █▀█▄█▄▀█▄██▄█████████████████
██ █ ██ ██ ██▄▀████████████████
███▀█▀██ ███▀███▀██████████████
███▄██ ██▄▀██▄███▄█████████████
 ███▄▀██▀██▄▀██▄▀██▄▀▀████████
  █████▀█▄█▀█▄▀▀██▄▀▀██▄▄▀█▀█
   ▀████▄███▄█▀█▄▄▀▀▀█▄▄█▀█▀
     ▀▀████▄▀██▄▄█▀▀█▄▄▄▀▀
         ▀▀▀██▄▄███▀▀▀
.
......1xBit.com..BENEFIT ..SEASON........
       ▄▄███████████▄▄
    ▄███████████████████▄
  ▄██████████████████████▄
 █████████████████████████
██████████████████████████▌
████████████████████████████▄▄
███████████████████████████████
        █    █▄   █
        ▀▀▄    ▀▀▀█▀▀▀█▀▀▀▀▀▀▀█
           ▀▀▄    ▀▀▄▄█      ▄▀
              ▀▀▄     █▀▀▄▄  █
                 ▀▀▄  █   ▄█▀
                    ▀▀█▄▀▀
.
.
..PLAY NOW..
bombardo
Newbie
*
Offline Offline

Activity: 49
Merit: 0


View Profile
April 02, 2015, 01:32:11 PM
 #508

I would suggest that the wallet issue is fix first as it is not functioning as it should.

Is there anybody in the community with the knowledge to have a look and fix this wallet.
Arie22
Sr. Member
****
Offline Offline

Activity: 348
Merit: 250


View Profile
April 02, 2015, 01:33:41 PM
 #509

I would suggest that the wallet issue is fix first as it is not functioning as it should.

Is there anybody in the community with the knowledge to have a look and fix this wallet.

I agree wallet need to fix..

It's say 2 sec but never stake  Huh
jc12345
Legendary
*
Offline Offline

Activity: 1638
Merit: 1013


View Profile
April 02, 2015, 02:56:31 PM
 #510

I would suggest that the wallet issue is fix first as it is not functioning as it should.

Is there anybody in the community with the knowledge to have a look and fix this wallet.

I agree wallet need to fix..

It's say 2 sec but never stake  Huh

Its manual at the moment. Send coins to trigger the next block. It should recognise the POS reward and kick of the next block but doesnt.
VanityWallets2015
Hero Member
*****
Offline Offline

Activity: 1498
Merit: 506



View Profile
April 02, 2015, 07:09:05 PM
 #511

I would suggest that the wallet issue is fix first as it is not functioning as it should.

Is there anybody in the community with the knowledge to have a look and fix this wallet.

I agree wallet need to fix..

It's say 2 sec but never stake  Huh

Its manual at the moment. Send coins to trigger the next block. It should recognise the POS reward and kick of the next block but doesnt.

I've asked someone to take a look at the wallet, see if we can organise a small bounty if its fixed and recompiled.

         ▄▄▄███████▄▄▄
     ▄▀█▀█ █████████████▄▄
   ▄██ █ █▄████████████████▄
  ██ █ ██▀█ █████████████████
 █▀█▄█▄▀█▄██▄█████████████████
██ █ ██ ██ ██▄▀████████████████
███▀█▀██ ███▀███▀██████████████
███▄██ ██▄▀██▄███▄█████████████
 ███▄▀██▀██▄▀██▄▀██▄▀▀████████
  █████▀█▄█▀█▄▀▀██▄▀▀██▄▄▀█▀█
   ▀████▄███▄█▀█▄▄▀▀▀█▄▄█▀█▀
     ▀▀████▄▀██▄▄█▀▀█▄▄▄▀▀
         ▀▀▀██▄▄███▀▀▀
.
......1xBit.com..BENEFIT ..SEASON........
       ▄▄███████████▄▄
    ▄███████████████████▄
  ▄██████████████████████▄
 █████████████████████████
██████████████████████████▌
████████████████████████████▄▄
███████████████████████████████
        █    █▄   █
        ▀▀▄    ▀▀▀█▀▀▀█▀▀▀▀▀▀▀█
           ▀▀▄    ▀▀▄▄█      ▄▀
              ▀▀▄     █▀▀▄▄  █
                 ▀▀▄  █   ▄█▀
                    ▀▀█▄▀▀
.
.
..PLAY NOW..
VanityWallets2015
Hero Member
*****
Offline Offline

Activity: 1498
Merit: 506



View Profile
April 02, 2015, 07:10:13 PM
Last edit: October 11, 2016, 06:23:36 PM by VanityWallets2015
 #512

This post was inappropriate and posted during a time of personal and mental health issues, sorry.

         ▄▄▄███████▄▄▄
     ▄▀█▀█ █████████████▄▄
   ▄██ █ █▄████████████████▄
  ██ █ ██▀█ █████████████████
 █▀█▄█▄▀█▄██▄█████████████████
██ █ ██ ██ ██▄▀████████████████
███▀█▀██ ███▀███▀██████████████
███▄██ ██▄▀██▄███▄█████████████
 ███▄▀██▀██▄▀██▄▀██▄▀▀████████
  █████▀█▄█▀█▄▀▀██▄▀▀██▄▄▀█▀█
   ▀████▄███▄█▀█▄▄▀▀▀█▄▄█▀█▀
     ▀▀████▄▀██▄▄█▀▀█▄▄▄▀▀
         ▀▀▀██▄▄███▀▀▀
.
......1xBit.com..BENEFIT ..SEASON........
       ▄▄███████████▄▄
    ▄███████████████████▄
  ▄██████████████████████▄
 █████████████████████████
██████████████████████████▌
████████████████████████████▄▄
███████████████████████████████
        █    █▄   █
        ▀▀▄    ▀▀▀█▀▀▀█▀▀▀▀▀▀▀█
           ▀▀▄    ▀▀▄▄█      ▄▀
              ▀▀▄     █▀▀▄▄  █
                 ▀▀▄  █   ▄█▀
                    ▀▀█▄▀▀
.
.
..PLAY NOW..
presstab
Legendary
*
Offline Offline

Activity: 1330
Merit: 1000


Blockchain Developer


View Profile
April 03, 2015, 05:29:13 AM
 #513

My friend Billotronic asked me to look at this coin for him to see whats up with it.

The staking code grabs the stake reward, and if the result is zero it returns false and no stake is found:
Code:
int64_t nReward = GetProofOfStakeReward(nCoinAge, nFees);
        if (nReward <= 0)
            return false;

I was able to verify that this is what was causing an otherwise good stake to fail.

The proof of stake reward code is very ugly and it is what is causing the chain to fail without transactions. I will show you a real example from the blockchain and the how the reward changes throughout this code. See my comments in red. This is a stake that happened with coin age = 1034
Code:
int64_t GetProofOfStakeReward(int64_t nCoinAge, int64_t nFees)
{
    int64_t nSubsidy = nCoinAge * COIN_YEAR_REWARD * 25 / (365 * 25 + 8); //2.5% per year interest compounded everytime we stake
    At this point nSubsidy = 8491185 (analtoshis)

Code:
    //first divide what we get by 100000000 so we don't have to write COIN all the time after it.
    //we multiply it by 100000000 later.
    nSubsidy /= 100000000;
Now nSubsidy is 0 because we can't make an integer smaller than 1.

Code:
    // 3 coins extra stake reward to give staking incentive 
    nSubsidy += 3;
now nSubsidy is 3
Code:
        //need more coins in the input to get the bigger rewards 
        if (nSubsidy < 10.010) nSubsidy = 0.010;
now nSubsidy is 0 again

Code:
       nSubsidy *= COIN;

       return nSubsidy + nFees;
It remains 0 until the fees are added to the subsidy at the very end. So if no one is paying transaction fees, then no stakes will happen.
   
This requires a hard fork to fix.

Projects I Contribute To: libzerocoin | Veil | PIVX | HyperStake | Crown | SaluS
VanityWallets2015
Hero Member
*****
Offline Offline

Activity: 1498
Merit: 506



View Profile
April 03, 2015, 10:31:58 AM
 #514

PressTab, thank you, Billotronic, thanks again. PM sent.
Looks fairly straight forward to modify, but imagine there is a better POS solution.
I recommend a 2.25% POS/annum then a 0.01 POS post 300K blocks to keep the chain moving.
Bounty could be made available, or payment in leui of upgrade at some point when the coin becomes majorly profitable.
Thoughts anyone?

         ▄▄▄███████▄▄▄
     ▄▀█▀█ █████████████▄▄
   ▄██ █ █▄████████████████▄
  ██ █ ██▀█ █████████████████
 █▀█▄█▄▀█▄██▄█████████████████
██ █ ██ ██ ██▄▀████████████████
███▀█▀██ ███▀███▀██████████████
███▄██ ██▄▀██▄███▄█████████████
 ███▄▀██▀██▄▀██▄▀██▄▀▀████████
  █████▀█▄█▀█▄▀▀██▄▀▀██▄▄▀█▀█
   ▀████▄███▄█▀█▄▄▀▀▀█▄▄█▀█▀
     ▀▀████▄▀██▄▄█▀▀█▄▄▄▀▀
         ▀▀▀██▄▄███▀▀▀
.
......1xBit.com..BENEFIT ..SEASON........
       ▄▄███████████▄▄
    ▄███████████████████▄
  ▄██████████████████████▄
 █████████████████████████
██████████████████████████▌
████████████████████████████▄▄
███████████████████████████████
        █    █▄   █
        ▀▀▄    ▀▀▀█▀▀▀█▀▀▀▀▀▀▀█
           ▀▀▄    ▀▀▄▄█      ▄▀
              ▀▀▄     █▀▀▄▄  █
                 ▀▀▄  █   ▄█▀
                    ▀▀█▄▀▀
.
.
..PLAY NOW..
bombardo
Newbie
*
Offline Offline

Activity: 49
Merit: 0


View Profile
April 03, 2015, 10:59:07 AM
 #515

PressTab, thank you, Billotronic, thanks again. PM sent.
Looks fairly straight forward to modify, but imagine there is a better POS solution.
I recommend a 2.25% POS/annum then a 0.01 POS post 300K blocks to keep the chain moving.
Bounty could be made available, or payment in leui of upgrade at some point when the coin becomes majorly profitable.
Thoughts anyone?

Yes i agree with the 2.25% after 300k.

Lets make the wallet upgrade a priority.
billotronic
Legendary
*
Offline Offline

Activity: 1610
Merit: 1000


Crackpot Idealist


View Profile
April 03, 2015, 11:47:39 AM
 #516

My friend Billotronic asked me to look at this coin for him to see whats up with it.

The staking code grabs the stake reward, and if the result is zero it returns false and no stake is found:
Code:
int64_t nReward = GetProofOfStakeReward(nCoinAge, nFees);
        if (nReward <= 0)
            return false;

I was able to verify that this is what was causing an otherwise good stake to fail.

The proof of stake reward code is very ugly and it is what is causing the chain to fail without transactions. I will show you a real example from the blockchain and the how the reward changes throughout this code. See my comments in red. This is a stake that happened with coin age = 1034
Code:
int64_t GetProofOfStakeReward(int64_t nCoinAge, int64_t nFees)
{
    int64_t nSubsidy = nCoinAge * COIN_YEAR_REWARD * 25 / (365 * 25 + 8); //2.5% per year interest compounded everytime we stake
    At this point nSubsidy = 8491185 (analtoshis)

Code:
    //first divide what we get by 100000000 so we don't have to write COIN all the time after it.
    //we multiply it by 100000000 later.
    nSubsidy /= 100000000;
Now nSubsidy is 0 because we can't make an integer smaller than 1.

Code:
    // 3 coins extra stake reward to give staking incentive 
    nSubsidy += 3;
now nSubsidy is 3
Code:
        //need more coins in the input to get the bigger rewards 
        if (nSubsidy < 10.010) nSubsidy = 0.010;
now nSubsidy is 0 again

Code:
       nSubsidy *= COIN;

       return nSubsidy + nFees;
It remains 0 until the fees are added to the subsidy at the very end. So if no one is paying transaction fees, then no stakes will happen.
   
This requires a hard fork to fix.


ah press, you are my hero!

This post sums up why all this bullshit is a scam
Read It. Hate It. Change the facts that it represents.
https://bitcointalk.org/index.php?topic=1606638.msg16139644#msg16139644
notsofast
Legendary
*
Offline Offline

Activity: 1517
Merit: 1042


@notsofast


View Profile WWW
April 03, 2015, 12:00:38 PM
 #517

Thanks for delving into the code to find the problem, and again in advance for working to fix it!

twitter.com/notsofast
VanityWallets2015
Hero Member
*****
Offline Offline

Activity: 1498
Merit: 506



View Profile
April 03, 2015, 12:32:06 PM
Last edit: October 11, 2016, 06:22:46 PM by VanityWallets2015
 #518

This post was inappropriate and posted during a time of personal and mental health issues, sorry.



         ▄▄▄███████▄▄▄
     ▄▀█▀█ █████████████▄▄
   ▄██ █ █▄████████████████▄
  ██ █ ██▀█ █████████████████
 █▀█▄█▄▀█▄██▄█████████████████
██ █ ██ ██ ██▄▀████████████████
███▀█▀██ ███▀███▀██████████████
███▄██ ██▄▀██▄███▄█████████████
 ███▄▀██▀██▄▀██▄▀██▄▀▀████████
  █████▀█▄█▀█▄▀▀██▄▀▀██▄▄▀█▀█
   ▀████▄███▄█▀█▄▄▀▀▀█▄▄█▀█▀
     ▀▀████▄▀██▄▄█▀▀█▄▄▄▀▀
         ▀▀▀██▄▄███▀▀▀
.
......1xBit.com..BENEFIT ..SEASON........
       ▄▄███████████▄▄
    ▄███████████████████▄
  ▄██████████████████████▄
 █████████████████████████
██████████████████████████▌
████████████████████████████▄▄
███████████████████████████████
        █    █▄   █
        ▀▀▄    ▀▀▀█▀▀▀█▀▀▀▀▀▀▀█
           ▀▀▄    ▀▀▄▄█      ▄▀
              ▀▀▄     █▀▀▄▄  █
                 ▀▀▄  █   ▄█▀
                    ▀▀█▄▀▀
.
.
..PLAY NOW..
VanityWallets2015
Hero Member
*****
Offline Offline

Activity: 1498
Merit: 506



View Profile
April 03, 2015, 06:15:34 PM
Last edit: October 11, 2016, 06:21:32 PM by VanityWallets2015
 #519

This post was inappropriate and posted during a time of personal and mental health issues, sorry.

         ▄▄▄███████▄▄▄
     ▄▀█▀█ █████████████▄▄
   ▄██ █ █▄████████████████▄
  ██ █ ██▀█ █████████████████
 █▀█▄█▄▀█▄██▄█████████████████
██ █ ██ ██ ██▄▀████████████████
███▀█▀██ ███▀███▀██████████████
███▄██ ██▄▀██▄███▄█████████████
 ███▄▀██▀██▄▀██▄▀██▄▀▀████████
  █████▀█▄█▀█▄▀▀██▄▀▀██▄▄▀█▀█
   ▀████▄███▄█▀█▄▄▀▀▀█▄▄█▀█▀
     ▀▀████▄▀██▄▄█▀▀█▄▄▄▀▀
         ▀▀▀██▄▄███▀▀▀
.
......1xBit.com..BENEFIT ..SEASON........
       ▄▄███████████▄▄
    ▄███████████████████▄
  ▄██████████████████████▄
 █████████████████████████
██████████████████████████▌
████████████████████████████▄▄
███████████████████████████████
        █    █▄   █
        ▀▀▄    ▀▀▀█▀▀▀█▀▀▀▀▀▀▀█
           ▀▀▄    ▀▀▄▄█      ▄▀
              ▀▀▄     █▀▀▄▄  █
                 ▀▀▄  █   ▄█▀
                    ▀▀█▄▀▀
.
.
..PLAY NOW..
AnaLCoin (OP)
Newbie
*
Offline Offline

Activity: 22
Merit: 1


View Profile
April 03, 2015, 06:27:08 PM
 #520

My friend Billotronic asked me to look at this coin for him to see whats up with it.

The staking code grabs the stake reward, and if the result is zero it returns false and no stake is found:
Code:
int64_t nReward = GetProofOfStakeReward(nCoinAge, nFees);
        if (nReward <= 0)
            return false;

I was able to verify that this is what was causing an otherwise good stake to fail.

The proof of stake reward code is very ugly and it is what is causing the chain to fail without transactions. I will show you a real example from the blockchain and the how the reward changes throughout this code. See my comments in red. This is a stake that happened with coin age = 1034
Code:
int64_t GetProofOfStakeReward(int64_t nCoinAge, int64_t nFees)
{
    int64_t nSubsidy = nCoinAge * COIN_YEAR_REWARD * 25 / (365 * 25 + 8); //2.5% per year interest compounded everytime we stake
    At this point nSubsidy = 8491185 (analtoshis)

Code:
    //first divide what we get by 100000000 so we don't have to write COIN all the time after it.
    //we multiply it by 100000000 later.
    nSubsidy /= 100000000;
Now nSubsidy is 0 because we can't make an integer smaller than 1.

Code:
    // 3 coins extra stake reward to give staking incentive 
    nSubsidy += 3;
now nSubsidy is 3
Code:
        //need more coins in the input to get the bigger rewards 
        if (nSubsidy < 10.010) nSubsidy = 0.010;
now nSubsidy is 0 again

Code:
       nSubsidy *= COIN;

       return nSubsidy + nFees;
It remains 0 until the fees are added to the subsidy at the very end. So if no one is paying transaction fees, then no stakes will happen.
   
This requires a hard fork to fix.

Thanks for digging into the code, can you just create a pull request so we can merge that into the code and update the daemon/wallets ?
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 [26] 27 28 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!