Skip to content

Commit

Permalink
Merge pull request btcsuite#50 from gcash/certerror
Browse files Browse the repository at this point in the history
Fix cert error in payment protocol test
  • Loading branch information
cpacia authored Oct 19, 2019
2 parents 7d73168 + 09368e0 commit 717b66f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pymtproto/paymentprotocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ func (c *PaymentProtocolClient) DownloadBip0070PaymentRequest(uri string) (*Paym
opts := x509.VerifyOptions{
Roots: roots,
}
if c.skipExpirationChecks {
opts.CurrentTime = certs[0].NotAfter.Add(-time.Minute)
}
if _, err := certs[0].Verify(opts); err != nil {
return nil, err
}
Expand Down

0 comments on commit 717b66f

Please sign in to comment.