From af484891141de188d52ecc7d43792db4c5bac622 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 22 Mar 2017 14:22:31 +0200 Subject: [PATCH] Remove prints --- src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index a12d88994..2233faed8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -714,8 +714,10 @@ int32_t komodo_validate_interest(const CTransaction& tx) locktime = komodo_interest_args(&txheight,&prevblocktime,&value,tx.GetHash(),0); if ( prevblocktime == 0 ) { + static uint32_t counter0; prevblocktime = chainActive.Tip()->nTime; - fprintf(stderr,"error getting prevblocktime, set to tiptime.%u\n",prevblocktime); + if ( counter0++ < 100 ) + fprintf(stderr,"error getting prevblocktime, set to tiptime.%u\n",prevblocktime); } if ( (int64_t)tx.nLockTime < prevblocktime-3600 ) {