diff --git a/src/server/shared/Gostcoin/Gostcoin.h b/src/server/shared/Gostcoin/Gostcoin.h index 7b187e2..1cf0e4f 100644 --- a/src/server/shared/Gostcoin/Gostcoin.h +++ b/src/server/shared/Gostcoin/Gostcoin.h @@ -13,6 +13,7 @@ namespace Gostcoin inline BigInt TargetToDiff(BigInt val) { static BigInt c("0x00000000ffff0000000000000000000000000000000000000000000000000000"); + if (val == 0) return c; return (c / val); }