mirror of
https://github.com/monero-project/monero.git
synced 2025-05-06 12:54:57 -04:00
Fixes segfault in Blockchain::handle_alternative_block
This commit should fix the segfault in Blockchain::handle_alternative_block, and also updates a few comments that were either incorrect or incomplete.
This commit is contained in:
parent
5086ca1db5
commit
14555eefd5
2 changed files with 12 additions and 6 deletions
|
@ -84,6 +84,10 @@ namespace cryptonote
|
|||
return check_block(height, h, ignored);
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
// this basically says if the blockchain is smaller than the first
|
||||
// checkpoint then alternate blocks are allowed. Alternatively, if the
|
||||
// last checkpoint *before* the end of the current chain is also before
|
||||
// the block to be added, then this is fine.
|
||||
bool checkpoints::is_alternative_block_allowed(uint64_t blockchain_height, uint64_t block_height) const
|
||||
{
|
||||
if (0 == block_height)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue