Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the performace of LeaseOutput #8961

Merged
merged 9 commits into from
Aug 21, 2024

Commits on Aug 9, 2024

  1. Configuration menu
    Copy the full SHA
    8f35612 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9801ee0 View commit details
    Browse the repository at this point in the history
  3. lnrpc+lnwallet: replace FetchInputInfo with new methods

    This commit replaces the usage of `FetchInputInfo` with
    `FetchOutpointInfo` and `FetchDerivationInfo` to remove unncessary
    fetching of the derivation path.
    yyforyongyu committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    aba8507 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d7381ce View commit details
    Browse the repository at this point in the history
  5. lntest+lnwallet: remove the method FetchInputInfo

    This method is no longer used. In addition, the `Derivation` field on
    the `Utxo` is also removed to avoid nil dereference.
    yyforyongyu committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    b17db4a View commit details
    Browse the repository at this point in the history
  6. lnrpc: fetch utxo info in lockInputs

    This commit prepares the following commit where we change the
    `LeaseOutput` to be more efficient.
    yyforyongyu committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    f70c919 View commit details
    Browse the repository at this point in the history
  7. mulit: remove ListLeasedOutputs in LeaseOutput

    This commit removes the call toe `ListLeasedOutputs` in `LeaseOutput` -
    the returned info from `ListLeasedOutputs` can easily be accessed via
    `FetchInputInfo` and this info is only used at one callsite.
    `ListLeasedOutputs` then becomes unnecessary here, plus it's very slow
    and needs to be refactored in `btcwallet` instead.
    yyforyongyu committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    3e36adf View commit details
    Browse the repository at this point in the history
  8. itest: remove redundant call to ht.WaitForBlockchainSync

    This check has already been done when mining blocks.
    yyforyongyu committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    8259e0f View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    363e529 View commit details
    Browse the repository at this point in the history