Commit Graph

315 Commits

Author SHA1 Message Date
jl777
4556f3da4a void komodo_setactivation(int32_t height) 2018-11-22 00:37:37 -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
e871bb78ad Fix Komodo compatibility 2018-10-17 16:57:27 -07:00
miketout
ceaccb0c07 Sync Overwinter and Sapling defaults 2018-10-15 08:34:21 -07:00
miketout
75c34b7494 Latest Zcash bug fixes 2018-10-14 15:09:50 -07:00
miketout
98760e4a4b Update minimum chain work for Verus and test chains 2018-10-14 02:25:33 -07:00
Simon
85809c75ad Update mainnet checkpoint for block 410100. 2018-10-13 08:55:38 -07:00
miketout
1021455845 Fix negative height issues for pruning cheat lists 2018-10-11 14:23:14 -07:00
Michael Toutonghi
8fc4030c10 Reorganized cheatcatcher for build issues 2018-10-10 21:46:40 -07:00
miketout
8682e17a7d Sapling support for z_shieldcoinbase and more 2018-10-08 16:17:24 -07:00
miketout
191f3bbddd Complete nothing at stake solution, waiting for confirm of masks 2018-10-06 21:28:51 -07: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
Jack Grigg
5ead4b1713 Revert "Get rid of consensus.fPowAllowMinDifficultyBlocks."
This reverts commit dffc025d38.
2018-10-03 16:08:00 +01:00
miketout
4b729ec577 Changes for most chain power rule 2018-09-28 01:38:14 -07:00
miketout
b8deecdc09 Sapling transaction testing 2018-09-20 03:08:36 -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
Jack Grigg
70b4ad2dcd wallet: Switch from SaplingSpendingKey to SaplingExtendedSpendingKey
The wallet now only stores Sapling extended spending keys, and thus can
only be used with keys generated from an HDSeed via ZIP 32.

Note that not all Sapling keys in the wallet will correspond to the
wallet's HDSeed, as a standalone Sapling xsk can be imported via
z_importkey. However, it must have been generated from a seed itself,
and thus is more likely to be backed up elsewhere.
2018-09-03 10:45:37 +01:00
miketout
64d6048f4a Fixed checkpoint data that was put into codebase without proper check for blockchain, breaking other blockchains or asset chains 2018-08-27 12:11:33 -07:00
Sean Bowe
955b328ad1 Sapling mainnet activation height 2018-08-15 12:09:31 -06:00
Michael Toutonghi
0ba2065183 Network decentralizatoin and bug fixes 2018-08-09 15:32:48 -07:00
Michael Toutonghi
5034d1c134 Sync with latest Komodo changes 2018-08-06 12:52:22 -07:00
Jack Grigg
0ecdd0f30a chainparams: Add BIP 44 coin type (as registered in SLIP 44) 2018-08-05 10:41:06 +01:00
jl777
79a3b761c2 Change regrets address prefix 2018-08-04 22:25:00 -11:00
Homu
0361f789fe Auto merge of #3246 - str4d:checkpoint-304600, r=bitcartel
Add some more checkpoints, up to the 1.1.0 release
2018-08-01 13:55:34 -07:00
Jack Grigg
3f4ad5967b Fix block hash for checkpoint at height 270000 2018-07-30 17:45:04 +01:00
Homu
3835cbb57f Auto merge of #3263 - str4d:ibd-upstream-changes, r=bitcartel
InitialBlockDownload upstream changes

Cherry-picked from the following upstream PRs:

- bitcoin/bitcoin#7208
- bitcoin/bitcoin#8007
- bitcoin/bitcoin#9053
  - Excluding second commit (requires bitcoin/bitcoin#8865)
- bitcoin/bitcoin#10388
2018-07-17 13:17:27 -07:00
Jonathan "Duke" Leto
6a7ef35d8c Fix progress estimate by fixing checkpoint data
The number of transactions since the last checkpoint block was set to
over 100K, but there were no checkpoint blocks other than genesis,
and the timestamp of last checkpoint block was incorrect as well. These
led to the progress indicator always being very close to zero.

This adds checkpoint blocks rougly every 10K blocks and corrects the
other metadata.
2018-06-25 00:24:45 -07:00
Scott Sadler
45acf7d462 Merge remote-tracking branch 'jl/jl777' into momo 2018-06-19 20:50:56 -03:00
Jack Grigg
7e45636707 chainparams: Add Sapling Bech32 HRPs 2018-06-07 16:41:59 +12:00
Jonathan "Duke" Leto
b68a172c13 Add missing ZCVIEWING_KEY to base58Prefixes 2018-06-03 09:42:13 -07:00
Jonathan "Duke" Leto
97d48e2405 Add missing ZCVIEWING_KEY to base58Prefixes 2018-06-02 22:17:18 -07:00
Scott Sadler
81389fc7b4 merge dev; tests broken, need to use wallet for block rewards 2018-05-29 19:04:47 -03:00
Michael Toutonghi
c6e2184378 post launch release readiness 2018-05-27 19:59:23 -07:00
Michael Toutonghi
8abe764b18 Disabled test only state 2018-05-26 04:02:10 -07:00
Michael Toutonghi
74329e19f8 Multiple changes for critical update, including random locks and activation at 12800. Test for utxos. 2018-05-26 04:00:17 -07:00
Michael Toutonghi
6c8e1cdfb7 Restore zcash coinbase rule and launch fix at 10080 2018-05-25 15:10:07 -07:00
Jack Grigg
d670db7164 Sapling testnet activation height 2018-05-25 16:05:25 +12:00
Michael Toutonghi
3de80992e0 Finish up new POS difficulty calc 2018-05-19 19:03:53 -07:00
Jonathan "Duke" Leto
8cf70067ac Use the KOMODO_MINDIFF_NBITS constant 2018-05-19 10:49:01 -07:00
Jonathan "Duke" Leto
16df92af59 Use latest Zcash regtest params, could not use the same as Hush because KMD has merged in latest consensus changes from ZEC upstream 2018-05-19 10:45:12 -07:00
Jonathan "Duke" Leto
373afcb499 Use correct regtest genesis block hash
komodod now starts up and dies with InvalidChainFound, I think due to
checkpoints:

call komodo_args.(./src/komodod) NOTARY_PUBKEY.()
initialized  at 1526749522
finished loading blocks
Assertion failed: (tip), function InvalidChainFound, file main.cpp, line 1942.
2018-05-19 10:05:53 -07:00
Jonathan "Duke" Leto
b78c39beb2 Convert to using CreateGenesisBlock() like Zcash upstream 2018-05-19 08:51:45 -07:00
Jonathan "Duke" Leto
db83a2c0c3 Try Hush regtest params
This fails with:

$ ./komodod -regtest
Assertion failed: (consensus.hashGenesisBlock == uint256S("0x0379ff1530af893f2f2e61146db6e900dd828dc8254215b9de23df2dba06664f")), function CRegTestParams, file chainparams.cpp, line 540.
Abort trap: 6 (core dumped)

From 1d8c55ecc2
2018-05-19 00:56:25 -07:00
Gregory Maxwell
e41632c9fb IBD check uses minimumchain work instead of checkpoints.
This introduces a 'minimum chain work' chainparam which is intended
 to be the known amount of work in the chain for the network at the
 time of software release.  If you don't have this much work, you're
 not yet caught up.

This is used instead of the count of blocks test from checkpoints.

This criteria is trivial to keep updated as there is no element of
subjectivity, trust, or position dependence to it. It is also a more
reliable metric of sync status than a block count.
2018-05-15 21:25:19 +12:00
Wladimir J. van der Laan
29aaf13b0a Make max tip age an option instead of chainparam
After discussion in #7164 I think this is better.

Max tip age was introduced in #5987 to make it possible to run
testnet-in-a-box. But associating this behavior with the testnet chain
is wrong conceptually, as it is not needed in normal usage.
Should aim to make testnet test the software as-is.

Replace it with a (debug) option `-maxtipage`, which can be
specified only in the specific case.
2018-05-15 21:24:58 +12:00
Michael Toutonghi
1fae37f6bf Working proof of stake with new algorithm 2018-05-15 00:54:18 -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
Jack Grigg
93bd00a0d5 Add key_io includes to Zcash-specific code 2018-05-08 21:39:56 +01:00