mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 10:37:37 -07:00
Merge pull request #5391
71907980
unit_tests: fix long term block weight test after cache change (moneromooo-monero)
This commit is contained in:
commit
c34930c207
@ -76,6 +76,11 @@ public:
|
|||||||
while (count-- && start_height < blocks.size()) ret.push_back(blocks[start_height++].long_term_weight);
|
while (count-- && start_height < blocks.size()) ret.push_back(blocks[start_height++].long_term_weight);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
virtual crypto::hash get_block_hash_from_height(const uint64_t &height) const override {
|
||||||
|
crypto::hash hash = crypto::null_hash;
|
||||||
|
*(uint64_t*)&hash = height;
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
virtual crypto::hash top_block_hash(uint64_t *block_height = NULL) const override {
|
virtual crypto::hash top_block_hash(uint64_t *block_height = NULL) const override {
|
||||||
uint64_t h = height();
|
uint64_t h = height();
|
||||||
crypto::hash top = crypto::null_hash;
|
crypto::hash top = crypto::null_hash;
|
||||||
|
Loading…
Reference in New Issue
Block a user