aboutsummaryrefslogtreecommitdiff
path: root/src/uint256.h
diff options
context:
space:
mode:
authorAndrew Chow <[email protected]>2019-12-30 14:05:27 -0500
committerAndrew Chow <[email protected]>2020-01-23 16:35:08 -0500
commit4977c30d59e88a3e5ee248144bcc023debcd895b (patch)
treeffd93cc643f1f5ac0f0255a9da6f3e1c9a202fbf /src/uint256.h
parentHD Split: Avoid redundant upgrades (diff)
downloaddiscoin-4977c30d59e88a3e5ee248144bcc023debcd895b.tar.xz
discoin-4977c30d59e88a3e5ee248144bcc023debcd895b.zip
refactor: define a UINT256_ONE global constant
Instead of having a uint256 representations of one scattered throughout where it is used, define it globally in uint256.h
Diffstat (limited to 'src/uint256.h')
-rw-r--r--src/uint256.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/uint256.h b/src/uint256.h
index ff0b74e11..b36598f57 100644
--- a/src/uint256.h
+++ b/src/uint256.h
@@ -144,4 +144,6 @@ inline uint256 uint256S(const std::string& str)
return rv;
}
+uint256& UINT256_ONE();
+
#endif // BITCOIN_UINT256_H