Skip to content

Commit

Permalink
lock height expired message fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
echoby committed May 28, 2020
1 parent 6a0a90a commit 30e5cc6
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 30e5cc6

Please sign in to comment.