mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-01 16:41:39 +01:00
rpcserver: fix wrong unit used in PushAmountSat
This commit is contained in:
@@ -4085,9 +4085,11 @@ func createRPCOpenChannel(r *rpcServer, dbChannel *channeldb.OpenChannel,
|
||||
// is the push amount. Otherwise, our starting balance is the push
|
||||
// amount. If there is no push amount, these values will simply be zero.
|
||||
if dbChannel.IsInitiator {
|
||||
channel.PushAmountSat = uint64(dbChannel.InitialRemoteBalance)
|
||||
amt := dbChannel.InitialRemoteBalance.ToSatoshis()
|
||||
channel.PushAmountSat = uint64(amt)
|
||||
} else {
|
||||
channel.PushAmountSat = uint64(dbChannel.InitialLocalBalance)
|
||||
amt := dbChannel.InitialLocalBalance.ToSatoshis()
|
||||
channel.PushAmountSat = uint64(amt)
|
||||
}
|
||||
|
||||
if len(dbChannel.LocalShutdownScript) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user