Skip to content

Commit 4fb8c9b

Browse files
fix(load): map postageTTL to config (#554)
1 parent 9ec5ed1 commit 4fb8c9b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pkg/bee/client.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,8 @@ func (c *Client) GetOrCreateMutableBatch(ctx context.Context, postageTTL time.Du
512512
c.log.Warningf("invalid chain price: %v", price)
513513
}
514514

515+
c.log.Debugf("calculated mutable batch: amount '%d', label '%s', price '%d', block time '%d', ttl '%s'", amount, label, price, blockTime, postageTTL)
516+
515517
batches, err := c.PostageBatches(ctx)
516518
if err != nil {
517519
return "", fmt.Errorf("get postage batches: %w", err)

pkg/config/check.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ var Checks = map[string]CheckType{
418418
checkOpts := new(struct {
419419
ContentSize *int64 `yaml:"content-size"`
420420
RndSeed *int64 `yaml:"rnd-seed"`
421-
PostageAmount *int64 `yaml:"postage-amount"`
421+
PostageTTL *time.Duration `yaml:"postage-ttl"`
422422
PostageDepth *uint64 `yaml:"postage-depth"`
423423
PostageLabel *string `yaml:"postage-label"`
424424
GasPrice *string `yaml:"gas-price"`

0 commit comments

Comments
 (0)