diff --git a/src/Makefile.am b/src/Makefile.am index 328b3e269..4fd1f5f0a 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -105,10 +105,10 @@ TESTS = #endif if BUILD_BITCOIN_UTILS - bin_PROGRAMS += komodo-cli komodo-tx - if ENABLE_WALLET - bin_PROGRAMS += wallet-utility - endif + bin_PROGRAMS += komodo-cli komodo-tx +endif +if ENABLE_WALLET + bin_PROGRAMS += wallet-utility endif LIBZCASH_H = \ diff --git a/src/komodo_globals.h b/src/komodo_globals.h index 0bfc3a06e..d3a95c6cc 100644 --- a/src/komodo_globals.h +++ b/src/komodo_globals.h @@ -47,13 +47,16 @@ int COINBASE_MATURITY = _COINBASE_MATURITY;//100; int32_t IS_KOMODO_NOTARY,USE_EXTERNAL_PUBKEY,KOMODO_CHOSEN_ONE,ASSETCHAINS_SEED,KOMODO_ON_DEMAND,KOMODO_EXTERNAL_NOTARIES,KOMODO_PASSPORT_INITDONE,KOMODO_PAX,KOMODO_EXCHANGEWALLET,KOMODO_REWIND; int32_t KOMODO_LASTMINED,prevKOMODO_LASTMINED,JUMBLR_PAUSE; +<<<<<<< HEAD uint32_t ASSETCHAINS_CC; +======= +>>>>>>> dev std::string NOTARY_PUBKEY,ASSETCHAINS_NOTARIES,ASSETCHAINS_OVERRIDE_PUBKEY; uint8_t NOTARY_PUBKEY33[33],ASSETCHAINS_OVERRIDE_PUBKEY33[33]; char ASSETCHAINS_SYMBOL[KOMODO_ASSETCHAIN_MAXLEN],ASSETCHAINS_USERPASS[4096]; uint16_t ASSETCHAINS_PORT; -uint32_t ASSETCHAIN_INIT; +uint32_t ASSETCHAIN_INIT,ASSETCHAINS_CC; uint32_t ASSETCHAINS_MAGIC = 2387029918; uint64_t ASSETCHAINS_ENDSUBSIDY,ASSETCHAINS_REWARD,ASSETCHAINS_HALVING,ASSETCHAINS_DECAY,ASSETCHAINS_COMMISSION,ASSETCHAINS_STAKED,ASSETCHAINS_SUPPLY = 10; diff --git a/src/miner.cpp b/src/miner.cpp index 533879de7..45a405d08 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -916,6 +916,12 @@ void static BitcoinMiner() // fprintf(stderr," missed target\n"); return false; } + CValidationState state; + if ( !TestBlockValidity(state, *pblock, chainActive.Tip(), true, false)) + { + fprintf(stderr,"Invalid block mined, try again\n"); + return(false); + } if ( ASSETCHAINS_STAKED == 0 ) { if ( Mining_start != 0 && time(NULL) < Mining_start+roundrobin_delay ) @@ -933,12 +939,6 @@ void static BitcoinMiner() } else { - CValidationState state; - if ( !TestBlockValidity(state, *pblock, chainActive.Tip(), true, false)) - { - fprintf(stderr,"Invalid block mined, try again\n"); - return(false); - } if ( NOTARY_PUBKEY33[0] != 0 ) { printf("need to wait %d seconds to submit\n",(int32_t)(pblock->nTime - GetAdjustedTime())); diff --git a/src/wallet-utility.cpp b/src/wallet-utility.cpp index f36785df3..04b9edf45 100644 --- a/src/wallet-utility.cpp +++ b/src/wallet-utility.cpp @@ -8,6 +8,14 @@ #include "wallet/crypter.h" #include +#include "komodo_defs.h" +char ASSETCHAINS_SYMBOL[KOMODO_ASSETCHAIN_MAXLEN]; +int64_t MAX_MONEY = 200000000 * 100000000LL; +uint64_t ASSETCHAINS_SUPPLY; +uint16_t BITCOIND_PORT = 7771; +uint16_t ASSETCHAINS_PORT; +uint32_t ASSETCHAIN_INIT,ASSETCHAINS_CC; +uint32_t ASSETCHAINS_MAGIC = 2387029918; void show_help() { @@ -336,4 +344,4 @@ int main(int argc, char* argv[]) return 0; else return -1; -} \ No newline at end of file +} diff --git a/src/zcash/JoinSplit.cpp b/src/zcash/JoinSplit.cpp index 2685569d3..b96bb2979 100644 --- a/src/zcash/JoinSplit.cpp +++ b/src/zcash/JoinSplit.cpp @@ -17,6 +17,7 @@ #include "tinyformat.h" #include "sync.h" #include "amount.h" +extern int64_t MAX_MONEY; using namespace libsnark;