From 8d6ff0b76961571875ee4b3624450167601d8121 Mon Sep 17 00:00:00 2001 From: andrew Date: Mon, 25 May 2020 13:36:19 +0200 Subject: [PATCH] Post-merge fix --- eth/downloader/stagedsync_stage_execute_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/eth/downloader/stagedsync_stage_execute_test.go b/eth/downloader/stagedsync_stage_execute_test.go index 6471f3460..d10a69c09 100644 --- a/eth/downloader/stagedsync_stage_execute_test.go +++ b/eth/downloader/stagedsync_stage_execute_test.go @@ -6,14 +6,15 @@ import ( "math/big" "testing" + "github.com/holiman/uint256" + "github.com/stretchr/testify/assert" + "github.com/ledgerwatch/turbo-geth/common" "github.com/ledgerwatch/turbo-geth/common/dbutils" "github.com/ledgerwatch/turbo-geth/core" "github.com/ledgerwatch/turbo-geth/core/state" "github.com/ledgerwatch/turbo-geth/core/types/accounts" "github.com/ledgerwatch/turbo-geth/ethdb" - - "github.com/stretchr/testify/assert" ) const ( @@ -160,9 +161,8 @@ func generateBlocks(t *testing.T, numberOfBlocks uint64, stateWriterGen stateWri } blockWriter := stateWriterGen(blockNumber) - var oldValue common.Hash - var newValue common.Hash - newValue[0] = 1 + var oldValue, newValue uint256.Int + newValue.SetOne() var location common.Hash location.SetBytes(big.NewInt(int64(blockNumber)).Bytes())