Browse Source

Test

etomic
jl777 8 years ago
parent
commit
9c2ec0856c
  1. 4
      basilisk/jumblr.c
  2. 2
      iguana/main.c

4
basilisk/jumblr.c

@ -417,10 +417,10 @@ void jumblr_iteration(struct supernet_info *myinfo,struct iguana_info *coin,int3
char BTCaddr[64],KMDaddr[64],*zaddr,*retstr; bits256 privkey; uint64_t amount=0,total=0; double fee; struct jumblr_item *ptr,*tmp; uint8_t r; char BTCaddr[64],KMDaddr[64],*zaddr,*retstr; bits256 privkey; uint64_t amount=0,total=0; double fee; struct jumblr_item *ptr,*tmp; uint8_t r;
fee = JUMBLR_INCR * JUMBLR_FEE; fee = JUMBLR_INCR * JUMBLR_FEE;
OS_randombytes(&r,sizeof(r)); OS_randombytes(&r,sizeof(r));
//r = 0; r = 0;
if ( strcmp(coin->symbol,"KMD") == 0 && coin->FULLNODE < 0 ) if ( strcmp(coin->symbol,"KMD") == 0 && coin->FULLNODE < 0 )
{ {
//printf("JUMBLR selector.%d modval.%d r.%d\n",selector,modval,r&7); printf("JUMBLR selector.%d modval.%d r.%d\n",selector,modval,r&7);
switch ( selector ) switch ( selector )
{ {
case 0: // public -> z, need to importprivkey case 0: // public -> z, need to importprivkey

2
iguana/main.c

@ -749,7 +749,7 @@ void iguana_urlinit(struct supernet_info *myinfo,int32_t ismainnet,int32_t usess
void jumblr_loop(void *ptr) void jumblr_loop(void *ptr)
{ {
struct iguana_info *coin; char BTCaddr[64],KMDaddr[64]; bits256 privkey; uint32_t t; struct supernet_info *myinfo = ptr; int32_t mult = 10; struct iguana_info *coin; char BTCaddr[64],KMDaddr[64]; bits256 privkey; uint32_t t; struct supernet_info *myinfo = ptr; int32_t mult = 1;
printf("JUMBLR loop\n"); printf("JUMBLR loop\n");
while ( 1 ) while ( 1 )
{ {

Loading…
Cancel
Save