From 332210bcceaa4f2fee4184e29ed8ae9cfe6e08e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Levente=20T=C3=B3th?= Date: Tue, 30 Apr 2024 12:21:25 +0200 Subject: [PATCH] feat: make wrong samplehash --- pkg/storageincentives/agent.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/storageincentives/agent.go b/pkg/storageincentives/agent.go index b71a77c3dff..5a25d0f1d79 100644 --- a/pkg/storageincentives/agent.go +++ b/pkg/storageincentives/agent.go @@ -464,10 +464,14 @@ func (a *Agent) makeSample(ctx context.Context, storageRadius uint8) (SampleData return SampleData{}, err } + falseSampleHash := sampleHash.Bytes() + falseSampleHash[0] += 1 + falseSampleAddress := swarm.NewAddress(falseSampleHash) + sample := SampleData{ Anchor1: salt, ReserveSampleItems: rSample.Items, - ReserveSampleHash: sampleHash, + ReserveSampleHash: falseSampleAddress, StorageRadius: storageRadius, }