diff --git a/src/komodo_nSPV_wallet.h b/src/komodo_nSPV_wallet.h index bfcb5fecb..2f93ee2d5 100644 --- a/src/komodo_nSPV_wallet.h +++ b/src/komodo_nSPV_wallet.h @@ -302,7 +302,8 @@ UniValue NSPV_spend(char *srcaddr,char *destaddr,int64_t satoshis) // what its a mtx.nExpiryHeight = 0; mtx.nVersionGroupId = SAPLING_VERSION_GROUP_ID; mtx.nVersion = SAPLING_TX_VERSION; - mtx.nLockTime = (uint32_t)time(NULL) - 777; + if ( ASSETCHAINS_SYMBOL[0] == 0 ) + mtx.nLockTime = (uint32_t)time(NULL) - 777; memset(used,0,sizeof(used)); data.resize(20); memcpy(&data[0],&rmd160[1],20); diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 3ac705dff..ef511e78d 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -186,7 +186,7 @@ UniValue getnewaddress(const UniValue& params, bool fHelp) #else randombytes_buf(priv32,sizeof(priv32)); #endif - key.Set(&priv32[0],&priv[32], true); + key.Set(&priv32[0],&priv32[32], true); CPubKey pubkey = key.GetPubKey(); CKeyID vchAddress = pubkey.GetID(); return(EncodeDestination(vchAddress));