From 15280cb441fdc21bb6a48eef59e2b374c737c8cd Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 24 Mar 2018 16:22:18 +0200 Subject: [PATCH] Test --- src/komodo_bitcoind.h | 4 ++-- src/komodo_notary.h | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/komodo_bitcoind.h b/src/komodo_bitcoind.h index 6de981165..97abb9429 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -621,7 +621,7 @@ int32_t komodo_block2height(CBlock *block) //for (i=0; i<6; i++) // printf("%02x",ptr[i]); n = ptr[0]; - for (i=0; iGetBlockTime(); if ( pubkey33 == 0 ) diff --git a/src/komodo_notary.h b/src/komodo_notary.h index fb7a8f426..9a9073221 100644 --- a/src/komodo_notary.h +++ b/src/komodo_notary.h @@ -200,18 +200,16 @@ const char *Notaries_elected1[][2] = 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; - if ( timestamp == 0 && (timestamp= komodo_heightstamp(height)) == 0 ) - timestamp = (uint32_t)time(NULL) - 777; if ( height >= KOMODO_NOTARIES_HARDCODED || ASSETCHAINS_SYMBOL[0] != 0 ) { - if ( timestamp < KOMODO_NOTARIES_TIMESTAMP1 || height < KOMODO_NOTARIES_HEIGHT1 ) + if ( (timestamp != 0 && timestamp < KOMODO_NOTARIES_TIMESTAMP1) || height < KOMODO_NOTARIES_HEIGHT1 ) { n = (int32_t)(sizeof(Notaries_elected0)/sizeof(*Notaries_elected0)); for (i=0; i