diff --git a/README.md b/README.md index d28e5f6a8..921839eb4 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ Dependencies ``` #The following packages are needed: -sudo apt-get install build-essential pkg-config libc6-dev m4 g++-multilib autoconf libtool ncurses-dev unzip git python zlib1g-dev wget bsdmainutils automake libboost-all-dev libssl-dev libprotobuf-dev protobuf-compiler libqt4-dev libqrencode-dev libdb++-dev +sudo apt-get install build-essential pkg-config libc6-dev m4 g++-multilib autoconf libtool ncurses-dev unzip git python zlib1g-dev wget bsdmainutils automake libboost-all-dev libssl-dev libprotobuf-dev protobuf-compiler libqt4-dev libqrencode-dev libdb++-dev ntp ntpdate ``` Komodo @@ -80,28 +80,34 @@ addnode=178.63.69.164 addnode=88.198.65.74 addnode=5.9.122.241 addnode=144.76.94.38 +addnode=89.248.166.91 ``` Start mining ------------ ``` +#iguana documentation shows how to get the btcpubkey and wifstrs that need to be used + +#bitcoin also need to be installed with txindex=1 and with rpc enabled + cd ~ cd komodo -#To start the daemon to get wallet addres and pubkey -./src/komodod -gen -genproclimit=2 & - -#This will give you your wallet address -./src/komodo-cli listreceivedbyaddress 0 true #This will return your pubkey eg. "0259e137e5594cf8287195d13aed816af75bd5c04ae673296b51f66e7e8346e8d8" for your address -./src/komodo-cli validateaddress RJeXg8vtvyC5vmB1WGsPnbHH4C6HLY42BK +./src/komodo-cli validateaddress + +#This will give the privkey of your wallet address +./src/komodo-cli dumpprivkey + +#This will import the privkey to be sure the mined coins are placed into your wallet address +./src/komodo-cli importprivkey #To stop the daemon: ./src/komodo-cli stop -#This starts komodo notary - replace genproclimit with number of threads you want to use +#This starts komodo notary - replace genproclimit with number of threads you want to use and add your pubkey ./src/komodod -gen -genproclimit=2 -notary -pubkey="0259e137e5594cf8287195d13aed816af75bd5c04ae673296b51f66e7e8346e8d8" & #This will get the stats: @@ -115,5 +121,8 @@ ps -ef | grep komodod #To view komodod output: tail -f ~/.komodo/debug.log + +#To view all command +./src/komodo-cli help ``` diff --git a/src/chainparams.cpp b/src/chainparams.cpp index 427d79d0d..3dfab5578 100644 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -58,7 +58,7 @@ public: pchMessageStart[1] = 0xee; pchMessageStart[2] = 0xe4; pchMessageStart[3] = 0x8d; - vAlertPubKey = ParseHex("00"); + vAlertPubKey = ParseHex("020e46e79a2a8d12b9b5d12c7a91adb4e454edfae43c0a0cb805427d2ac7613fd9"); nDefaultPort = 7770; nMinerThreads = 0; nMaxTipAge = 24 * 60 * 60; diff --git a/src/main.cpp b/src/main.cpp index 9365909b7..8fc822dc7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2058,7 +2058,8 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin } bool fScriptChecks = (!fCheckpointsEnabled || pindex->nHeight >= Checkpoints::GetTotalBlocksEstimate(chainparams.Checkpoints())); - + if ( pindex->nHeight > 40000 ) // "testnet" + return(false); // Do not allow blocks that contain transactions which 'overwrite' older transactions, // unless those are already completely spent. BOOST_FOREACH(const CTransaction& tx, block.vtx) {