Test
This commit is contained in:
@@ -200,12 +200,8 @@ const char *Notaries_elected1[][2] =
|
|||||||
int32_t komodo_notaries(uint8_t pubkeys[64][33],int32_t height,uint32_t timestamp)
|
int32_t komodo_notaries(uint8_t pubkeys[64][33],int32_t height,uint32_t timestamp)
|
||||||
{
|
{
|
||||||
int32_t i,htind,n; uint64_t mask = 0; struct knotary_entry *kp,*tmp;
|
int32_t i,htind,n; uint64_t mask = 0; struct knotary_entry *kp,*tmp;
|
||||||
if ( timestamp == 0 )
|
if ( timestamp == 0 && (timestamp= komodo_heightstamp(height)) == 0 )
|
||||||
{
|
timestamp = (uint32_t)time(NULL) - 777;
|
||||||
CBlockIndex *pblockindex = chainActive[height];
|
|
||||||
if ( pblockindex != 0 )
|
|
||||||
timestamp = pblockindex->GetBlockTime();
|
|
||||||
}
|
|
||||||
if ( height >= KOMODO_NOTARIES_HARDCODED || ASSETCHAINS_SYMBOL[0] != 0 )
|
if ( height >= KOMODO_NOTARIES_HARDCODED || ASSETCHAINS_SYMBOL[0] != 0 )
|
||||||
{
|
{
|
||||||
if ( timestamp < KOMODO_NOTARIES_TIMESTAMP1 || height < KOMODO_NOTARIES_HEIGHT1 )
|
if ( timestamp < KOMODO_NOTARIES_TIMESTAMP1 || height < KOMODO_NOTARIES_HEIGHT1 )
|
||||||
|
|||||||
Reference in New Issue
Block a user