aboutsummaryrefslogtreecommitdiff
path: root/src/script/script.cpp
diff options
context:
space:
mode:
authorPeter Todd <[email protected]>2015-07-20 04:43:34 +0900
committerPieter Wuille <[email protected]>2015-07-27 18:38:49 +0200
commitd2d7ee0e863b286e1c9f9c54659d494fb0a7712d (patch)
treeb955db39fbb776cb59777a1ac171b4cd842496ec /src/script/script.cpp
parentReuse vector hashing code for uint256 (diff)
downloaddiscoin-d2d7ee0e863b286e1c9f9c54659d494fb0a7712d.tar.xz
discoin-d2d7ee0e863b286e1c9f9c54659d494fb0a7712d.zip
Make CRollingBloomFilter set nTweak for you
While CBloomFilter is usually used with an explicitly set nTweak, CRollingBloomFilter is only used internally. Requiring every caller to set nTweak is error-prone and redundant; better to have the class handle that for you with a high-quality randomness source. Additionally when clearing the filter it makes sense to change nTweak as well to recover from a bad setting, e.g. due to insufficient randomness at initialization, so the clear() method is replaced by a reset() method that sets a new, random, nTweak value.
Diffstat (limited to 'src/script/script.cpp')
0 files changed, 0 insertions, 0 deletions