Merge pull request #8961 from yyforyongyu/fix-leaseoutput
Improve the performace of `LeaseOutput`
This commit is contained in:
20 files changed
+100
-87
No files matched your search
@@ -43,9 +43,9 @@ func (w *WalletController) BackEnd() string {
|
||||
return "mock"
|
||||
}
|
||||
|
||||
// FetchInputInfo will be called to get info about the inputs to the funding
|
||||
// FetchOutpointInfo will be called to get info about the inputs to the funding
|
||||
// transaction.
|
||||
func (w *WalletController) FetchInputInfo(
|
||||
func (w *WalletController) FetchOutpointInfo(
|
||||
prevOut *wire.OutPoint) (*lnwallet.Utxo, error) {
|
||||
|
||||
utxo := &lnwallet.Utxo{
|
||||
@@ -195,9 +195,9 @@ func (w *WalletController) ListTransactionDetails(int32, int32,
|
||||
|
||||
// LeaseOutput returns the current time and a nil error.
|
||||
func (w *WalletController) LeaseOutput(wtxmgr.LockID, wire.OutPoint,
|
||||
time.Duration) (time.Time, []byte, btcutil.Amount, error) {
|
||||
time.Duration) (time.Time, error) {
|
||||
|
||||
return time.Now(), nil, 0, nil
|
||||
return time.Now(), nil
|
||||
}
|
||||
|
||||
// ReleaseOutput currently does nothing.
|
||||
@@ -292,3 +292,11 @@ func (w *WalletController) RemoveDescendants(*wire.MsgTx) error {
|
||||
func (w *WalletController) CheckMempoolAcceptance(tx *wire.MsgTx) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// FetchDerivationInfo queries for the wallet's knowledge of the passed
|
||||
// pkScript and constructs the derivation info and returns it.
|
||||
func (w *WalletController) FetchDerivationInfo(
|
||||
pkScript []byte) (*psbt.Bip32Derivation, error) {
|
||||
|
||||
return nil, nil
|
||||
}
|
||||
Reference in new issue
Block a user