jl777 8 years ago
parent
commit
13551b5148
  1. 6
      basilisk/basilisk_MSG.c
  2. 2
      iguana/iguana_notary.c

6
basilisk/basilisk_MSG.c

@ -216,9 +216,9 @@ char *basilisk_respond_addmessage(struct supernet_info *myinfo,uint8_t *key,int3
msg->expiration = (uint32_t)time(NULL) + duration; msg->expiration = (uint32_t)time(NULL) + duration;
HASH_ADD_KEYPTR(hh,myinfo->messagetable,msg->key,msg->keylen,msg); HASH_ADD_KEYPTR(hh,myinfo->messagetable,msg->key,msg->keylen,msg);
QUEUEITEMS++; QUEUEITEMS++;
int32_t i; for (i=0; i<BASILISK_KEYSIZE; i++) //int32_t i; for (i=0; i<BASILISK_KEYSIZE; i++)
printf("%02x",key[i]); // printf("%02x",key[i]);
printf(" <- ADDMSG.[%d] exp %u %p (%p %p)\n",QUEUEITEMS,msg->expiration,msg,msg->hh.next,msg->hh.prev); //printf(" <- ADDMSG.[%d] exp %u %p (%p %p)\n",QUEUEITEMS,msg->expiration,msg,msg->hh.next,msg->hh.prev);
portable_mutex_unlock(&myinfo->messagemutex); portable_mutex_unlock(&myinfo->messagemutex);
if ( myinfo->NOTARY.RELAYID >= 0 ) if ( myinfo->NOTARY.RELAYID >= 0 )
dpow_handler(myinfo,msg); dpow_handler(myinfo,msg);

2
iguana/iguana_notary.c

@ -953,7 +953,7 @@ uint32_t dpow_statemachineiterate(struct supernet_info *myinfo,struct dpow_info
} }
break; break;
case 2: case 2:
if ( (retarray= basilisk_channelget(myinfo,srchash,bp->hashmsg,channel,bp->height,1)) != 0 ) if ( (retarray= basilisk_channelget(myinfo,zero,zero,channel,bp->height,1)) != 0 )
{ {
printf("UTXOget.(%s)\n",jprint(retarray,0)); printf("UTXOget.(%s)\n",jprint(retarray,0));
free_json(retarray); free_json(retarray);

Loading…
Cancel
Save