Browse Source

Test

pull/4/head
jl777 6 years ago
parent
commit
c75d265250
  1. 2
      src/cc/CCinclude.h
  2. 2
      src/cc/dice.cpp
  3. 2
      src/main.cpp

2
src/cc/CCinclude.h

@ -60,7 +60,7 @@ bool GetAddressUnspent(uint160 addressHash, int type,std::vector<std::pair<CAddr
static const uint256 zeroid;
bool myGetTransaction(const uint256 &hash, CTransaction &txOut, uint256 &hashBlock);
int32_t is_hexstr(char *str,int32_t n);
bool myAddtomempool(CTransaction &tx);
bool myAddtomempool(const CTransaction &tx);
//uint64_t myGettxout(uint256 hash,int32_t n);
bool myIsutxo_spentinmempool(uint256 txid,int32_t vout);
int32_t myIsutxo_spent(uint256 &spenttxid,uint256 txid,int32_t vout);

2
src/cc/dice.cpp

@ -100,7 +100,7 @@ struct dicefinish_info
bool mySendrawtransaction(std::string res)
{
CTransaction tx; char str[65];
const CTransaction tx; char str[65];
if ( res.empty() == 0 && res.size() > 64 && is_hexstr((char *)res.c_str(),0) > 64 )
{
if ( DecodeHexTx(tx,res) != 0 )

2
src/main.cpp

@ -1623,7 +1623,7 @@ bool GetAddressUnspent(uint160 addressHash, int type,
else return(coins.vout[n].nValue);
}*/
bool myAddtomempool(CTransaction &tx)
bool myAddtomempool(const CTransaction &tx)
{
CValidationState state; CTransaction Ltx; bool fMissingInputs,fOverrideFees = false;
if ( mempool.lookup(tx.GetHash(),Ltx) == 0 )

Loading…
Cancel
Save