Test
This commit is contained in:
@@ -48,6 +48,8 @@ one other technical note is that komodod has the insight-explorer extensions bui
|
||||
#include <univalue.h>
|
||||
#include <exception>
|
||||
#include "../komodo_defs.h"
|
||||
#include "../utlist.h"
|
||||
#include "../uthash.h"
|
||||
|
||||
extern int32_t KOMODO_CONNECTING,KOMODO_CCACTIVATE;
|
||||
extern uint32_t ASSETCHAINS_CC;
|
||||
@@ -134,6 +136,7 @@ bool IsCCInput(CScript const& scriptSig);
|
||||
int32_t unstringbits(char *buf,uint64_t bits);
|
||||
uint64_t stringbits(char *str);
|
||||
uint256 revuint256(uint256 txid);
|
||||
bool pubkey2addr(char *destaddr,uint8_t *pubkey33);
|
||||
char *uint256_str(char *dest,uint256 txid);
|
||||
char *pubkey33_str(char *dest,uint8_t *pubkey33);
|
||||
uint256 Parseuint256(char *hexstr);
|
||||
|
||||
@@ -196,6 +196,7 @@ bool mySenddicetransaction(std::string res,uint256 entropyused,uint256 bettxid,C
|
||||
|
||||
int32_t _dicehash_find(uint256 bettxid)
|
||||
{
|
||||
int32_t i;
|
||||
for (i=0; i<MAX_ENTROPYUSED; i++)
|
||||
if ( bettxids[i] == bettxid )
|
||||
return(1);
|
||||
@@ -237,7 +238,7 @@ int32_t dicefinish_utxosget(struct dicefinish_utxo *utxos,int32_t max,char *coin
|
||||
|
||||
void *dicewin(void *_ptr)
|
||||
{
|
||||
char CCaddr[64]; struct CCcontract_info *cp; int32_t n; struct dicefinish_info *ptr,*tmp;
|
||||
char CCaddr[64]; struct CCcontract_info *cp,C; int32_t n; struct dicefinish_info *ptr,*tmp;
|
||||
sleep(3);
|
||||
cp = CCinit(C,EVAL_DICE);
|
||||
GetCCaddress(cp,CCaddr,GetUnspendable(cp,0));
|
||||
|
||||
Reference in New Issue
Block a user