Permalink
Browse files

Fix unlocker for new chains

  • Loading branch information...
sammy007 committed Oct 16, 2017
1 parent 1a4bd7d commit e211e6a4c0fb91dcd309bb5e843c11c5d56df561
Showing with 5 additions and 0 deletions.
  1. +5 −0 payouts/unlocker.go
View
@@ -111,6 +111,11 @@ func (u *BlockUnlocker) unlockCandidates(candidates []*storage.BlockData) (*Unlo
*/
for i := int64(minDepth * -1); i < minDepth; i++ {
height := candidate.Height + i
if height < 0 {
continue
}
block, err := u.rpc.GetBlockByHeight(height)
if err != nil {
log.Printf("Error while retrieving block %v from node: %v", height, err)

0 comments on commit e211e6a

Please sign in to comment.