mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-11 02:42:52 +02:00
multi: increase max funding and payment amount 60x under Litecoin
This commit is contained in:
22
rpcserver.go
22
rpcserver.go
@@ -39,7 +39,23 @@ import (
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
const (
|
||||
// maxBtcPaymentMSat is the maximum allowed Bitcoin payment currently
|
||||
// permitted as defined in BOLT-0002.
|
||||
maxBtcPaymentMSat = lnwire.MilliSatoshi(math.MaxUint32)
|
||||
|
||||
// maxLtcPaymentMSat is the maximum allowed Litecoin payment currently
|
||||
// permitted.
|
||||
maxLtcPaymentMSat = lnwire.MilliSatoshi(math.MaxUint32) *
|
||||
btcToLtcConversionRate
|
||||
)
|
||||
|
||||
var (
|
||||
// maxPaymentMSat is the maximum allowed payment currently permitted as
|
||||
// defined in BOLT-002. This value depends on which chain is active.
|
||||
// It is set to the value under the Bitcoin chain as default.
|
||||
maxPaymentMSat = maxBtcPaymentMSat
|
||||
|
||||
defaultAccount uint32 = waddrmgr.DefaultAccountNum
|
||||
|
||||
// readPermissions is a slice of all entities that allow read
|
||||
@@ -300,12 +316,6 @@ var (
|
||||
}
|
||||
)
|
||||
|
||||
const (
|
||||
// maxPaymentMSat is the maximum allowed payment permitted currently as
|
||||
// defined in BOLT-0002.
|
||||
maxPaymentMSat = lnwire.MilliSatoshi(math.MaxUint32)
|
||||
)
|
||||
|
||||
// rpcServer is a gRPC, RPC front end to the lnd daemon.
|
||||
// TODO(roasbeef): pagination support for the list-style calls
|
||||
type rpcServer struct {
|
||||
|
Reference in New Issue
Block a user