From e169b65ff0ac7a435952d71552905920fc647667 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 13 Feb 2018 22:37:47 +0200 Subject: [PATCH] New features in testing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit New komodod -ac parameters for assetchains. If -ac_reward= is non-zero, the chain will mine normally and start with -ac_reward for the block reward. if -ac_end= is set, then -ac_reward will be 0 after endheight is reached if -ac_halving= is set, then every blocks the block reward is reduced according to one of three methods. 1440 (approx a day) is the most frequent halving period if -ac_decay is not set, then the normal bitcoin halving is done. if -ac_decay= is set to be exactly 100000000, then the -ac_reward is scaled linearly toward 0, with 0 at endheight. for all other values of numerator (less than 100000000) the reward is iteratively reduced by the number of "halving" periods, ie. numhalvings = (height / -ac_halving); for (i=0; i is nonzero and less than equal 100000000 and -ac_pubkey= is set to a 33byte hexstr (len 66 starting with 02 or 03) then there will be a second vout in the coinbase transaction that is exactly the commission rate indicated by -ac_perc, with 100000000 being the max of 100%. wallets will need to be customized to make sure to pay the -ac_perc of transaction size as txfee. chains with a percentage override can only be mined by the -ac_pubkey address bitcoin behavior would be -ac_reward=5000000000 -ac_halving=210000 KMD behavior would be -ac_reward = 300000000 -ac_end=7777777 a more smoothly reducing reward that halves every 210000 blocks would be:  -ac_reward=5000000000 -ac_halving=10000 -ac_decay=96777000 This release also supports a second slate of hardcoded notaries --- src/komodo_bitcoind.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/komodo_bitcoind.h b/src/komodo_bitcoind.h index 2a226a714..e904a5b1b 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -662,7 +662,7 @@ uint32_t komodo_chainactive_timestamp() { if ( chainActive.Tip() != 0 ) return((uint32_t)chainActive.Tip()->GetBlockTime()); - else return(0); + else return(0); } CBlockIndex *komodo_chainactive(int32_t height)