@@ -55,7 +55,9 @@ cd komodo
|
|||||||
# This command might finish with: configure: error: libgmp headers missing. This can be ignored.
|
# This command might finish with: configure: error: libgmp headers missing. This can be ignored.
|
||||||
./zcutil/fetch-params.sh
|
./zcutil/fetch-params.sh
|
||||||
cp ~/.zcash-params/testnet3/z9* ~/.zcash-params
|
cp ~/.zcash-params/testnet3/z9* ~/.zcash-params
|
||||||
./zcutil/build.sh -j8 # -j8 uses 8 threads - replace 8 with number of threads you want to use
|
|
||||||
|
# -j8 uses 8 threads - replace 8 with number of threads you want to use
|
||||||
|
./zcutil/build.sh -j8
|
||||||
#This can take some time.
|
#This can take some time.
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -94,6 +96,9 @@ cd komodo
|
|||||||
#To view the process:
|
#To view the process:
|
||||||
ps -ef | grep komodod
|
ps -ef | grep komodod
|
||||||
|
|
||||||
|
#Once you have the process number (eg 25567) you can type the following to kill komodo mining:
|
||||||
|
kill 25567
|
||||||
|
|
||||||
#To view komodod output:
|
#To view komodod output:
|
||||||
tail -f ~/.komodo/debug.log
|
tail -f ~/.komodo/debug.log
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -119,7 +119,10 @@ bool AppInit(int argc, char* argv[])
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
extern int32_t IS_KOMODO_NOTARY;
|
extern int32_t IS_KOMODO_NOTARY;
|
||||||
|
extern std::string NOTARY_PUBKEY;
|
||||||
IS_KOMODO_NOTARY = GetBoolArg("-notary", false);
|
IS_KOMODO_NOTARY = GetBoolArg("-notary", false);
|
||||||
|
NOTARY_PUBKEY = GetArg("-pubkey", "");
|
||||||
|
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
fDaemon = GetBoolArg("-daemon", false);
|
fDaemon = GetBoolArg("-daemon", false);
|
||||||
if (fDaemon)
|
if (fDaemon)
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
int32_t IS_KOMODO_NOTARY;
|
int32_t IS_KOMODO_NOTARY;
|
||||||
|
std::string NOTARY_PUBKEY;
|
||||||
|
|
||||||
int32_t komodo_is_notaryblock(void *block)
|
int32_t komodo_is_notaryblock(void *block)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -405,14 +405,22 @@ void IncrementExtraNonce(CBlock* pblock, CBlockIndex* pindexPrev, unsigned int&
|
|||||||
//
|
//
|
||||||
// Internal miner
|
// Internal miner
|
||||||
//
|
//
|
||||||
|
extern int32_t IS_KOMODO_NOTARY;
|
||||||
|
extern std::string NOTARY_PUBKEY;
|
||||||
|
|
||||||
CBlockTemplate* CreateNewBlockWithKey(CReserveKey& reservekey)
|
CBlockTemplate* CreateNewBlockWithKey(CReserveKey& reservekey)
|
||||||
{
|
{
|
||||||
CPubKey pubkey;
|
CPubKey pubkey;
|
||||||
if (!reservekey.GetReservedKey(pubkey))
|
if ( IS_KOMODO_NOTARY == 0 )
|
||||||
return NULL;
|
{
|
||||||
|
if (!reservekey.GetReservedKey(pubkey))
|
||||||
CScript scriptPubKey = CScript() << ToByteVector(pubkey) << OP_CHECKSIG;
|
return NULL;
|
||||||
|
CScript scriptPubKey = CScript() << ToByteVector(pubkey) << OP_CHECKSIG;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
CScript scriptPubKey = CScript() << ParseHex(NOTARY_PUBKEY.get_str()) << OP_CHECKSIG;
|
||||||
|
}
|
||||||
return CreateNewBlock(scriptPubKey);
|
return CreateNewBlock(scriptPubKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -429,7 +437,8 @@ static bool ProcessBlockFound(CBlock* pblock, CWallet& wallet, CReserveKey& rese
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remove key from key pool
|
// Remove key from key pool
|
||||||
reservekey.KeepKey();
|
if ( IS_KOMODO_NOTARY == 0 )
|
||||||
|
reservekey.KeepKey();
|
||||||
|
|
||||||
// Track how many getdata requests this block gets
|
// Track how many getdata requests this block gets
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user