Skip to content

Commit

Permalink
Add a log
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Sztandera <oss@kubuxu.com>
  • Loading branch information
Kubuxu committed Jun 24, 2024
1 parent 919ae0f commit c3bc98e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions chain/lf3/f3.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ type F3Params struct {

var log = logging.Logger("f3")

func New(lc fx.Lifecycle, params F3Params) (*F3, error) {
_ = logging.SetLogLevel("f3", "DEBUG")

func New(mctx helpers.MetricsCtx, fx.Lifecycle, params F3Params) (*F3, error) {

Check failure on line 47 in chain/lf3/f3.go

View workflow job for this annotation

GitHub Actions / Check (gofmt)

mixed named and unnamed parameters

Check failure on line 47 in chain/lf3/f3.go

View workflow job for this annotation

GitHub Actions / Check (docs-check)

mixed named and unnamed parameters
manifest := f3.LocalnetManifest()
manifest.NetworkName = gpbft.NetworkName(params.NetworkName)
manifest.ECDelay = 2 * time.Duration(build.BlockDelaySecs) * time.Second
Expand All @@ -62,7 +60,7 @@ func New(lc fx.Lifecycle, params F3Params) (*F3, error) {
}
verif := blssig.VerifierWithKeyOnG1()

module, err := f3.New(context.TODO(), manifest, ds,
module, err := f3.New(mctx, manifest, ds,
params.Host, params.PubSub, verif, ec, log, nil)

if err != nil {
Expand Down Expand Up @@ -129,6 +127,7 @@ func (fff *F3) Participate(ctx context.Context, minerIDAddress uint64, errCh cha
log.Errorf("signing message: %+v", err)
return err
}
log.Infof("miner with id %d is sending message in F3", minerIDAddress)
fff.Inner.Broadcast(ctx, signatureBuilder, payloadSig, vrfSig)
return nil
}
Expand Down

0 comments on commit c3bc98e

Please sign in to comment.