Commit Graph

1023 Commits

Author SHA1 Message Date
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
Duke Leto
4c42d5f93f Try to set KMD Notary seasons correctly with our hardfork height 2019-12-21 00:02:16 -05:00
Duke Leto
2222de08e5 Make this error say where it is coming from 2019-12-17 11:23:57 -05:00
Duke Leto
f2ce6c15a7 Remove more dead code 2019-12-14 05:20:56 -05:00
Duke Leto
b2d577c31f Remove dead code 2019-12-14 05:07:34 -05:00
Duke Leto
e8509dd525 It is called hush_hardfork_active now 2019-12-13 11:08:10 -05:00
Duke Leto
b6fa28dfa2 Delete more dead code that causes compile issues 2019-12-11 15:51:40 -05:00
Duke Leto
1cb03d8e30 Compile fixes 2019-12-10 23:58:32 -05:00
Duke Leto
f0b6600526 Hush smart chains do not support PoS 2019-12-10 17:44:45 -05:00
Duke Leto
6227bfd94a new functions 2019-12-10 17:42:33 -05:00
Duke Leto
8e9573f87d komodo_bitocind.h changes 2019-12-10 11:39:49 -05:00
Duke Leto
10be224558 Pull in upstream npsv updates from jl777/komodo@1f874d46c5 2019-12-08 20:37:59 -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
23ca86df3a Zawys new algo
1) FTL 4 seconds
2) MTP from 11 -> 1
3) must calc MAX(diff[I]) for past 11 blocks
4) bnTarget *= mult*mult
5) bnTarget.nBits -> onchain
2019-08-01 09:14:07 -11:00
jl777
199d8db019 Fix zawy attack 2019-07-31 19:02:44 -11:00
jl777
8b5cbc45bf -print 2019-07-30 08:38:01 -11:00
jl777
753f2f1d62 +print 2019-07-30 07:30:41 -11:00
jl777
b8ae049689 -print 2019-07-30 07:09:36 -11:00
jl777
9ccc4fd560 Tip-off 2019-07-30 06:57:09 -11:00
jl777
1aab146063 Recall hashtarget 2019-07-30 06:55:35 -11:00
jl777
9496986ca9 Fix silly bug 2019-07-30 06:09:41 -11:00
jl777
7e9308be69 Fix of by one 2019-07-30 05:31:53 -11:00
jl777
20f1df3472 Fix 2019-07-30 04:59:35 -11:00
jl777
8fbb317419 Use tipdiff also 2019-07-30 04:50:27 -11:00
jl777
6fbae7109c Allow disabling adaptivepow 2019-07-30 04:09:37 -11:00