Skip to content

Commit

Permalink
Merge branch 'eager_electron_5.0RC' into mainnet_5.0RC
Browse files Browse the repository at this point in the history
  • Loading branch information
echoby committed May 28, 2020
2 parents 5c8befa + 30e5cc6 commit c47244c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wallet/laser/mediator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -972,6 +972,7 @@ bool Mediator::IsChannelExpired(const std::unique_ptr<Channel>& channel)
{
Block::SystemState::Full tip;
get_History().get_Tip(tip);
if (!channel->m_pOpen->m_hOpened) return false;
return tip.m_Height >= channel->get_LockHeight() + channel->m_Params.m_hLockTime + channel->m_Params.m_hPostLockReserve;
}

Expand Down

0 comments on commit c47244c

Please sign in to comment.