From 13fc473fbb04dd0dce3dc5ad7f900056c31bf993 Mon Sep 17 00:00:00 2001 From: istae <14264581+istae@users.noreply.github.com> Date: Wed, 23 Oct 2024 19:29:16 +0300 Subject: [PATCH] fix: various swip21 fixes (#4874) --- pkg/node/node.go | 10 ++++------ pkg/storageincentives/agent.go | 3 ++- pkg/storer/reserve.go | 4 ++++ 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/pkg/node/node.go b/pkg/node/node.go index 37500cb2a37..6db098c78b6 100644 --- a/pkg/node/node.go +++ b/pkg/node/node.go @@ -1031,12 +1031,10 @@ func NewBee( logger.Info("updated new reserve capacity doubling height in the staking contract", "transaction", tx, "new_height", o.ReserveCapacityDoubling) } - if o.ReserveCapacityDoubling > 0 { - // Check if the staked amount is sufficient to cover the additional neighborhoods. - // The staked amount must be at least 2^h * MinimumStake. - if stake.Cmp(big.NewInt(0).Mul(big.NewInt(1< 0 && stake.Cmp(big.NewInt(0).Mul(big.NewInt(1<