mirror of
https://github.com/monero-project/monero.git
synced 2024-12-23 12:09:54 +00:00
Fixed undefined behavior in TestDB
This commit is contained in:
parent
dbf2ab56c5
commit
8dadf02c4f
1 changed files with 2 additions and 2 deletions
|
@ -117,7 +117,7 @@ public:
|
|||
blocks.push_back(blk);
|
||||
}
|
||||
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) {
|
||||
if (versions.size() <= height)
|
||||
|
@ -125,7 +125,7 @@ public:
|
|||
versions[height] = version;
|
||||
}
|
||||
virtual uint8_t get_hard_fork_version(uint64_t height) const {
|
||||
return versions[height];
|
||||
return versions.at(height);
|
||||
}
|
||||
virtual void check_hard_fork_info() {}
|
||||
|
||||
|
|
Loading…
Reference in a new issue