diff --git a/src/cc/channels.cpp b/src/cc/channels.cpp index 972c8dc92..a3e69aeb3 100644 --- a/src/cc/channels.cpp +++ b/src/cc/channels.cpp @@ -177,7 +177,7 @@ std::string ChannelOpen(uint64_t txfee,CPubKey destpub,int32_t numpayments,int32 CMutableTransaction mtx; uint8_t hash[32],hashdest[32]; uint64_t funds; int32_t i; uint256 hashchain,entropy,hentropy; CPubKey mypk; CScript opret; struct CCcontract_info *cp,C; if ( numpayments <= 0 || payment <= 0 || numpayments > CHANNELS_MAXPAYMENTS ) { - CCerror = strprintf(stderr,"invalid ChannelsFund param numpayments.%d max.%d payment.%d\n",numpayments,CHANNELS_MAXPAYMENTS,payment); + CCerror = strprintf("invalid ChannelsFund param numpayments.%d max.%d payment.%d\n",numpayments,CHANNELS_MAXPAYMENTS,payment); fprintf(stderr,"%s\n",CCerror.c_str()); return(""); } @@ -189,7 +189,7 @@ std::string ChannelOpen(uint64_t txfee,CPubKey destpub,int32_t numpayments,int32 if ( AddNormalinputs(mtx,mypk,funds+2*txfee,64) > 0 ) { hentropy = DiceHashEntropy(entropy,mtx.vin[0].prevout.hash); - endiancpy(hash,&hentropy,32); + endiancpy(hash,(uint8_t *)&hentropy,32); for (i=0; i