Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fundingmanager: rejects funding requests with number of confirmations too large #2275

Merged
merged 7 commits into from Jan 15, 2019
4 changes: 4 additions & 0 deletions chainntnfs/txnotifier.go
Expand Up @@ -17,6 +17,10 @@ const (
// handled correctly. The average number of blocks in a day is a
// reasonable value to use.
ReorgSafetyLimit = 144

// MaxNumConfs is the maximum number of confirmations that can be
// requested on a transaction.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: would add the rationale for setting it equal to the comment.

MaxNumConfs = ReorgSafetyLimit
wpaulino marked this conversation as resolved.
Show resolved Hide resolved
)

var (
Expand Down