Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
added prints for minStake call
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikelle committed Apr 10, 2024
1 parent 6a73721 commit 6b5656d
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
7 changes: 0 additions & 7 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,6 @@ var (
Value: "http://localhost:8545",
})

optionL1RPCUrl = altsrc.NewStringFlag(&cli.StringFlag{
Name: "l1-rpc-url",
Usage: "rpc url of the L1 node",
EnvVars: []string{"MEV_COMMIT_L1_RPC_URL"},
})

optionNATAddr = altsrc.NewStringFlag(&cli.StringFlag{
Name: "nat-addr",
Usage: "external address of the node",
Expand Down Expand Up @@ -261,7 +255,6 @@ func main() {
optionProviderRegistryAddr,
optionPreconfStoreAddr,
optionSettlementRPCEndpoint,
optionL1RPCUrl,
optionNATAddr,
optionNATPort,
optionServerTLSCert,
Expand Down
1 change: 0 additions & 1 deletion pkg/contracts/block_tracker/block_tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,6 @@ func (btc *blockTrackerContract) PollNewL1BlockEvents(ctx context.Context, event
Topics: [][]common.Hash{{blockTrackerABI.Events["NewL1Block"].ID}},
}

// Use FilterLogs to get the logs synchronously
logs, err := btc.client.FilterLogs(ctx, query)
if err != nil {
btc.logger.Error("error filtering NewL1Block events", "error", err)
Expand Down
2 changes: 2 additions & 0 deletions pkg/contracts/provider_registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,11 @@ func (r *registryContract) GetMinStake(ctx context.Context) (*big.Int, error) {
CallData: callData,
})
if err != nil {
r.logger.Error("error calling contract", "error", err)
return nil, err
}

r.logger.Info("minStake result", "result", result)
results, err := r.registryABI.Unpack("minStake", result)
if err != nil {
r.logger.Error("error unpacking result", "error", err)
Expand Down
1 change: 1 addition & 0 deletions pkg/preconfirmation/preconfirmation.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ func (p *Preconfirmation) StartListeningToNewL1BlockEvents(ctx context.Context,
}
}()

// todo: fix this
go func() {
for {
select {
Expand Down

0 comments on commit 6b5656d

Please sign in to comment.