core: make GetHeaderHash accept uint32
It should've always been this way because block indexes are uint32.
This commit is contained in:
parent
16db4746cc
commit
0ad6e295ea
23 changed files with 74 additions and 81 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue