diff options
author | danra <danra@users.noreply.github.com> | 2017-08-26 15:12:00 +0300 |
---|---|---|
committer | Dan Raviv <dan@soundradix.com> | 2017-08-28 00:03:18 +0300 |
commit | 946638d0a0884b0edcf866ea8aa2f7ffd15062b0 (patch) | |
tree | 304c942858e5b70f3a18163bdf71292673029fb3 /src/test/prevector_tests.cpp | |
parent | 7fd49d01dc2ea444ba4d81d0cfa17486b03c8515 (diff) |
Improve versionbits_computeblockversion test code consistency
In this test, `nTime` is used for all the calls to `Mine()`, each time being set to the correct time beforehand, except for in the last few calls to `Mine()` where `nStartTime` is used directly, even though `nTime` is still set to `nStartTime` beforehand. `nTime` just remains unused for these last few calls to `Mine()`.
Changed the last few calls to `Mine()` to use `nTime` instead, improving consistency. This also fixes an unused value static analyzer warning about `nTime` being set to a value which is never used.
Diffstat (limited to 'src/test/prevector_tests.cpp')
0 files changed, 0 insertions, 0 deletions