Skip to content

Commit

Permalink
refactor: remove unnecessary logic after soc rc redesign
Browse files Browse the repository at this point in the history
  • Loading branch information
nugaon committed Sep 27, 2023
1 parent 5b737de commit ce53233
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
5 changes: 0 additions & 5 deletions pkg/storer/sample.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ce53233

Please sign in to comment.