consensus: replace magic 1000000 with something more meaningful
This commit is contained in:
parent
579630a3fa
commit
a43e374ac6
9 changed files with 17 additions and 14 deletions
|
@ -63,7 +63,7 @@ func TestService_GetVerified(t *testing.T) {
|
|||
p.SetPayload(&prepareRequest{transactionHashes: hashes})
|
||||
} else {
|
||||
p.SetType(payload.ChangeViewType)
|
||||
p.SetPayload(&changeView{newViewNumber: 1, timestamp: uint64(time.Now().UnixNano() / 1000000)})
|
||||
p.SetPayload(&changeView{newViewNumber: 1, timestamp: uint64(time.Now().UnixNano() / nsInMs)})
|
||||
}
|
||||
p.SetHeight(1)
|
||||
p.SetValidatorIndex(uint16(i))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue