core: make GetHeaderHash accept uint32

It should've always been this way because block indexes are uint32.
This commit is contained in:
Roman Khimov 2022-11-18 23:19:50 +03:00
parent 16db4746cc
commit 0ad6e295ea
23 changed files with 74 additions and 81 deletions

View file

@ -304,7 +304,7 @@ func TestChainWithVolatileNumOfValidators(t *testing.T) {
},
}
curWit = nextWit
b.PrevHash = bc.GetHeaderHash(i - 1)
b.PrevHash = bc.GetHeaderHash(uint32(i) - 1)
b.Timestamp = uint64(time.Now().UTC().Unix())*1000 + uint64(i)
b.Index = uint32(i)
b.RebuildMerkleRoot()