Skip to content

Commit

Permalink
test: reader missing client
Browse files Browse the repository at this point in the history
  • Loading branch information
hopeyen committed Dec 13, 2024
1 parent 5a8683b commit b14e672
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions disperser/cmd/apiserver/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ func RunDisperserServer(ctx *cli.Context) error {
UpdateInterval: time.Duration(config.UpdateInterval) * time.Second,
}

logger.Info("Creating onchain payment state")
blockNumber, err := transactor.GetCurrentBlockNumber(context.Background())
if err != nil {
return fmt.Errorf("failed to get current block number: %w", err)
}
logger.Info("current block number", "block", blockNumber)
paymentChainState, err := mt.NewOnchainPaymentState(context.Background(), transactor)
if err != nil {
return fmt.Errorf("failed to create onchain payment state: %w", err)
Expand Down

0 comments on commit b14e672

Please sign in to comment.