aboutsummaryrefslogtreecommitdiff
path: root/uint256.h
diff options
context:
space:
mode:
authors_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-06-10 23:10:30 +0000
committers_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-06-10 23:10:30 +0000
commitf93d5f9ffe1e12079e560a735111735924726a06 (patch)
tree0a34330f01acf1a2cd18f5a9f8c36ec29216a3e8 /uint256.h
parent2ca17588327858947590fda78d68cfad79e633bc (diff)
downloadbitcoin-f93d5f9ffe1e12079e560a735111735924726a06.tar.xz
automatically change displayed address whenever it receives anything,v0.2.10
added help and -? for daemon command line rpc commands, only relay addr messages to 5 random nodes to save bandwidth, started setting wtx.fFromMe flag, trickle out tx inventory messages to protect privacy -- version 0.2.10 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@81 1a98c847-1fd6-4fd8-948a-caf3550aa51b
Diffstat (limited to 'uint256.h')
-rw-r--r--uint256.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/uint256.h b/uint256.h
index 6976d9dc00..e6a4eeeb8d 100644
--- a/uint256.h
+++ b/uint256.h
@@ -388,7 +388,6 @@ typedef base_uint<256> base_uint256;
//
// uint160 and uint256 could be implemented as templates, but to keep
// compile errors and debugging cleaner, they're copy and pasted.
-// It's safe to search and replace 160 with 256 and vice versa.
//
@@ -405,6 +404,8 @@ public:
uint160()
{
+ for (int i = 0; i < WIDTH; i++)
+ pn[i] = 0;
}
uint160(const basetype& b)
@@ -517,6 +518,8 @@ public:
uint256()
{
+ for (int i = 0; i < WIDTH; i++)
+ pn[i] = 0;
}
uint256(const basetype& b)