diff --git a/cmd/freezer-refrigerant/tokenomics.go b/cmd/freezer-refrigerant/tokenomics.go index 382ba75..f2d672c 100644 --- a/cmd/freezer-refrigerant/tokenomics.go +++ b/cmd/freezer-refrigerant/tokenomics.go @@ -46,6 +46,9 @@ func (s *service) InitializeMiningBoostUpgrade( //nolint:gocritic // False negat ctx context.Context, req *server.Request[InitializeMiningBoostUpgradeRequestBody, tokenomics.PendingMiningBoostUpgrade], ) (*server.Response[tokenomics.PendingMiningBoostUpgrade], *server.Response[server.ErrorResponse]) { + if true { + return nil, server.Forbidden(errors.New("functionality temporarily disabled")) + } resp, err := s.tokenomicsProcessor.InitializeMiningBoostUpgrade(ctx, *req.Data.MiningBoostLevelIndex, req.Data.UserID) if err = errors.Wrapf(err, "failed to InitializeMiningBoostUpgrade for data:%#v", req.Data); err != nil { switch { @@ -83,6 +86,9 @@ func (s *service) FinalizeMiningBoostUpgrade( //nolint:gocritic // False negativ ctx context.Context, req *server.Request[FinalizeMiningBoostUpgradeRequestBody, tokenomics.PendingMiningBoostUpgrade], ) (*server.Response[tokenomics.PendingMiningBoostUpgrade], *server.Response[server.ErrorResponse]) { + if true { + return nil, server.Forbidden(errors.New("functionality temporarily disabled")) + } resp, err := s.tokenomicsProcessor.FinalizeMiningBoostUpgrade(ctx, req.Data.Network, req.Data.TXHash, req.Data.UserID) if err = errors.Wrapf(err, "failed to FinalizeMiningBoostUpgrade for data:%#v", req.Data); err != nil { switch { diff --git a/go.mod b/go.mod index 05bb5e6..c328839 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,7 @@ require ( github.com/ethereum/go-ethereum v1.14.5 github.com/goccy/go-json v0.10.3 github.com/hashicorp/go-multierror v1.1.1 - github.com/ice-blockchain/eskimo v1.330.0 + github.com/ice-blockchain/eskimo v1.331.0 github.com/ice-blockchain/go-tarantool-client v0.0.0-20230327200757-4fc71fa3f7bb github.com/ice-blockchain/wintr v1.142.0 github.com/imroc/req/v3 v3.43.7 diff --git a/go.sum b/go.sum index 8b5a531..08715f3 100644 --- a/go.sum +++ b/go.sum @@ -300,8 +300,8 @@ github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpO github.com/huin/goupnp v1.3.0 h1:UvLUlWDNpoUdYzb2TCn+MuTWtcjXKSza2n6CBdQ0xXc= github.com/huin/goupnp v1.3.0/go.mod h1:gnGPsThkYa7bFi/KWmEysQRf48l2dvR5bxr2OFckNX8= github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= -github.com/ice-blockchain/eskimo v1.330.0 h1:/z7qvILM9yLrkokxybKsmHZeEopw9wZ5j378edOa0rs= -github.com/ice-blockchain/eskimo v1.330.0/go.mod h1:CF4FDXk//H8/UGcaH2FYYacJ6BO2LIK5BjceHuA1TNE= +github.com/ice-blockchain/eskimo v1.331.0 h1:9Bo+ZqbtLmsN28Y78NJcaC6Z65X5ZMD3+gvWsEBuSW4= +github.com/ice-blockchain/eskimo v1.331.0/go.mod h1:CF4FDXk//H8/UGcaH2FYYacJ6BO2LIK5BjceHuA1TNE= github.com/ice-blockchain/go-tarantool-client v0.0.0-20230327200757-4fc71fa3f7bb h1:8TnFP3mc7O+tc44kv2e0/TpZKnEVUaKH+UstwfBwRkk= github.com/ice-blockchain/go-tarantool-client v0.0.0-20230327200757-4fc71fa3f7bb/go.mod h1:ZsQU7i3mxhgBBu43Oev7WPFbIjP4TniN/b1UPNGbrq8= github.com/ice-blockchain/wintr v1.142.0 h1:pojlgGyNsbcMh3Hv8v0tD7ahsekneYyeU4UZs5tINnw=