Merge #11160: Improve versionbits_computeblockversion test code consistency
commitede386c2193fc31351e193b3a8cf30030d6be62c
authorMarcoFalke <falke.marco@gmail.com>
Sun, 27 Aug 2017 22:23:32 +0000 (27 18:23 -0400)
committerMarcoFalke <falke.marco@gmail.com>
Sun, 27 Aug 2017 22:23:41 +0000 (27 18:23 -0400)
tree8688e92b8977d56b32baec0c45aac00977a57f2e
parenta084767b40c0d3ba8fa8f8d60f1e8d99a9dc3457
parent946638d0a0884b0edcf866ea8aa2f7ffd15062b0
Merge #11160: Improve versionbits_computeblockversion test code consistency

946638d0a Improve versionbits_computeblockversion test code consistency (danra)

Pull request description:

  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.

Tree-SHA512: f17cf1d29fd7097d53c0135d6357ee50943bd81b5ce0be785a37b85d34b5127cd6cc17ef844b519e19c33f2d96f7ababee643b9fba7afb031f444b2cfaeedbfd