From 1b41a6b4452fc3a12976f1a2dd436e3924577779 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Sun, 31 Mar 2024 15:11:24 +0200 Subject: [PATCH] rbdeal: fix extend push --- rbdeal/claim_extender.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rbdeal/claim_extender.go b/rbdeal/claim_extender.go index 6587b4b..034093f 100644 --- a/rbdeal/claim_extender.go +++ b/rbdeal/claim_extender.go @@ -156,7 +156,7 @@ func (r *ribs) claimExtendCycle(ctx context.Context) error { m := &types.Message{ To: verifreg2.Address, - From: clientAddr, + From: clkey, Method: verifreg2.Methods.ExtendClaimTerms, Params: enc, Value: types.NewInt(0), @@ -191,7 +191,7 @@ func (r *ribs) claimExtendCycle(ctx context.Context) error { return nil, err } - fmt.Printf("(claim ext) Estimate: %d Exts GasLimit=%d (%02d%% blk lim), GasFeeCap=%s, GasPremium=%s, Fee=%s\n", len(params.Terms), + fmt.Printf("(claim ext) Message: %d Exts GasLimit=%d (%02d%% blk lim), GasFeeCap=%s, GasPremium=%s, Fee=%s\n", len(params.Terms), m.GasLimit, m.GasLimit*100/build.BlockGasLimit, m.GasFeeCap, m.GasPremium, types.FIL(m.RequiredFunds())) totalGas += m.GasLimit @@ -212,7 +212,7 @@ func (r *ribs) claimExtendCycle(ctx context.Context) error { c, aerr := chain.MpoolPush(ctx, sm) if aerr != nil { - return nil, aerr + return nil, xerrors.Errorf("push: %w", aerr) } fmt.Printf("(claim ext) Pushed EXTEND message: %s\n", c)