Commit Graph

266 Commits

Author SHA1 Message Date
jl777
8eaa7b03cc Test 2018-02-13 22:57:25 +02:00
jl777
85ef725a7d Test 2018-02-13 22:52:45 +02:00
jl777
e34a9d43fe Fix 2018-02-13 22:42:34 +02:00
jl777
e169b65ff0 New features in testing
New komodod -ac parameters for assetchains. If -ac_reward=<satoshis> is
non-zero, the chain will mine normally and start with -ac_reward for
the block reward.

if -ac_end=<endheight> is set, then -ac_reward will be 0 after
endheight is reached

if -ac_halving=<halvingperiod> is set, then every <halvingperiod>
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=<numerator> 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<numhalvings; i++)
		reward = (reward * -ac_decay) / 100000000;

if -ac_perc=<satoshis> is nonzero and less than equal 100000000 and
-ac_pubkey=<secp_pubkey33> 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
2018-02-13 22:37:47 +02:00
jl777
ae0bb3d3c3 Test 2018-02-13 22:36:44 +02:00
jl777
8683bd8d11 Debugging 2018-02-13 21:29:42 +02:00
jl777
5416af1ddc KOMODO_DEFS_H 2017-11-10 19:15:34 +02:00
jl777
7c130297c2 KOMODO_ASSETCHAIN_MAXLEN -> 65 2017-11-10 19:07:36 +02:00
jl777
05c1e522c0 Test 2017-10-23 13:54:39 +03:00
jl777
34c68daaa9 Test 2017-10-23 13:49:19 +03:00
jl777
21abd4df81 Test 2017-10-23 13:45:05 +03:00
jl777
05e307ec9e Test 2017-10-23 13:40:00 +03:00
jl777
36c733e967 Test 2017-10-23 13:27:15 +03:00
jl777
0a3fa75723 Test 2017-10-23 13:21:14 +03:00
jl777
a0b9382cb9 Test 2017-10-23 12:10:22 +03:00
jl777
00603efa67 Test 2017-10-09 18:10:08 +03:00
jl777
19d98d6fbf Test 2017-10-09 18:05:13 +03:00
jl777
5201bb5172 Test 2017-10-09 18:01:45 +03:00
jl777
2934460ce3 Test 2017-10-09 17:41:16 +03:00
ca333
34017212c7 333 2017-10-09 16:18:22 +02:00
ca333
9d36579649 uni3 2017-10-09 11:45:49 +02:00
jl777
3ddca65d52 Test 2017-10-01 19:56:43 +03:00
jl777
20d00c7773 Test 2017-10-01 19:48:08 +03:00
jl777
578a9891dc Test 2017-10-01 19:42:04 +03:00
jl777
450f60749f Fix rpcport 2017-09-25 11:44:10 +02:00
jl777
e0440cc39c Test 2017-04-27 09:27:22 +03:00
jl777
4e624c0452 Test 2017-04-26 19:29:36 +03:00
jl777
57dd4adae0 Test 2017-03-26 17:50:05 +03:00
jl777
198571952b Test 2017-03-26 17:42:34 +03:00
jl777
70d8393432 Test 2017-03-26 17:36:57 +03:00
jl777
66c5b6ae4d Test 2017-03-26 17:31:57 +03:00
jl777
715bda82cf Test 2017-03-26 17:18:20 +03:00
jl777
0cb025c181 Test 2017-03-26 14:26:03 +03:00
jl777
094b401e3d Test 2017-03-26 14:16:03 +03:00
jl777
43cc3df657 Test 2017-03-26 13:53:22 +03:00
jl777
978ca79512 Test 2017-03-26 13:46:07 +03:00
jl777
033f496dbe Test 2017-03-26 13:41:31 +03:00
jl777
1e2a41f6c1 Test 2017-03-26 13:35:37 +03:00
jl777
9e1bde7e24 Test 2017-03-26 13:30:23 +03:00
jl777
7ed958da81 Test 2017-03-26 13:20:00 +03:00
jl777
5de55e14aa Test 2017-03-26 13:10:23 +03:00
jl777
b000fa04a6 Test 2017-03-26 12:53:24 +03:00
jl777
66294e69b2 Remove prints 2017-03-25 19:32:17 +02:00
jl777
39d28b0641 Expand time window 2017-03-25 13:25:37 +02:00
jl777
948ad8f3f8 Test 2017-03-25 01:38:29 +02:00
jl777
3d02f57b42 Test 2017-03-25 01:10:50 +02:00
jl777
9f12949400 Test 2017-03-25 00:06:04 +02:00
jl777
bbaa0f9df4 Test 2017-03-24 23:51:12 +02:00
jl777
3bc88f1451 Test 2017-03-24 23:46:52 +02:00
jl777
d01c0463e7 Test 2017-03-24 23:27:24 +02:00