Commit Graph

14656 Commits

Author SHA1 Message Date
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
698c5e7e94 Test 2018-02-13 22:34:29 +02:00
jl777
ac756fd8bb Test 2018-02-13 22:32:14 +02:00
jl777
da7b748e6b Test 2018-02-13 22:30:59 +02:00
jl777
6b1d77f585 Test 2018-02-13 22:27:18 +02:00
jl777
d209491abf Test 2018-02-13 22:25:30 +02:00
jl777
3ca78e0142 Test 2018-02-13 22:06:20 +02:00
jl777
94a465a6e9 Test 2018-02-13 21:59:39 +02:00
jl777
6e94384f91 Test 2018-02-13 21:37:32 +02:00
jl777
53a94b280d Test 2018-02-13 21:34:09 +02:00
jl777
9757c8f97e Test 2018-02-13 21:33:49 +02:00
jl777
8683bd8d11 Debugging 2018-02-13 21:29:42 +02:00
jl777
8f8b5a2ac6 -SHARK 2018-02-10 21:42:04 +02:00
jl777
de615b43f7 Disable price feed 2018-02-10 15:12:32 +02:00
jl777
8b6a0cb8be Stupid accounts 2018-02-02 20:59:09 +02:00
jl777
2d8bd77a05 Test 2018-02-02 13:44:57 +02:00
jl777
9d83c1ad0f Test 2018-02-02 13:44:30 +02:00
jl777
d1f29a9d00 Test 2018-02-02 13:36:12 +02:00
jl777
170d7b7ac9 Test 2018-02-02 13:30:47 +02:00
jl777
c83c59f97e Fix sendmany 2018-02-02 13:19:15 +02:00
jl777
b92d9db11b Fix typo 2018-02-02 12:53:09 +02:00
jl777
3e71f5857f Disable KV functions for KMD 2018-01-30 17:22:45 +04:00
jl777
6fdd9555a3 PIZZA and BEER, why not 2018-01-29 16:22:47 +04:00
jl777
0a8ac8b037 VOTE chain 2018-01-29 16:12:06 +04:00
jl777
ee8cdf46e4 Merge pull request #512 from DeckerSU/decker-dev
added checkpoints for KMD blockchain. need to be tested.
2018-01-29 11:59:25 +04:00
jl777
f6d8f2cce9 rpcworkqueue=64 2018-01-28 19:58:35 +04:00
jl777
17b77a13b5 Merge pull request #511 from ca333/dev
add native btch bins
2018-01-28 10:06:02 +04:00
ca333
0b7ef28990 add native btch bins 2018-01-28 03:02:05 +01:00
ca333
45bb9b9300 Merge pull request #67 from jl777/dev
dev update
2018-01-28 02:14:42 +01:00
jl777
1cb56d219f Merge pull request #510 from kolobus/dev
-pax
2018-01-27 18:34:06 +04:00
Mihail Fedorov
8a52db13e1 pax 2018-01-27 17:26:42 +03:00
DeckerSU
b3f7ce9b7a added checkpoints for KMD blockchain. need to be tested.
- added method SetCheckpointData for CChainParams.
- as we can't check asset it or not in CMainParams() constructor, because command line arguments don't initialized at that time, we will execute SetCheckpointData in chainparams_commandline later.

changes was tested in komodo-qt wallet, but additional tests wouldn't be superfluous.
2018-01-27 13:28:43 +03:00
jl777
5513bebbf2 Merge pull request #509 from kolobus/dev
So long and thanks for all the pax
2018-01-27 10:46:10 +04:00
Mihail Fedorov
580a1ae0cf VOTE chain 2018-01-27 05:14:24 +03:00
Mihail Fedorov
26e6a849ac So long and thanks for all the pax 2018-01-27 04:47:14 +03:00
Mihail Fedorov
b3b56273c6 So long and thanks for all the pax 2018-01-27 04:46:39 +03:00
jl777
f41277aa91 PIZZA and BEER 2018-01-25 16:54:43 +04:00
jl777
854c233d36 Merge pull request #507 from ca333/dev
333
2018-01-22 10:07:05 +03:00
ca333
da925f7863 333
removed unneeded dependencies
2018-01-22 06:02:44 +01:00
ca333
b78cf0c841 Merge pull request #66 from jl777/dev
dev update
2018-01-22 05:30:50 +01:00
jl777
df473cc277 Check for null index in FindFork 2018-01-07 18:06:14 +07:00
jl777
b91547118a -fiat -shark fiat-cli 2018-01-04 18:45:07 +07:00
jl777
5faab5a65a -SHARK 2018-01-04 18:35:35 +07:00
jl777
ee92f1369d -SHARK 2018-01-03 01:06:03 +07:00
jl777
1132e84500 Test 2018-01-02 14:24:59 +07:00
jl777
f1d6fb9b92 Test 2018-01-02 14:22:50 +07:00
jl777
dfd450dff9 signedmasks for asset chains 2018-01-02 13:23:58 +07:00
jl777
cb84dc08ee Fix 2018-01-01 15:38:26 +07:00