Skip to content

Commit

Permalink
Check BABE key optional in changeEpoch (#1895)
Browse files Browse the repository at this point in the history
* Check key optional

---------

Co-authored-by: Dmitriy Khaustov <[email protected]>
  • Loading branch information
Harrm and xDimon authored Dec 7, 2023
1 parent 4a17b2d commit 8c40662
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/consensus/babe/impl/babe_lottery_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ namespace kagome::consensus::babe {
auto &config = *config_res.value();

keypair_ = session_keys_->getBabeKeyPair(config.authorities);
if(!keypair_) {
return false;
}

randomness_ = config.randomness;

Expand Down

0 comments on commit 8c40662

Please sign in to comment.