mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 19:33:28 +01:00
Merge pull request #1371
8dadf02
Fixed undefined behavior in TestDB (Lee Clagett)
This commit is contained in:
commit
4248d5131c
@ -117,7 +117,7 @@ public:
|
|||||||
blocks.push_back(blk);
|
blocks.push_back(blk);
|
||||||
}
|
}
|
||||||
virtual block get_block_from_height(const uint64_t& height) const {
|
virtual block get_block_from_height(const uint64_t& height) const {
|
||||||
return blocks[height];
|
return blocks.at(height);
|
||||||
}
|
}
|
||||||
virtual void set_hard_fork_version(uint64_t height, uint8_t version) {
|
virtual void set_hard_fork_version(uint64_t height, uint8_t version) {
|
||||||
if (versions.size() <= height)
|
if (versions.size() <= height)
|
||||||
@ -125,7 +125,7 @@ public:
|
|||||||
versions[height] = version;
|
versions[height] = version;
|
||||||
}
|
}
|
||||||
virtual uint8_t get_hard_fork_version(uint64_t height) const {
|
virtual uint8_t get_hard_fork_version(uint64_t height) const {
|
||||||
return versions[height];
|
return versions.at(height);
|
||||||
}
|
}
|
||||||
virtual void check_hard_fork_info() {}
|
virtual void check_hard_fork_info() {}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user