Skip to content

Commit

Permalink
fix nil pointer deref
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazar955 committed Nov 7, 2024
1 parent 7b5bba9 commit b094ff0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions harness/btcstaker.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ func (s *BTCStaker) runForever(ctx context.Context, stakerAddress btcutil.Addres
paramsResp, err := s.client.BTCStakingParams()
if err != nil {
fmt.Printf("🚫 Err getting staking params %v\n", err)
continue
}
_ = s.buildAndSendStakingTransaction(ctx, stakerAddress, stakerPk, &paramsResp.Params)
}
Expand Down
1 change: 1 addition & 0 deletions harness/subreporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ func (s *SubReporter) waitFor2TransactionsConfirmation(
proof, err := s.buildSpvProof(txHash, txHash2, requiredDepth)
if err != nil {
fmt.Printf("🚫 Err building proof %v\n", err)
continue
}

if proof != nil {
Expand Down

0 comments on commit b094ff0

Please sign in to comment.