bunch of changes

This commit is contained in:
Michel van Kessel
2020-12-28 14:22:16 +01:00
parent 8beac1bfc4
commit 03c45256e3
69 changed files with 674 additions and 623 deletions

View File

@@ -244,17 +244,17 @@ uint32_t arith_uint256::GetCompact(bool fNegative) const
return nCompact;
}
uint256 ArithToUint256(const arith_uint256 &a)
uint256 ArithToUint256(const arith_uint256& a)
{
uint256 b;
for(int x=0; x<a.WIDTH; ++x)
WriteLE32(b.begin() + x*4, a.pn[x]);
for (int x = 0; x < a.WIDTH; ++x)
WriteLE32(b.begin() + x * 4, a.pn[x]);
return b;
}
arith_uint256 UintToArith256(const uint256 &a)
arith_uint256 UintToArith256(const uint256& a)
{
arith_uint256 b;
for(int x=0; x<b.WIDTH; ++x)
b.pn[x] = ReadLE32(a.begin() + x*4);
for (int x = 0; x < b.WIDTH; ++x)
b.pn[x] = ReadLE32(a.begin() + x * 4);
return b;
}