Commit Graph

617 Commits

Author SHA1 Message Date
Duke Leto
b4de87db04 Fix off-by-one found by our Legendary Warrior @denioD 2020-09-20 12:34:11 -04:00
Duke Leto
9e288d185b Define the halving interval, initial transition period and fix format string bug 2020-09-19 12:17:26 -04:00
Duke Leto
65da80de58 Implement entire Hush block subsidy schedule
We now have our halving schedule implemented until the BR goes to zero.
The data was calculated via two new scripts which are in ./contrib :

$ ./contrib/hush_halvings
1,12500000000,340000
2,312500000,2020000
3,156250000,3700000
4,78125000,5380000
5,39062500,7060000
6,19531250,8740000
7,9765625,10420000
8,4882812,12100000
9,2441406,13780000
10,1220703,15460000
11,610351,17140000
12,305175,18820000
13,152587,20500000
14,76293,22180000
15,38146,23860000
16,19073,25540000
17,9536,27220000
18,4768,28900000
19,2384,30580000
20,1192,32260000
21,596,33940000
22,298,35620000
23,149,37300000
24,74,38980000
25,37,40660000
26,18,42340000
27,9,44020000
28,4,45700000
29,2,47380000
30,1,49060000
31,0,50740000
32,0,52420000
33,0,54100000

$ ./contrib/hush_block_subsidy_per_halving
0,1250000000,1125000000,125000000
1,625000000,562500000,62500000
2,312500000,281250000,31250000
3,156250000,140625000,15625000
4,78125000,70312500,7812500
5,39062500,35156250,3906250
6,19531250,17578125,1953125
7,9765625,8789062,976562
8,4882812,4394531,488281
9,2441406,2197265,244140
10,1220703,1098632,122070
11,610351,549316,61035
12,305175,274658,30517
13,152587,137329,15258
14,76293,68664,7629
15,38146,34332,3814
16,19073,17166,1907
17,9536,8583,953
18,4768,4291,476
19,2384,2145,238
20,1192,1072,119
21,596,536,59
22,298,268,29
23,149,134,14
24,74,67,7
25,37,33,3
26,18,16,1
27,9,8,0
28,4,4,0
29,2,2,0
30,1,1,0
31,0,0,0

These show that the block subsidy for miners goes to 0 at the 31st halving
and that the Founders Reward AKA Dev Tax goes to 0 at the 27th halving. There
is also some current KMD internals code that we inherited that prevents
the FR from being less than 10000, so that code would currently set our FR
to 0 at the 14th halving and lead less HUSH being mined than the planned 21M and
even a bit less than the amount under 21M that normally happens, such as in BTC.
We have some time to deal with the bug, since halving 14 is in about 52 years.
2020-09-19 11:03:35 -04:00
Duke Leto
599c842096 WIP full supply curve 2020-09-18 17:50:04 -04:00
Duke Leto
396488306b Optional logspam is best logspam 2020-09-15 13:09:36 -04:00
Duke Leto
c422ec37b7 Initialize numhalvings and do not print for now, since we dont calculate it here 2020-09-15 10:15:03 -04:00
Duke Leto
5d08cd7b57 Refactor Hush supply curve into a dedicated function and increase logspam 2020-09-11 07:23:44 -04:00
Jonathan "Duke" Leto
844626f457 Block 128 has a block reward of 11.25 HUSH 2020-09-08 15:06:06 -07:00
Jonathan "Duke" Leto
dd13bfb394 Yep 2020-09-08 14:38:58 -07:00
Jonathan "Duke" Leto
f4294a25cf Be more explicit 2020-09-08 14:33:52 -07:00
Duke Leto
b432e27f1b Refactor hush block subsidy 2020-09-08 16:10:32 -04:00
Duke Leto
3744f429f2 Re-enable 3rd block subsidy era 2020-09-08 15:52:09 -04:00
Duke Leto
fbc34ef071 Implement custom Hush block subsidy code since changing our blocktime and using many eras breaks assumptions of existing code 2020-09-08 15:49:10 -04:00
Duke Leto
1751f986f1 Logspam for last and max eras 2020-09-08 15:16:00 -04:00
Duke Leto
5871b3019a Mo debug regarding current era and block subsidy 2020-09-08 14:57:38 -04:00
Duke Leto
807a37e740 Behold vast logspam, refactoring and dead code removal 2020-09-08 12:47:17 -04:00
Duke Leto
67ed136e25 Only give 3 values for now to match how many values come in via CLI 2020-09-08 11:45:19 -04:00
Duke Leto
31940f2b3a Thanks to @DenioD for reminding me we must modify -ac_end internals variable as well 2020-09-08 09:54:13 -04:00
Duke Leto
b572ef0228 Calculate this value at run-time because it's not set yet when this header file is parsed 2020-09-07 18:40:51 -04:00
Duke Leto
727abe0ef2 Be more precise 2020-09-07 12:36:26 -04:00
Duke Leto
d420e14472 Explicitly set the Hush block reward and halving intervals for the next two halvings (8 years) 2020-09-07 12:35:15 -04:00
Duke Leto
0982e98ee2 Update some copyrights 2020-01-02 13:10:42 -05:00
Duke Leto
148e86a33b Remove unneeded RPCs 2019-12-22 05:03:11 -05:00
Duke Leto
a440f92320 Enable the creation of shielded-only Hush smart chains via -ac_private=1 2019-12-20 15:13:23 -05:00
Duke Leto
bfc635106a Compile fixes 2019-12-11 22:39:56 -05:00
Duke Leto
9607c4c0ba This option is not supported 2019-12-10 19:12:51 -05:00
Duke Leto
0eaee9dc83 Good riddance 2019-11-04 10:53:36 -05:00
Duke Leto
f39cd2a473 Delete Verus junk, which breaks ARMv8/aarch64 builds 2019-11-04 08:17:27 -05:00
jl777
20f9a16c80 -ac_adaptivepow 2019-07-29 07:08:10 -11:00
jl777
74683a7c40 Syntax 2019-07-24 04:26:23 -11:00
jl777
13b1075e3a Merge branch 'dev' into nSPV 2019-07-24 02:04:41 -11:00
jl777
9907aaebdd Prevent init spam 2019-07-18 06:57:54 -11:00
jl777
3207059e3d Clear ccEnablesHeight 2019-07-18 05:29:27 -11:00
jl777
6a98239840 Syntax 2019-07-18 05:28:47 -11:00
jl777
efb2b798ad S 2019-07-18 05:24:49 -11:00
jl777
49b564f18f Autoset cc for ccEnableHeights[0] !=0 2019-07-18 05:11:06 -11:00
jl777
bf40254a7e Fix spurious prints of deactivate 2019-07-18 03:04:20 -11:00
jl777
bb2a16729c Revert to coquicash magic, fix disable bits setting 2019-07-13 03:29:54 -11:00
jl777
ff034b0c12 <nonz vs <256 2019-07-13 03:27:02 -11:00
jl777
264d494d83 Test fix coquimagic 2019-07-13 03:17:13 -11:00
jl777
3bd2a963f8 +print 2019-07-13 03:11:12 -11:00
jl777
5af5292f52 sizeof(ASSETCHAINS_PEGSCCPARAMS)/sizeof(*ASSETCHAINS_PEGSCCPARAMS) 2019-07-12 16:50:50 -11:00
jl777
3d22bdf181 Merge branch 'dev' into FSM
# Conflicts:
#	src/komodo_globals.h
2019-07-12 16:40:49 -11:00
jl777
152c86ce84 Fix MAXERAS crash (split array overflow) 2019-07-12 16:39:33 -11:00
Alrighttt
5b7afedaec fix ac_cbmaturity=100 case 2019-07-12 03:52:05 +02:00
Alrighttt
a273e8fded remove extra whitespace 2019-07-12 03:52:05 +02:00
Alrighttt
c7ecffc934 syntax, remove misplaced \ 2019-07-12 03:52:05 +02:00
Alrighttt
51c4411446 add ac_cbmaturity 2019-07-12 03:52:05 +02:00
Alrighttt
bb6d8b7b99 fix ac_cbmaturity magic without other params 2019-07-12 03:52:05 +02:00
jl777
52bec46cdb Merge pull request #1598 from Alrighttt/jl777
joker's payment fix and safer magic for ac_cbmaturity
2019-07-09 19:52:20 -11:00