From 8c37d63a0f083ae66b753a9e3c4781f4d8ec2a9e Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 7 Aug 2019 04:27:47 -1100 Subject: [PATCH] min() --- src/pow.cpp | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/src/pow.cpp b/src/pow.cpp index f925a7b30..60818ec64 100644 --- a/src/pow.cpp +++ b/src/pow.cpp @@ -111,18 +111,31 @@ arith_uint256 RT_CST_RST_outer(int32_t height,uint32_t nTime,arith_uint256 bnTar return(bnTarget); } +arith_uint256 RT_CST_RST_target(int32_t height,uint32_t nTime,arith_uint256 bnTarget,uint32_t *ts,arith_uint256 *ct,int32_t width) +{ + int32_t i; int64_t innerK; + bnTarget = ct[0]; + for (i=1; i