This commit is contained in:
jl777
2016-11-18 10:49:31 -03:00
parent 067486c482
commit 37e7db0873
2 changed files with 4 additions and 0 deletions

View File

@@ -150,7 +150,10 @@ void komodo_notarysinit(int32_t origheight,uint8_t pubkeys[64][33],int32_t num)
for (i=htind; i<KOMODO_MAXBLOCKS / KOMODO_ELECTION_GAP; i++) for (i=htind; i<KOMODO_MAXBLOCKS / KOMODO_ELECTION_GAP; i++)
{ {
if ( Pubkeys[i].height != 0 && height < hwmheight ) if ( Pubkeys[i].height != 0 && height < hwmheight )
{
printf("Pubkeys[%d].height %d < %d hwmheight, i.%d\n",i,Pubkeys[i].height,hwmheight);
break; break;
}
Pubkeys[i] = N; Pubkeys[i] = N;
Pubkeys[i].height = i * KOMODO_ELECTION_GAP; Pubkeys[i].height = i * KOMODO_ELECTION_GAP;
} }

View File

@@ -431,6 +431,7 @@ Value notaries(const Array& params, bool fHelp)
} }
} }
ret.push_back(Pair("notaries", a)); ret.push_back(Pair("notaries", a));
ret.push_back(Pair("numnotaries", n));
} }
return ret; return ret;
} }