lnd: fix unconvert warnings
This commit is contained in:
1 parent
f2843dd4c9
commit
143a6e01bb
10 files changed
+18
-18
No files matched your search
@@ -400,7 +400,7 @@ func (c *OpenChannel) UpdateCommitment(newCommitment *wire.MsgTx,
|
||||
c.OurCommitSig = newSig
|
||||
c.OurBalance = delta.LocalBalance
|
||||
c.TheirBalance = delta.RemoteBalance
|
||||
c.NumUpdates = uint64(delta.UpdateNum)
|
||||
c.NumUpdates = delta.UpdateNum
|
||||
c.Htlcs = delta.Htlcs
|
||||
|
||||
// First we'll write out the current latest dynamic channel
|
||||
@@ -1137,13 +1137,13 @@ func putChanAmountsTransferred(openChanBucket *bolt.Bucket, channel *OpenChannel
|
||||
copy(keyPrefix[3:], b.Bytes())
|
||||
|
||||
copy(keyPrefix[:3], satSentPrefix)
|
||||
byteOrder.PutUint64(scratch1, uint64(channel.TotalSatoshisSent))
|
||||
byteOrder.PutUint64(scratch1, channel.TotalSatoshisSent)
|
||||
if err := openChanBucket.Put(keyPrefix, scratch1); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
copy(keyPrefix[:3], satReceivedPrefix)
|
||||
byteOrder.PutUint64(scratch2, uint64(channel.TotalSatoshisReceived))
|
||||
byteOrder.PutUint64(scratch2, channel.TotalSatoshisReceived)
|
||||
return openChanBucket.Put(keyPrefix, scratch2)
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -583,7 +583,7 @@ func (c *ChannelGraph) PruneGraph(spentOutputs []*wire.OutPoint,
|
||||
// current UTXO state.
|
||||
var newTip [pruneTipBytes]byte
|
||||
copy(newTip[:], blockHash[:])
|
||||
byteOrder.PutUint32(newTip[32:], uint32(blockHeight))
|
||||
byteOrder.PutUint32(newTip[32:], blockHeight)
|
||||
|
||||
return metaBucket.Put(pruneTipKey, newTip[:])
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user