Commit Graph

298 Commits

Author SHA1 Message Date
jl777
fd5e54dc9f Fix bug 2019-08-02 04:15:35 -11:00
jl777
f0fcb174f2 +prints 2019-08-02 04:09:11 -11:00
jl777
c05c4da605 Simplify data 2019-08-02 02:39:41 -11:00
jl777
4e3e3a34e1 Speed up response to higher hash rate 2019-08-02 00:38:48 -11:00
jl777
527ee64eb3 Fix miner bug 2019-08-01 12:57:43 -11:00
jl777
e58b81a475 Fix miner 2019-08-01 12:06:04 -11:00
jl777
977c6aa1b3 Remove adjustment limits 2019-08-01 10:56:54 -11:00
jl777
58704437ce int32_t 2019-08-01 10:32:58 -11:00
jl777
cd6b8c738e +print 2019-08-01 10:30:26 -11:00
jl777
45fcb5bcde +print 2019-08-01 10:26:46 -11:00
jl777
28c8242521 Print 2019-08-01 10:24:04 -11:00
jl777
f5e59c37fe +print 2019-08-01 10:21:55 -11:00
jl777
61e4db4332 Fix null access 2019-08-01 10:01:55 -11:00
jl777
a8f5005a7f Fix crash 2019-08-01 09:54:24 -11: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
6fbae7109c Allow disabling adaptivepow 2019-07-30 04:09:37 -11:00
jl777
02e6851870 Update adaptivepow to handle variable block times 2019-07-29 21:25:49 -11:00
jl777
5d19239884 Set origtargert 2019-07-29 08:21:00 -11:00
jl777
35f7f057ca Tweak -ac_adaptivepow 2019-07-29 07:13:29 -11:00
jl777
20f9a16c80 -ac_adaptivepow 2019-07-29 07:08:10 -11:00
blackjok3r
18854e2af7 ac_nk params 2019-04-17 13:42:02 +08:00
blackjok3r
170ca55e46 New miner, some prints. YUse equihash difficulty algo for VerusHash and PoS64 2019-02-07 17:07:49 +08:00
blackjok3r
bf726a2c03 Merge branch 'new_staker' into mastertest 2019-01-23 17:46:36 +08:00
blackjok3r
e460f1aa57 print 2019-01-23 14:15:43 +08:00
blackjok3r
7167793dbf new version 2019-01-23 02:50:53 +08:00
blackjok3r
8324e606cd try to add PoS% to staking loop, to adjust staking difficulty 2019-01-22 14:39:29 +08:00
jl777
7cfb6293c6 komodo_defs a lot more 2019-01-21 00:31:14 -11:00
jl777
0ea9ae3c05 Update copyright to 2019 2018-12-31 21:41:05 -11:00
jl777
bf204809b4 Again 2018-11-22 02:18:30 -11:00
miketout
6e2a502b0e Merge of Komodo and Verus Technologies Post Sapling, Pre-VerusPoP with Support for Time locked coinbases 2018-11-14 16:40:10 -08:00
miketout
54036e72cd Revert POS change 2018-10-12 21:51:30 -07:00
miketout
4326041663 Cheatcatcher tests to remove and change to max sequential POS 2018-10-12 21:09:45 -07:00
miketout
051af72cbd Cap the random additional stake of a block to 1/2 the current stake difficulty 2018-10-08 17:20:31 -07:00
miketout
8682e17a7d Sapling support for z_shieldcoinbase and more 2018-10-08 16:17:24 -07:00
Jack Grigg
4c90270469 Explicitly check the min-difficulty flag against boost::none
It isn't clear how a boost::optional that holds 0 (which is the case for
regtest) is coerced to a boolean, unless you pore over the Boost
documentation. An explicit check is clearer.
2018-10-04 23:29:11 +01:00
Jack Grigg
1f7ee4af70 Rename min-difficulty flag to remove off-by-one in the name 2018-10-04 23:26:05 +01:00
Jack Grigg
b86dc98047 Only enable min-difficulty blocks on testnet from a particular height
The min-difficulty change is a bilateral consensus rule change, and so
must be conditionally enabled in order for the earlier section of the
chain to synchronise.

Technically this could be implemented as a network upgrade, but as this will
never be deployed to mainnet, a targeted fork will suffice.
2018-10-04 14:05:27 +01:00
miketout
4739095d0f Fix comparison 2018-10-04 01:01:29 -07:00
miketout
00a7120e90 Cleanup, initialize stake for chainPower in pre-sapling path 2018-10-04 00:35:52 -07:00
Jack Grigg
1702a86455 Allow minimum-difficulty blocks on testnet and regtest
A block may be mined with nBits set to the minimum difficulty if its
nTime is set more than six block intervals (15 minutes) after its parent
block.

This is a consensus rule change on testnet that will result in a chain
split (as desired).
2018-10-03 17:50:17 +01:00
Jack Grigg
639e46b4d7 Revert "Remove testnet-only difficulty rules"
This reverts commit 333ea3c426.
2018-10-03 16:15:03 +01:00
miketout
c68ca1a225 Leverage nonce for overwhelming chance of single deterministic winner for chain power in POS 2018-09-28 14:35:38 -07:00
miketout
4b729ec577 Changes for most chain power rule 2018-09-28 01:38:14 -07:00
miketout
9feb4b9e08 Major updates integration from all upstreams 2018-09-18 14:33:53 -07:00
Michael Toutonghi
0c8fa56a02 All latest updates, smart contracts, including oracle from KMD/jl777 2018-09-13 13:00:13 -07:00
Jonathan "Duke" Leto
47a5268bd4 Prevent useless prints in regtest 2018-08-22 09:49:55 +02:00
Michael Toutonghi
5034d1c134 Sync with latest Komodo changes 2018-08-06 12:52:22 -07:00
jl777
f108acf943 Easy diff for PoS 2018-07-10 04:53:28 -11:00
jl777
97a337f739 Initial revisions 2018-07-10 01:19:29 -11:00
jl777
2ba9de01cb 7250 diff cap.16 hardfork for PoS 2018-07-09 22:15:27 -11:00