diff --git a/src/komodo.h b/src/komodo.h index cf3828867..25e0c515d 100644 --- a/src/komodo.h +++ b/src/komodo.h @@ -17,7 +17,7 @@ #define H_KOMODO_H // Todo: -// 0. minerids file +// 0. optimize assetchains RT loop // 1. error check fiat redeem amounts // 2. net balance limiter // 3. verify: interest payment, ratification, reorgs diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 1cda66399..6b88f8fae 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -276,7 +276,7 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above for (j=0; j<32; j++) printf("%02x",((uint8_t *)&hash)[j]); printf(" ht.%d blockhash couldnt find vout.[%d]\n",height,i); - // validate amount! + // validate amount! via fiat chain } } } @@ -288,7 +288,7 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above for (j=0; j<32; j++) printf("%02x",((uint8_t *)&txids[i-1])[j]); printf(" cant paxfind txid\n"); - // validate amount! + // validate amount! via fiat chain } else if ( opcode == 'I' ) matched++; } diff --git a/src/pow.cpp b/src/pow.cpp index acf017442..befb665bd 100644 --- a/src/pow.cpp +++ b/src/pow.cpp @@ -155,6 +155,8 @@ bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash, unsigned in } if (fNegative || bnTarget == 0 || fOverflow || bnTarget > UintToArith256(params.powLimit)) return error("CheckProofOfWork(): nBits below minimum work"); + if ( height > 70000 ) + bnTarget /= 64; // Check proof of work matches claimed amount if ( UintToArith256(hash) > bnTarget ) {