From ce532338169dbbd478a8eaca86bc2be9e5339042 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Levente=20T=C3=B3th?= Date: Wed, 27 Sep 2023 17:04:08 +0200 Subject: [PATCH] refactor: remove unnecessary logic after soc rc redesign --- pkg/storageincentives/redistribution/redistribution_test.go | 1 - pkg/storer/sample.go | 5 ----- 2 files changed, 6 deletions(-) diff --git a/pkg/storageincentives/redistribution/redistribution_test.go b/pkg/storageincentives/redistribution/redistribution_test.go index 1d94f0a1609..943d3013ba4 100644 --- a/pkg/storageincentives/redistribution/redistribution_test.go +++ b/pkg/storageincentives/redistribution/redistribution_test.go @@ -28,7 +28,6 @@ import ( var redistributionContractABI = abiutil.MustParseABI(chaincfg.Testnet.RedistributionABI) -// TODO uncomment when ABI is updated func randChunkInclusionProof(t *testing.T) redistribution.ChunkInclusionProof { t.Helper() diff --git a/pkg/storer/sample.go b/pkg/storer/sample.go index f48efad246c..7a37fb62e99 100644 --- a/pkg/storer/sample.go +++ b/pkg/storer/sample.go @@ -17,7 +17,6 @@ import ( "time" "github.com/ethersphere/bee/pkg/bmt" - "github.com/ethersphere/bee/pkg/cac" "github.com/ethersphere/bee/pkg/postage" "github.com/ethersphere/bee/pkg/soc" chunk "github.com/ethersphere/bee/pkg/storage/testing" @@ -293,10 +292,6 @@ func (db *DB) ReserveSample( // ensuring to pass the check order function of redistribution contract if index := contains(item.TransformedAddress); index != -1 { - // TODO change back to SOC - if cac.Valid(ch) { - continue - } // replace the chunk at index sampleItems[index] = item continue