Co-authored-by: Ori Newman <orinewman1@gmail.com>
This commit is contained in:
D-Stacks 2022-05-25 09:17:58 +02:00 committed by GitHub
parent cd5fd86ad3
commit a4d9fa10bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,14 +34,14 @@ func TestLowestChainBlockAboveOrEqualToBlueScore(t *testing.T) {
}
}
checkBlueScore := func(blockHash *externalapi.DomainHash, expectedBlueScoe uint64) {
checkBlueScore := func(blockHash *externalapi.DomainHash, expectedBlueScore uint64) {
ghostdagData, err := tc.GHOSTDAGDataStore().Get(tc.DatabaseContext(), stagingArea, blockHash, false)
if err != nil {
t.Fatalf("GHOSTDAGDataStore().Get: %+v", err)
}
if ghostdagData.BlueScore() != expectedBlueScoe {
t.Fatalf("Expected blue score %d but got %d", expectedBlueScoe, ghostdagData.BlueScore())
if ghostdagData.BlueScore() != expectedBlueScore {
t.Fatalf("Expected blue score %d but got %d", expectedBlueScore, ghostdagData.BlueScore())
}
}