config: add option to disable incoming push amounts in OpenChannel
This is useful for merchant-side prevention of accidental pushes during channel opening.
This commit is contained in:
1 parent
61e8677419
commit
2c9a039845
3 files changed
+18
No files matched your search
@@ -78,6 +78,13 @@ func ErrChanReserveTooLarge(reserve,
|
||||
}
|
||||
}
|
||||
|
||||
// ErrNonZeroPushAmount is returned by a remote peer that receives a
|
||||
// FundingOpen request for a channel with non-zero push amount while
|
||||
// they have 'rejectpush' enabled.
|
||||
func ErrNonZeroPushAmount() ReservationError {
|
||||
return ReservationError{errors.New("Non-zero push amounts are disabled")}
|
||||
}
|
||||
|
||||
// ErrMinHtlcTooLarge returns an error indicating that the MinHTLC value the
|
||||
// remote required is too large to be accepted.
|
||||
func ErrMinHtlcTooLarge(minHtlc,
|
||||
|
||||
Reference in new issue
Block a user