diff --git a/README.md b/README.md index ae3a459e5..1271d57ed 100755 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ > #TL;DR# > -> ```sudo apt-get update; sudo apt-get git install build-essential; git clone https://github.com/jl777/SuperNET; cd SuperNET; ./m_onetime m_unix;``` +> ```sudo apt-get update; sudo apt-get install git build-essential; git clone https://github.com/jl777/SuperNET; cd SuperNET; ./m_onetime m_unix;``` > > The above one line gets SuperNET installed, built and launched for unix. > diff --git a/iguana/iguana_chains.c b/iguana/iguana_chains.c index 0bf0b904c..083e2ae7f 100755 --- a/iguana/iguana_chains.c +++ b/iguana/iguana_chains.c @@ -107,7 +107,7 @@ int32_t blockhash_scrypt(uint8_t *blockhashp,uint8_t *serialized,int32_t len) { if ( len == 80 ) *(bits256 *)blockhashp = scrypt_blockhash(serialized); - else memcpy(blockhashp,0,sizeof(*blockhashp)); + else memset(blockhashp,0,sizeof(*blockhashp)); int32_t i; for (i=0; i<32; i++) printf("%02x",blockhashp[i]); printf(" scrypt\n"); diff --git a/iguana/main.c b/iguana/main.c index d44781551..e0e7ff189 100755 --- a/iguana/main.c +++ b/iguana/main.c @@ -1164,7 +1164,7 @@ void iguana_appletests(struct supernet_info *myinfo) //int32_t iguana_schnorr_test(void *ctx); //iguana_schnorr_test(myinfo->ctx); getchar(); - if ( 1 && (str= SuperNET_JSON(myinfo,cJSON_Parse("{\"RELAY\":0,\"VALIDATE\":0,\"prefetchlag\":-1,\"agent\":\"iguana\",\"method\":\"addcoin\",\"startpend\":4,\"endpend\":4,\"services\":129,\"maxpeers\":64,\"newcoin\":\"BTCD\",\"active\":1,\"numhelpers\":4,\"poll\":100}"),0,myinfo->rpcport)) != 0 ) + if ( 1 && (str= SuperNET_JSON(myinfo,cJSON_Parse("{\"RELAY\":1,\"VALIDATE\":1,\"prefetchlag\":-1,\"agent\":\"iguana\",\"method\":\"addcoin\",\"startpend\":4,\"endpend\":4,\"services\":129,\"maxpeers\":64,\"newcoin\":\"BTCD\",\"active\":1,\"numhelpers\":4,\"poll\":100}"),0,myinfo->rpcport)) != 0 ) { free(str); if ( 1 && (str= SuperNET_JSON(myinfo,cJSON_Parse("{\"RELAY\":0,\"VALIDATE\":0,\"prefetchlag\":-1,\"agent\":\"iguana\",\"method\":\"addcoin\",\"startpend\":4,\"endpend\":4,\"services\":129,\"maxpeers\":64,\"newcoin\":\"BTC\",\"active\":0,\"numhelpers\":4,\"poll\":100}"),0,myinfo->rpcport)) != 0 )