Pages:
Author

Topic: [ANNOUNCING]Sauron Rings (SAU) | Show your support for Sauron! | PoW | Rare! - page 2. (Read 2367 times)

hero member
Activity: 686
Merit: 504
always the student, never the master.

 oh ok, that makes perfect sense. i'm at a loss of how i would implement it in a coin with a minimum subsidy unless

Code:
static const int nLastRewardBlock= 5000000
static const int nMinReward= 1

//subsidyHalving Algo

nSubsidy>>(nHeight/1000000);

//stop subsidy from halving past a set number within nLastRewardBlock
if (nHeight < nLastRewardBlock && nSubsidy < nMinReward)
{
nSubsidy = nMinReward * COIN;
}

This should be sufficient:

Code:
static const int nLastRewardBlock= 5000000
static const int nMinReward= 1

//subsidyHalving Algo

nSubsidy>>(nHeight/1000000);

//stop subsidy from halving past a set number within nLastRewardBlock
if (nSubsidy < nMinReward)
{
nSubsidy = nMinReward * COIN;
}


no because if you don't acknowledge the last reward block then nMinReward will prevent it from dropping the subsidy to zero. thats why i included nLastRewardBlock in the scope

Not sure if you're trying to drop it to 0 or drop it to nMinReward. The above solution will halve until it gets to nMinReward and never get to zero.


I'm attempting to kill two birds with one stone. half the reward until it gets to 1, then when block 5million(the last reward block) subsidy returns to zero(thus creating the hardcap) with only tx fee's being the subsidy.
full member
Activity: 176
Merit: 100

 oh ok, that makes perfect sense. i'm at a loss of how i would implement it in a coin with a minimum subsidy unless

Code:
static const int nLastRewardBlock= 5000000
static const int nMinReward= 1

//subsidyHalving Algo

nSubsidy>>(nHeight/1000000);

//stop subsidy from halving past a set number within nLastRewardBlock
if (nHeight < nLastRewardBlock && nSubsidy < nMinReward)
{
nSubsidy = nMinReward * COIN;
}

This should be sufficient:

Code:
static const int nLastRewardBlock= 5000000
static const int nMinReward= 1

//subsidyHalving Algo

nSubsidy>>(nHeight/1000000);

//stop subsidy from halving past a set number within nLastRewardBlock
if (nSubsidy < nMinReward)
{
nSubsidy = nMinReward * COIN;
}


no because if you don't acknowledge the last reward block then nMinReward will prevent it from dropping the subsidy to zero. thats why i included nLastRewardBlock in the scope

Not sure if you're trying to drop it to 0 or drop it to nMinReward. The above solution will halve until it gets to nMinReward and never get to zero.
legendary
Activity: 2268
Merit: 1092
Has anyone managed to connect to any peers yet? I'm running the client and watching the debug log, it claims it's trying to connect, yet I can't see ANY outbound activity on the network interface.
hero member
Activity: 686
Merit: 504
always the student, never the master.

 oh ok, that makes perfect sense. i'm at a loss of how i would implement it in a coin with a minimum subsidy unless

Code:
static const int nLastRewardBlock= 5000000
static const int nMinReward= 1

//subsidyHalving Algo

nSubsidy>>(nHeight/1000000);

//stop subsidy from halving past a set number within nLastRewardBlock
if (nHeight < nLastRewardBlock && nSubsidy < nMinReward)
{
nSubsidy = nMinReward * COIN;
}

This should be sufficient:

Code:
static const int nLastRewardBlock= 5000000
static const int nMinReward= 1

//subsidyHalving Algo

nSubsidy>>(nHeight/1000000);

//stop subsidy from halving past a set number within nLastRewardBlock
if (nSubsidy < nMinReward)
{
nSubsidy = nMinReward * COIN;
}


no because if you don't acknowledge the last reward block then nMinReward will prevent it from dropping the subsidy to zero. thats why i included nLastRewardBlock in the scope
full member
Activity: 176
Merit: 100

 oh ok, that makes perfect sense. i'm at a loss of how i would implement it in a coin with a minimum subsidy unless

Code:
static const int nLastRewardBlock= 5000000
static const int nMinReward= 1

//subsidyHalving Algo

nSubsidy>>(nHeight/1000000);

//stop subsidy from halving less than nMinReward
if (nHeight < nLastRewardBlock && nSubsidy < nMinReward)
{
nSubsidy = nMinReward * COIN;
}

This should be sufficient:

Code:
static const int nMinReward= 1

//subsidyHalving Algo

nSubsidy>>(nHeight/1000000);

//stop subsidy from halving past a set number within nLastRewardBlock
if (nSubsidy < nMinReward)
{
nSubsidy = nMinReward * COIN;
}
hero member
Activity: 686
Merit: 504
always the student, never the master.
 oh ok, that makes perfect sense. i'm at a loss of how i would implement it in a coin with a minimum subsidy unless

Code:
static const int64 nLastRewardBlock= 5000000
static const int64 nMinReward= 1

//subsidyHalving Algo

nSubsidy>>(nHeight/1000000);

//stop subsidy from halving past a set number within nLastRewardBlock
if (nHeight < nLastRewardBlock && nSubsidy < nMinReward)
{
nSubsidy = nMinReward * COIN;
}
full member
Activity: 176
Merit: 100
Code:
int64 static GetBlockValue(int nHeight, int64 nFees)
{
    int64 nSubsidy = 0.001 * COIN;
    
    if(nHeight == 3)  
    {
        nSubsidy = 10 * COIN;
    }
    return nSubsidy + nFees;
}

Except for the pre-mine, coin production will be constant and infinite. Not capped as stated in the specs.



Wow!  If there are no coin caps then the premine is 0%...  Cheesy  Thanks for the info!
I remember putting in 20,000 in main.h though...

The MAX_MONEY constant in main.h doesn't limit coin production.


then how do you limit it?

r3wt:
Code:
   if(nHeight == $block you want to end at)  
    {
        nSubsidy = 0 * COIN;
    }

Like smeagol said, you have to change GetBlockValue to return 0 (+ Fees) at some stage, either by halving reward, or just abruptly making it 0, or whatever method you choose.


negative.
Code:
if(nHeight == $blocknumber) {nSubsidy = 0 * COIN;}
is a conditional statement for only one block. the block following it will have the same amount of coins as whatever your else statement is, such as

Code:
else {nSubsidy = 1 * COIN;}

Yes, that should be if (nHeight > block#)

legendary
Activity: 1008
Merit: 1005
r3wt, then this might work

Code:
   if(nHeight > $block you want to end at) 
    {
        nSubsidy = 0 * COIN;
    }
hero member
Activity: 686
Merit: 504
always the student, never the master.
Code:
int64 static GetBlockValue(int nHeight, int64 nFees)
{
    int64 nSubsidy = 0.001 * COIN;
    
    if(nHeight == 3)  
    {
        nSubsidy = 10 * COIN;
    }
    return nSubsidy + nFees;
}

Except for the pre-mine, coin production will be constant and infinite. Not capped as stated in the specs.



Wow!  If there are no coin caps then the premine is 0%...  Cheesy  Thanks for the info!
I remember putting in 20,000 in main.h though...

The MAX_MONEY constant in main.h doesn't limit coin production.


then how do you limit it?

r3wt:
Code:
   if(nHeight == $block you want to end at)  
    {
        nSubsidy = 0 * COIN;
    }

Like smeagol said, you have to change GetBlockValue to return 0 (+ Fees) at some stage, either by halving reward, or just abruptly making it 0, or whatever method you choose.


negative.
Code:
if(nHeight == $blocknumber) {nSubsidy = 0 * COIN;}
is a conditional statement for only one block. the block following it will have the same amount of coins as whatever your else statement is, such as

Code:
else {nSubsidy = 1 * COIN;}
legendary
Activity: 1008
Merit: 1005
legendary
Activity: 1008
Merit: 1005
Wow!  If there are no coin caps then the premine is 0%...  Cheesy  Thanks for the info!
I remember putting in 20,000 in main.h though...

I haven't had to do this in a long time.

Is there a port or something that I need to unlock?  It's the first time I'm using a VPN by the way.

Seems like a well thought out and thoroughly tested new coin launch. Undecided

(Another coin that left a compiled geocoind in the source zip...)

I wanted to honor "adam m!"

An inspiration to us all.

btw, addnode=79.196.195.23
legendary
Activity: 2268
Merit: 1092
Wow!  If there are no coin caps then the premine is 0%...  Cheesy  Thanks for the info!
I remember putting in 20,000 in main.h though...

I haven't had to do this in a long time.

Is there a port or something that I need to unlock?  It's the first time I'm using a VPN by the way.

Seems like a well thought out and thoroughly tested new coin launch. Undecided

(Another coin that left a compiled geocoind in the source zip...)
legendary
Activity: 1008
Merit: 1005
Yay! node!
try this:
addnode=5.63.146.148

Still 0 connections  Undecided

I haven't had to do this in a long time.

Is there a port or something that I need to unlock?  It's the first time I'm using a VPN by the way.
newbie
Activity: 14
Merit: 0
Yay! node!
try this:
addnode=5.63.146.148

Still 0 connections  Undecided
full member
Activity: 176
Merit: 100
Code:
int64 static GetBlockValue(int nHeight, int64 nFees)
{
    int64 nSubsidy = 0.001 * COIN;
    
    if(nHeight == 3)  
    {
        nSubsidy = 10 * COIN;
    }
    return nSubsidy + nFees;
}

Except for the pre-mine, coin production will be constant and infinite. Not capped as stated in the specs.



Wow!  If there are no coin caps then the premine is 0%...  Cheesy  Thanks for the info!
I remember putting in 20,000 in main.h though...

The MAX_MONEY constant in main.h doesn't limit coin production.


then how do you limit it?

r3wt:
Code:
   if(nHeight == $block you want to end at)  
    {
        nSubsidy = 0 * COIN;
    }

Like smeagol said, you have to change GetBlockValue to return 0 (+ Fees) at some stage, either by halving reward, or just abruptly making it 0, or whatever method you choose.
legendary
Activity: 1008
Merit: 1005
Yay! node!
try this:
addnode=5.63.146.148
legendary
Activity: 1008
Merit: 1005
Code:
int64 static GetBlockValue(int nHeight, int64 nFees)
{
    int64 nSubsidy = 0.001 * COIN;
    
    if(nHeight == 3)  
    {
        nSubsidy = 10 * COIN;
    }
    return nSubsidy + nFees;
}

Except for the pre-mine, coin production will be constant and infinite. Not capped as stated in the specs.



Wow!  If there are no coin caps then the premine is 0%...  Cheesy  Thanks for the info!
I remember putting in 20,000 in main.h though...

The MAX_MONEY constant in main.h doesn't limit coin production.


then how do you limit it?

r3wt:
Code:
   if(nHeight == $block you want to end at)  
    {
        nSubsidy = 0 * COIN;
    }
hero member
Activity: 686
Merit: 504
always the student, never the master.
Code:
int64 static GetBlockValue(int nHeight, int64 nFees)
{
    int64 nSubsidy = 0.001 * COIN;
    
    if(nHeight == 3)  
    {
        nSubsidy = 10 * COIN;
    }
    return nSubsidy + nFees;
}

Except for the pre-mine, coin production will be constant and infinite. Not capped as stated in the specs.



Wow!  If there are no coin caps then the premine is 0%...  Cheesy  Thanks for the info!
I remember putting in 20,000 in main.h though...

The MAX_MONEY constant in main.h doesn't limit coin production.


correct that it is used to limit wallets from containing more than a set amount, but i thought the general consensus this was also a hardcap of total supply. if what you say is true, then how do you limit it?
legendary
Activity: 1008
Merit: 1005
legendary
Activity: 1008
Merit: 1005
those are the exact nodes i put in my conf file, still cannot connect.

J

I'll put up nodes soon!  patience please.  Smiley
Pages:
Jump to: