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

chore: fix some typos #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions glightning/lightning.go
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,7 @@ func (l *Lightning) DecodeBolt11(bolt11 string) (*DecodedBolt11, error) {

// Decode the {bolt11}, using the provided 'description' if necessary.*
//
// * This is only necesary if the bolt11 includes a description hash.
// * This is only necessary if the bolt11 includes a description hash.
// The provided description must match the included hash.
func (l *Lightning) DecodePay(bolt11, desc string) (*DecodedBolt11, error) {
if bolt11 == "" {
Expand Down Expand Up @@ -1352,8 +1352,8 @@ func (l *Lightning) SendPayLite(route []RouteHop, paymentHash string) (*SendPayR
// payment value. If not specified, it will be the final amount to the
// destination (specified in route). If specified, then the final amount
// at the destination must be from the specified 'msat' to twice that
// value, inclusive. This is inteded to obscure payments by overpaying
// slightly at the destination -- the acutal target paymnt is what
// value, inclusive. This is intended to obscure payments by overpaying
// slightly at the destination -- the actual target paymnt is what
// should be specified as the 'msat' argument.
//
// Once a payment has succeeded, calls to 'SendPay' with the same
Expand Down Expand Up @@ -1523,7 +1523,7 @@ func (l *Lightning) Pay(req *PayRequest) (*PaymentSuccess, error) {
return nil, fmt.Errorf("Must supply a Bolt11 to pay")
}
if req.RiskFactor < 0 {
return nil, fmt.Errorf("Risk factor must be postiive %f", req.RiskFactor)
return nil, fmt.Errorf("Risk factor must be positive %f", req.RiskFactor)
}
if req.MaxFeePercent < 0 || req.MaxFeePercent > 100 {
return nil, fmt.Errorf("MaxFeePercent must be a percentage. %f", req.MaxFeePercent)
Expand Down