Browse Source

Add range check on height extracted from coinbase script

remove_0mq
Jack Grigg 5 years ago
committed by George Tankersley
parent
commit
722118ade9
  1. 3
      parser/block.go

3
parser/block.go

@ -70,6 +70,9 @@ func (b *block) GetHeight() int {
return -1
}
// uint32 should last us a while (Nov 2018)
if heightNum > int64(^uint32(0)) {
return -1
}
blockHeight := uint32(heightNum)
if blockHeight == genesisTargetDifficulty {

Loading…
Cancel
Save