Test
This commit is contained in:
@@ -694,6 +694,13 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above
|
|||||||
offset += komodo_scriptitemlen(&opretlen,&script[offset]);
|
offset += komodo_scriptitemlen(&opretlen,&script[offset]);
|
||||||
if ( ASSETCHAINS_SYMBOL[0] == 0 )
|
if ( ASSETCHAINS_SYMBOL[0] == 0 )
|
||||||
{
|
{
|
||||||
|
extern int32_t KOMODO_REWIND;
|
||||||
|
if ( KOMODO_REWIND < 0 )
|
||||||
|
{
|
||||||
|
fprintf(stderr,"rewind.%d\n",KOMODO_REWIND);
|
||||||
|
sleep(3);
|
||||||
|
KOMODO_REWIND = 0;
|
||||||
|
}
|
||||||
for (i=0; i<opretlen; i++)
|
for (i=0; i<opretlen; i++)
|
||||||
printf("%02x",script[i]);
|
printf("%02x",script[i]);
|
||||||
printf(" height.%d checkdeposit n.%d [%02x] [%c] %d vs %d\n",height,n,script[0],script[offset],script[offset],'X');
|
printf(" height.%d checkdeposit n.%d [%02x] [%c] %d vs %d\n",height,n,script[0],script[offset],script[offset],'X');
|
||||||
|
|||||||
16
src/main.cpp
16
src/main.cpp
@@ -2768,22 +2768,6 @@ static bool ActivateBestChainStep(CValidationState &state, CBlockIndex *pindexMo
|
|||||||
if (!DisconnectTip(state))
|
if (!DisconnectTip(state))
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
extern int32_t KOMODO_REWIND;
|
|
||||||
if ( KOMODO_REWIND < 0 )
|
|
||||||
{
|
|
||||||
fprintf(stderr,"chaintip %d vs rewind.%d\n",(int32_t)chainActive.Tip()->nHeight,KOMODO_REWIND);
|
|
||||||
int32_t i;
|
|
||||||
for (i=0; i<-KOMODO_REWIND; i++)
|
|
||||||
{
|
|
||||||
if ( !DisconnectTip(state) )
|
|
||||||
{
|
|
||||||
//InvalidateBlock(state,chainActive.Tip());
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
sleep(3);
|
|
||||||
KOMODO_REWIND = 0;
|
|
||||||
}
|
|
||||||
/*if ( KOMODO_REWIND != 0 && chainActive.Tip()->nHeight >= KOMODO_REWIND )
|
/*if ( KOMODO_REWIND != 0 && chainActive.Tip()->nHeight >= KOMODO_REWIND )
|
||||||
{
|
{
|
||||||
fprintf(stderr,"rewind ht.%d\n",chainActive.Tip()->nHeight);
|
fprintf(stderr,"rewind ht.%d\n",chainActive.Tip()->nHeight);
|
||||||
|
|||||||
Reference in New Issue
Block a user