Commit Graph

1048 Commits

Author SHA1 Message Date
Duke Leto
7aacd3dfce Merge branch 'syncbug' into dev
Conflicts:
	src/metrics.cpp
2020-12-11 00:35:14 -05:00
Duke Leto
5b07e01437 Various things 2020-12-11 00:33:56 -05:00
Duke Leto
b58c15b9fb update copyrights 2020-12-10 07:45:36 -05:00
Duke Leto
c8513c2281 more header file changes 2020-12-10 06:58:37 -05:00
Duke Leto
30220ac855 less logspam plzzzz 2020-12-09 21:16:54 -05:00
Duke Leto
6a30b40415 Once men turned their thinking over to machines in the hope that this would set them free.
But that only permitted other men with machines to enslave them.

      --  Reverend Mother Gaius Helen Mohiam
2020-12-09 07:23:08 -05:00
Duke Leto
130325b201 Hush those mindiff bits 2020-12-08 07:06:13 -05:00
Duke Leto
9f319c1cc9 the commission is the mission 2020-12-06 22:45:54 -05:00
Duke Leto
db702d6c55 The State Of Hush 2020-12-06 20:35:36 -05:00
Duke Leto
b7398f812c Winners write the history books 2020-12-06 18:53:32 -05:00
Duke Leto
54d3293db5 I Got The (Pub)Keys - https://www.youtube.com/watch?v=WjBQ7v6i4O4 2020-12-06 17:04:20 -05:00
Duke Leto
aae0336733 Playin' dat Long Game with dat Longest Chain 2020-12-06 15:47:04 -05:00
Duke Leto
c737c0dfaf We call them Hush Smart Chains around here 2020-11-15 11:54:06 -05:00
Duke Leto
ebf0df633b Define a new season of anon Hush DPoW notaries 2020-11-15 11:13:15 -05:00
Duke Leto
a23b0e8388 Remove the unsupported concept of staked notaries 2020-11-15 10:28:53 -05:00
Duke Leto
a690e1cd96 Speling iz hard 2020-11-14 18:19:11 -05:00
Duke Leto
a535b349b0 hush.is is replacing myhush.org 2020-11-14 17:52:04 -05:00
Duke Leto
edb0f4be90 less logspam 2020-09-21 07:27:53 -04:00
Duke Leto
e880a45995 Fix block 128 bug discoverd by @denioD 2020-09-20 13:58:16 -04:00
Duke Leto
287310e81c Better logspam 2020-09-20 12:45:05 -04:00
Duke Leto
b4de87db04 Fix off-by-one found by our Legendary Warrior @denioD 2020-09-20 12:34:11 -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
2ea974a402 Update comments 2020-09-18 17:15:51 -04:00
Duke Leto
d65fbabc77 Correctly specify the exact block height when Hush block reward goes to zero 2020-09-18 16:34:36 -04:00
Duke Leto
62fc6af52c cleanup 2020-09-18 11:47:06 -04:00
Duke Leto
c5189df034 A few useful comments in hush_commission() 2020-09-15 13:18:01 -04:00
Duke Leto
909285b981 Where Would I Be Without @DenioD 2020-09-15 13:15:11 -04:00
Duke Leto
396488306b Optional logspam is best logspam 2020-09-15 13:09:36 -04:00
Duke Leto
b83f38c615 komodo_commission logspam 2020-09-14 15:27:26 -04:00
Duke Leto
5fc4b4c770 Use the correct interval at z2zheight 2020-09-14 15:14:47 -04:00
Duke Leto
5d08cd7b57 Refactor Hush supply curve into a dedicated function and increase logspam 2020-09-11 07:23:44 -04:00
Duke Leto
807a37e740 Behold vast logspam, refactoring and dead code removal 2020-09-08 12:47:17 -04:00
Duke Leto
fe4f0f7e9e Logspam 2020-09-08 12:01:07 -04:00
Jonathan "Duke" Leto
d53e39aa4d Good ol' off-by-one strikes again 2020-09-08 05:47:53 -07:00
Duke Leto
9ae40031d6 Add -ac_halving1 + -ac_halving2 CLI args for devs
These new CLI args control the interval of the 1st halving (between
1st and 2nd halving blocks) and the 2nd halving (between 2nd and 3rd
halving blocks). -ac_halving2 is used for all subsequent halvings.

This allows devs to simulate things via the CLI without changing code,
to verify things work as expected at halvings in the far future.
2020-09-07 12:58:50 -04:00
Duke Leto
043d58709d Fix off-by-one-decimal-place error discovered by @DenioD 2020-09-07 08:36:48 -04:00
Jonathan "Duke" Leto
2bb5454020 Explicitly set BR in each halving interval
This extremely important consensus-changing code takes into account
that with our new 75s block time, which gives us twice as many blocks
per day, we must divide our block reward by two in the next
halving interval, becoming 3.125 HUSH per block insted of 6.25 HUSH
under the old rules of 150s blocks.

Subsequent halving intervals do not change block times, and so they
follow the normal pattern of halving.

This commit has a number of rough edges:
        * Final BR height is still incorrect
        * Due to above, exact number of halvings is unknown under new
          75s blocktime
2020-09-05 05:38:09 -07:00
Jonathan "Duke" Leto
0c0b2ec1cc cleanup 2020-09-05 05:36:28 -07:00
Duke Leto
40d6716993 Update Hush emission schedule code based on going to 75s blocks @ Block 340K 2020-08-01 09:12:14 -04:00
Duke Leto
d4883bce7c More timedate changes from KMD 0.6 2020-07-09 10:31:12 -04:00
Duke Leto
0c118eb129 delete 2020-06-07 00:04:15 -04:00
Duke Leto
848b78f848 Return early for unknown txs and log unconfirmed 2020-04-06 23:01:14 -04:00
Duke Leto
dc7525f12e Untested sapling consolidation plus sietch outputs to reduce metadata leakage 2020-03-04 09:17:05 -05:00
Duke Leto
0982e98ee2 Update some copyrights 2020-01-02 13:10:42 -05:00
Duke Leto
e40a65c2a8 Quiet this stdout spam by default but enable it with -debug 2019-12-26 20:58:26 -05:00
Duke Leto
307cf174d6 Typo 2019-12-25 11:16:00 -05:00
Duke Leto
148e86a33b Remove unneeded RPCs 2019-12-22 05:03:11 -05:00
Duke Leto
f07dcf12ab Fix some compile issues and set a timestamp fork value for completeness 2019-12-22 03:13:14 -05:00
Duke Leto
02fefe0734 Add -hardfork-height CLI option to simulate different hardfork heights 2019-12-21 10:28:48 -05:00