Skip to content

Commit

Permalink
remove usages of uncle in accessors_chain_test
Browse files Browse the repository at this point in the history
  • Loading branch information
denniswon committed Apr 6, 2020
1 parent d12c329 commit 01ba54b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/rawdb/accessors_chain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,7 @@ func TestBlockStorage(t *testing.T) {
if entry := ReadBody(db, block.Hash(), block.NumberU64()); entry == nil {
t.Fatalf("Stored body not found")
} else if types.DeriveSha(types.Transactions(entry.Transactions())) != types.DeriveSha(block.Transactions()) ||
types.DeriveSha(staking.StakingTransactions(entry.StakingTransactions())) != types.DeriveSha(block.StakingTransactions()) ||
types.CalcUncleHash(entry.Uncles()) != types.CalcUncleHash(block.Uncles()) {
types.DeriveSha(staking.StakingTransactions(entry.StakingTransactions())) != types.DeriveSha(block.StakingTransactions()) {
t.Fatalf("Retrieved body mismatch: have %v, want %v", entry, block.Body())
}
//if actual, err := ReadEpochBlockNumber(db, big.NewInt(0)); err != nil {
Expand Down

0 comments on commit 01ba54b

Please sign in to comment.