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
jl777
7ed0e00b82
Test
2018-07-08 16:23:30 -11:00
jl777
45ee62cb71
Ht 6000 test
2018-07-08 16:17:39 -11:00
jl777
ffd2c38348
Remove easy diff at 4400
2018-07-08 03:03:21 -11:00
jl777
0cd39760aa
Test
2018-07-08 02:05:40 -11:00
jl777
dec86f1b5a
Delay activation to 4200
2018-07-08 00:14:24 -11:00
jl777
196c69f770
Fix easy diff check for PoS
2018-07-08 00:13:09 -11:00
jl777
67df454d11
End free4all at height 1 million, cap PoSdiff to mindiff*4
2018-06-27 00:40:49 -11:00
Michael Toutonghi
4dcb64c081
Radical hash rate optimization
2018-06-26 07:39:50 -07:00
Simon
10a7d55a03
Remove now redundant Rust call to librustzcash_xor.
2018-06-06 23:24:21 -07:00
jl777
525c7b98a9
Skip equihash test for regrets
2018-05-30 03:01:05 -11:00
Michael Toutonghi
30ceed219d
Accurate POW block counting
2018-05-20 17:24:28 -07:00
Michael Toutonghi
12b384112e
final fix to pos dif algo
2018-05-20 17:18:48 -07:00
Michael Toutonghi
3285dbd3c9
worked around compiler issue with types
2018-05-20 15:18:04 -07:00
Michael Toutonghi
0ea9fa65b6
Another tweak for cutting off POS at 8 consecutive
2018-05-20 13:59:28 -07:00
Michael Toutonghi
b9956efcb4
Display proper POS difficulty on minted block. Add missing curly brace.
2018-05-20 13:13:06 -07:00
Michael Toutonghi
3c8a1c9d1f
Change name and off-by-one to make compatible with dry-run chain
2018-05-20 11:42:41 -07:00
Michael Toutonghi
e38677b86b
Don't early out whenever we see max POS blocks in a row
2018-05-20 11:30:01 -07:00
Michael Toutonghi
3de80992e0
Finish up new POS difficulty calc
2018-05-19 19:03:53 -07:00
Michael Toutonghi
dbe656fe39
Significant mining optimization and POS DAA modification
2018-05-19 18:34:46 -07:00
Michael Toutonghi
f6608b5a0d
cleanup
2018-05-17 22:58:30 -07:00
Michael Toutonghi
1f722359c1
Verus Proof of Stake Compete with Additional ant-fork protection on block 1
2018-05-13 18:59:06 -07:00
miketout
4cd2cd4dd1
Improve and complete getinfo output, cleanup unused reference
2018-05-09 13:13:12 -07:00
miketout
32d8c6d015
Merge latest from Komodo, including POS
2018-05-08 17:57:03 -07:00
jl777
bce6dbb37c
Test
2018-05-07 16:20:13 +03:00
miketout
1234f16b15
Fix to separate minimum difficulties for primary and alternate algorithms
2018-05-05 16:34:05 -07:00
miketout
48d800c2c6
Merge all Komodo changes, including proof of stake, crypto conditions, passport, etc.
2018-05-02 03:24:21 -07:00
miketout
2910478b5a
Added LWMA difficulty algorithm for Verus, enabled compiler optimizations for verushash
2018-04-29 23:21:35 -07:00
miketout
42181656c2
Implementation of VerusHash CPU-friendly hash algorithm, parameters to enable it, miner, and all changes required to support it on new asset chains
2018-04-27 00:34:50 -07:00
jl777
9edf27ec05
+print
2018-04-22 16:05:56 +03:00
jl777
bf30e02d79
Test
2018-04-19 15:53:28 +03:00