From c27d239431b7b61a1da838a37fa4283220e8623f Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 9 Jun 2016 14:22:39 -0300 Subject: [PATCH] test --- basilisk/basilisk.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/basilisk/basilisk.c b/basilisk/basilisk.c index 9f4905612..c199b9ac1 100755 --- a/basilisk/basilisk.c +++ b/basilisk/basilisk.c @@ -907,7 +907,7 @@ void basilisks_init(struct supernet_info *myinfo) void basilisk_msgprocess(struct supernet_info *myinfo,void *addr,uint32_t senderipbits,char *type,uint32_t basilisktag,uint8_t *data,int32_t datalen,bits256 pubkey) { - cJSON *valsobj; char *symbol,*retstr=0,remoteaddr[64],CMD[4],cmd[4]; int32_t origlen,from_basilisk,i,timeoutmillis,numrequired,jsonlen; uint8_t *origdata; struct iguana_info *coin=0; + cJSON *valsobj; char *symbol,*retstr=0,remoteaddr[64],CMD[4],cmd[4]; int32_t origlen,from_basilisk,i,timeoutmillis,flag,numrequired,jsonlen; uint8_t *origdata; struct iguana_info *coin=0; static basilisk_servicefunc *basilisk_services[][2] = { { (void *)"RUN", &basilisk_respond_dispatch }, // higher level protocol handler, pass through @@ -943,6 +943,14 @@ void basilisk_msgprocess(struct supernet_info *myinfo,void *addr,uint32_t sender { (void *)"VAL", &_basilisk_value }, { (void *)"BAL", &_basilisk_balances }, }; + for (i=flag=0; i