@@ -416,9 +416,9 @@ int32_t komodo_voutupdate(int32_t *isratificationp,int32_t notaryid,uint8_t *scr
|
|||||||
}
|
}
|
||||||
if ( opretlen > len && scriptbuf[len] == 'A' )
|
if ( opretlen > len && scriptbuf[len] == 'A' )
|
||||||
{
|
{
|
||||||
for (i=0; i<opretlen-len; i++)
|
//for (i=0; i<opretlen-len; i++)
|
||||||
printf("%02x",scriptbuf[len+i]);
|
// printf("%02x",scriptbuf[len+i]);
|
||||||
printf(" Found extradata.[%d] %d - %d\n",opretlen-len,opretlen,len);
|
//printf(" Found extradata.[%d] %d - %d\n",opretlen-len,opretlen,len);
|
||||||
komodo_stateupdate(height,0,0,0,txhash,0,0,0,0,0,0,value,&scriptbuf[len],opretlen-len+4+3+(scriptbuf[1] == 0x4d),j);
|
komodo_stateupdate(height,0,0,0,txhash,0,0,0,0,0,0,value,&scriptbuf[len],opretlen-len+4+3+(scriptbuf[1] == 0x4d),j);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -599,19 +599,19 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above
|
|||||||
memset(otherheights,0,sizeof(otherheights));
|
memset(otherheights,0,sizeof(otherheights));
|
||||||
n = block.vtx[0].vout.size();
|
n = block.vtx[0].vout.size();
|
||||||
script = (uint8_t *)block.vtx[0].vout[n-1].scriptPubKey.data();
|
script = (uint8_t *)block.vtx[0].vout[n-1].scriptPubKey.data();
|
||||||
//fprintf(stderr,"ht.%d n.%d nValue %.8f\n",height,n,dstr(block.vtx[0].vout[1].nValue));
|
|
||||||
if ( KOMODO_PAX == 0 || komodo_isrealtime(&ht) == 0 || KOMODO_PASSPORT_INITDONE == 0 )
|
|
||||||
return(0);
|
|
||||||
if ( n <= 2 || script[0] != 0x6a )
|
if ( n <= 2 || script[0] != 0x6a )
|
||||||
{
|
{
|
||||||
if ( n == 2 && block.vtx[0].vout[1].nValue != 0 )
|
if ( n == 2 && block.vtx[0].vout[1].nValue != 0 )
|
||||||
{
|
{
|
||||||
fprintf(stderr,"ht.%d illegal nonz output %.8f n.%d\n",height,dstr(block.vtx[0].vout[1].nValue),n);
|
fprintf(stderr,">>>>>>>> <<<<<<<<<< ht.%d illegal nonz output %.8f n.%d\n",height,dstr(block.vtx[0].vout[1].nValue),n);
|
||||||
if ( height > 236000 )
|
if ( height > 236000 )
|
||||||
return(-1);
|
return(-1);
|
||||||
}
|
}
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
//fprintf(stderr,"ht.%d n.%d nValue %.8f (%d %d %d)\n",height,n,dstr(block.vtx[0].vout[1].nValue),KOMODO_PAX,komodo_isrealtime(&ht),KOMODO_PASSPORT_INITDONE);
|
||||||
|
if ( komodo_isrealtime(&ht) == 0 || KOMODO_PASSPORT_INITDONE == 0 ) //KOMODO_PAX == 0 ||
|
||||||
|
return(0);
|
||||||
offset += komodo_scriptitemlen(&opretlen,&script[offset]);
|
offset += komodo_scriptitemlen(&opretlen,&script[offset]);
|
||||||
if ( ASSETCHAINS_SYMBOL[0] == 0 )
|
if ( ASSETCHAINS_SYMBOL[0] == 0 )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user