Browse Source

Divide by zero fix

pull/1/head
startyourday60 1 year ago committed by GitHub
parent
commit
21d729b69f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/server/shared/Gostcoin/Gostcoin.h

1
src/server/shared/Gostcoin/Gostcoin.h

@ -13,6 +13,7 @@ namespace Gostcoin @@ -13,6 +13,7 @@ namespace Gostcoin
inline BigInt TargetToDiff(BigInt val)
{
static BigInt c("0x00000000ffff0000000000000000000000000000000000000000000000000000");
if (val == 0) return c;
return (c / val);
}

Loading…
Cancel
Save