Commit Graph

279 Commits

Author SHA1 Message Date
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
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
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
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
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
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
miketout
39267c3553 Reduce default difficulty 2018-05-06 13:06:14 -07:00
miketout
1234f16b15 Fix to separate minimum difficulties for primary and alternate algorithms 2018-05-05 16:34:05 -07:00
miketout
e2951abdc3 put higher difficulty where it matters 2018-05-05 15:11:32 -07:00
miketout
bdc8bd41dd raise minimum difficulty for Verus hash 2018-05-05 14:01:40 -07:00
miketout
05b14c0599 Make mining require peers 2018-05-04 16:47:12 -07:00
miketout
e980a26ddd Enable time locked coin bases to be used as normal coinbase transactions with longer maturity, fix max_money 2018-05-04 16:33:34 -07:00
miketout
90e7502158 Enabled recognition of time locked transactions as watch only or spendable, depending on time 2018-05-02 22:20:03 -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
b64e19b006 enable MiningRequiresPeers 2018-04-30 00:17:03 -07:00
miketout
2910478b5a Added LWMA difficulty algorithm for Verus, enabled compiler optimizations for verushash 2018-04-29 23:21:35 -07:00
Scott Sadler
0cb91a8d20 wip 2018-04-29 00:34:57 -03:00
jl777
05c2ba6371 split out asset chain p2p port from roc port 2018-04-22 17:10:35 +03:00
jl777
eb9facd492 Merge branch 'dev' into jl777 2018-03-25 22:24:20 +03:00
jl777
694e664eb9 Test 2018-03-25 21:49:50 +03:00
jl777
1ade213100 Test 2018-03-25 21:20:12 +03:00
jl777
028a570576 Test 2018-03-25 21:18:25 +03:00
jl777
aa22b9566a Test 2018-03-25 21:17:46 +03:00
jl777
b35fd60032 Test 2018-03-25 21:16:11 +03:00
jl777
d78a07c645 Test 2018-03-25 21:15:11 +03:00
jl777
9000990c30 Merge remote-tracking branch 'zcash/master' into rebase2
# Conflicts:
#	.travis.yml
#	Makefile.am
#	README.md
#	configure.ac
#	depends/Makefile
#	depends/builders/darwin.mk
#	depends/funcs.mk
#	depends/hosts/darwin.mk
#	depends/packages/googlemock.mk
#	depends/packages/googletest.mk
#	depends/packages/libsnark.mk
#	depends/packages/libsodium.mk
#	depends/packages/packages.mk
#	depends/packages/rust.mk
#	src/Makefile.am
#	src/Makefile.gtest.include
#	src/chainparams.cpp
#	src/chainparams.h
#	src/checkpoints.h
#	src/clientversion.h
#	src/coins.cpp
#	src/consensus/consensus.h
#	src/gtest/test_mempool.cpp
#	src/httprpc.cpp
#	src/init.cpp
#	src/komodo-tx.cpp
#	src/main.cpp
#	src/miner.cpp
#	src/policy/fees.cpp
#	src/policy/fees.h
#	src/rpcmining.cpp
#	src/rpcrawtransaction.cpp
#	src/rpcserver.cpp
#	src/test/policyestimator_tests.cpp
#	src/test/rpc_wallet_tests.cpp
#	src/test/transaction_tests.cpp
#	src/txdb.cpp
#	src/txmempool.cpp
#	src/wallet/asyncrpcoperation_sendmany.cpp
#	src/wallet/rpcwallet.cpp
#	src/wallet/wallet.cpp
#	src/wallet/wallet.h
#	src/zcash/CreateJoinSplit.cpp
#	zcutil/build.sh
2018-03-25 18:44:38 +03:00
Jack Grigg
138cf77004 Overwinter release notes and testnet activation height
Closes #2957.
2018-02-28 13:19:36 +00:00
Mihail Fedorov
b26a0857dc sleepless 2018-02-26 08:50:39 +03:00
Mihail Fedorov
4afdbc9556 New final dns names for seeds 2018-02-26 02:38:59 +03:00
Simon
2423a40c08 Add field nProtocolVersion to struct NetworkUpgrade. 2018-02-23 14:05:13 -08:00
Simon
072099d788 Implementation of Overwinter transaction format ZIP 202. 2018-02-16 10:10:15 -08:00
Jack Grigg
548683767c Add Overwinter to upgrade list 2018-02-04 22:58:42 +00:00
Jack Grigg
f52da91139 Test network upgrade logic
Also demonstrates how to specify a network upgrade.
2018-02-04 22:58:39 +00:00
Jack Grigg
b174b7e330 Allow changing network upgrade parameters on regtest
Derived from upstream commit 56c87e92110f05d7452f1e85bf755246ffc77206:
    Allow changing BIP9 parameters on regtest
2018-02-04 22:57:59 +00:00
Jack Grigg
780f526bc9 Network upgrade activation mechanism 2018-02-04 22:57:56 +00:00
DeckerSU
b3f7ce9b7a added checkpoints for KMD blockchain. need to be tested.
- added method SetCheckpointData for CChainParams.
- as we can't check asset it or not in CMainParams() constructor, because command line arguments don't initialized at that time, we will execute SetCheckpointData in chainparams_commandline later.

changes was tested in komodo-qt wallet, but additional tests wouldn't be superfluous.
2018-01-27 13:28:43 +03:00