From 8802b9ecf78ece11cd31bd920c8ddab80d105a4b Mon Sep 17 00:00:00 2001 From: Ljubisa Gacevic Date: Tue, 23 Dec 2025 17:35:32 +0100 Subject: [PATCH] fix(load): map postageTTL to config --- pkg/bee/client.go | 2 ++ pkg/config/check.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/bee/client.go b/pkg/bee/client.go index a43acae3..6e8fc6bc 100644 --- a/pkg/bee/client.go +++ b/pkg/bee/client.go @@ -512,6 +512,8 @@ func (c *Client) GetOrCreateMutableBatch(ctx context.Context, postageTTL time.Du c.log.Warningf("invalid chain price: %v", price) } + c.log.Debugf("calculated mutable batch: amount '%d', label '%s', price '%d', block time '%d', ttl '%s'", amount, label, price, blockTime, postageTTL) + batches, err := c.PostageBatches(ctx) if err != nil { return "", fmt.Errorf("get postage batches: %w", err) diff --git a/pkg/config/check.go b/pkg/config/check.go index 13009b50..a3844612 100644 --- a/pkg/config/check.go +++ b/pkg/config/check.go @@ -418,7 +418,7 @@ var Checks = map[string]CheckType{ checkOpts := new(struct { ContentSize *int64 `yaml:"content-size"` RndSeed *int64 `yaml:"rnd-seed"` - PostageAmount *int64 `yaml:"postage-amount"` + PostageTTL *time.Duration `yaml:"postage-ttl"` PostageDepth *uint64 `yaml:"postage-depth"` PostageLabel *string `yaml:"postage-label"` GasPrice *string `yaml:"gas-price"`