jl777 8 years ago
parent
commit
848eaabd79
  1. 1
      README.md
  2. 6
      iguana/iguana_notary.c
  3. 3
      iguana/iguana_sign.c

1
README.md

@ -158,6 +158,7 @@ the idea is to issue a curl command into a /tmp/file and then use jsoncmp to ver
##### ../agents/iguana notary
0.Have iguana installed at http://wiki.supernet.org/wiki/How_To_Install_Iguana_on_Linux
also install nanomsg: sudo apt-get install libnanomsg-dev
cd Supernet/iguana -->

6
iguana/iguana_notary.c

@ -13,8 +13,6 @@
* *
******************************************************************************/
// bugs: construct finaltx, src vs dest messages, rotating myind position
// Todo list:
// a) updating latest notarized height based on the notarized tx data
// b) prevent overwriting blocks below notarized height
@ -896,8 +894,8 @@ void dpow_datahandler(struct supernet_info *myinfo,struct dpow_block *bp,uint32_
ep->siglens[dsig.lastk] = dsig.siglen;
memcpy(ep->sigs[dsig.lastk],dsig.sig,dsig.siglen);
ep->beacon = dsig.beacon;
for (j=0; j<dsig.siglen; j++)
printf("%02x",dsig.sig[j]);
//for (j=0; j<dsig.siglen; j++)
// printf("%02x",dsig.sig[j]);
printf(" <<<<<<<< %s from.%d got lastk.%d %llx siglen.%d >>>>>>>>>\n",bp->coin->symbol,dsig.senderind,dsig.lastk,(long long)dsig.mask,dsig.siglen);
mask = dpow_maskmin(ep->recvmask,bp,&lastk);
if ( (mask & bp->recvmask) == mask )

3
iguana/iguana_sign.c

@ -292,11 +292,12 @@ int32_t iguana_parsevinobj(struct supernet_info *myinfo,struct iguana_info *coin
// continue;
if ( serialized[len + m + siglen - 1] == SIGHASH_ALL )
memcpy(V->signers[i++].sig,&serialized[len + m],siglen);
if ( 0 )
{
int32_t j;
for (j=0; j<siglen; j++)
printf("%02x",serialized[len + m + j]);
printf(" (%d)\n",siglen);
printf(" (%d) parsedvin\n",siglen);
}
m += siglen;
i++;

Loading…
Cancel
Save