mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-12 14:12:27 +02:00
htlcswitch: use kvdb.View for loading fwdpkgs
Not necessary to open a write tx.
This commit is contained in:
@ -326,7 +326,7 @@ type SettleFailAcker interface {
|
||||
type GlobalFwdPkgReader interface {
|
||||
// LoadChannelFwdPkgs loads all known forwarding packages for the given
|
||||
// channel.
|
||||
LoadChannelFwdPkgs(tx kvdb.RwTx,
|
||||
LoadChannelFwdPkgs(tx kvdb.RTx,
|
||||
source lnwire.ShortChannelID) ([]*FwdPkg, error)
|
||||
}
|
||||
|
||||
@ -364,7 +364,7 @@ func (*SwitchPackager) AckSettleFails(tx kvdb.RwTx,
|
||||
}
|
||||
|
||||
// LoadChannelFwdPkgs loads all forwarding packages for a particular channel.
|
||||
func (*SwitchPackager) LoadChannelFwdPkgs(tx kvdb.RwTx,
|
||||
func (*SwitchPackager) LoadChannelFwdPkgs(tx kvdb.RTx,
|
||||
source lnwire.ShortChannelID) ([]*FwdPkg, error) {
|
||||
|
||||
return loadChannelFwdPkgs(tx, source)
|
||||
|
Reference in New Issue
Block a user