diff --git a/src/cc/payments.cpp b/src/cc/payments.cpp index 0c6edb284..34b1a10ee 100644 --- a/src/cc/payments.cpp +++ b/src/cc/payments.cpp @@ -406,7 +406,7 @@ bool PaymentsValidate(struct CCcontract_info *cp,Eval* eval,const CTransaction & else if ( funcid == 'S' || funcid == 'O' ) { // snapshot payment - if ( KOMODO_SNAPSHOT_INTERVAL == 0 ) + if ( HUSH_SNAPSHOT_INTERVAL == 0 ) return(eval->Invalid("snapshots not activated on this chain")); if ( vAddressSnapshot.size() == 0 ) return(eval->Invalid("need first snapshot")); @@ -1220,7 +1220,7 @@ UniValue PaymentsAirdrop(struct CCcontract_info *cp,char *jsonstr) UniValue result(UniValue::VOBJ); uint256 hashBlock; CTransaction tx; CPubKey Paymentspk,mypk; char markeraddr[64]; std::string rawtx; int32_t lockedblocks,minrelease,top,bottom,n,i,minimum=10000; std::vector> excludeScriptPubKeys; int8_t fixedAmount; - if ( KOMODO_SNAPSHOT_INTERVAL == 0 ) + if ( HUSH_SNAPSHOT_INTERVAL == 0 ) { result.push_back(Pair("result","error")); result.push_back(Pair("error","cannot use airdrop wihtout -ac_snapshot set.")); diff --git a/src/hush_defs.h b/src/hush_defs.h index b2ce71807..3924f03cc 100644 --- a/src/hush_defs.h +++ b/src/hush_defs.h @@ -525,7 +525,7 @@ extern uint8_t ASSETCHAINS_PRIVATE; extern int32_t USE_EXTERNAL_PUBKEY; extern char NOTARYADDRS[64][64]; extern char NOTARY_ADDRESSES[NUM_HUSH_SEASONS][64][64]; -extern int32_t HUSH_TESTNODE, KOMODO_SNAPSHOT_INTERVAL; +extern int32_t HUSH_TESTNODE, HUSH_SNAPSHOT_INTERVAL; extern int32_t ASSETCHAINS_EARLYTXIDCONTRACT; extern int32_t ASSETCHAINS_STAKED_SPLIT_PERCENTAGE; int tx_height( const uint256 &hash );