rpc: Add missing BlockUntilSyncedToCurrentChain to wallet RPCs #20583
pull MarcoFalke wants to merge 1 commits into bitcoin:master from MarcoFalke:2012-walletSync changing 3 files +15 −5-
MarcoFalke commented at 6:54 pm on December 6, 2020: memberWallet RPCs that allow a rescan based on block-timestamp or block-height need to sync with the active chain first, because the user might assume the wallet is up-to-date with the latest block they got reported via a blockchain RPC.
-
DrahtBot added the label RPC/REST/ZMQ on Dec 6, 2020
-
DrahtBot added the label Wallet on Dec 6, 2020
-
luke-jr commented at 9:37 pm on December 13, 2020: memberWouldn’t it make more sense to do this conditional on that particular use case?
-
luke-jr commented at 9:44 pm on December 13, 2020: memberActually, when would this matter at all? If the wallet is on a stale chain, the process of reorganising should do the rescan for the user anyway?
-
MarcoFalke commented at 7:44 am on December 14, 2020: member
Actually, when would this matter at all?
When you pass in the height or time of a block in the active chain that the wallet hasn’t yet caught up with. For example, the active chain is at height=100, the wallet at height=90. A user specifies a range to rescan=[95,100], which wouldn’t succeed.
-
DrahtBot commented at 1:47 pm on March 2, 2021: member
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Conflicts
Reviewers, this pull request conflicts with the following ones:
- #23667 (Split up rpcwallet by meshcollider)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
-
DrahtBot added the label Needs rebase on Mar 10, 2021
-
MarcoFalke force-pushed on Mar 10, 2021
-
DrahtBot removed the label Needs rebase on Mar 10, 2021
-
DrahtBot added the label Needs rebase on Dec 3, 2021
-
MarcoFalke force-pushed on Dec 3, 2021
-
rpc: Add missing BlockUntilSyncedToCurrentChain to wallet RPCs
Wallet RPCs that allow a rescan based on block-timestamp or block-height need to sync with the active chain first, because the user might assume the wallet is up-to-date with the latest block they got reported via a blockchain RPC.
-
MarcoFalke force-pushed on Dec 3, 2021
-
DrahtBot removed the label Needs rebase on Dec 3, 2021
-
meshcollider commented at 1:31 am on December 6, 2021: contributorutACK fa5362a9a0c5665c1a4de51c3ce4758c93a9449e
-
MarcoFalke merged this on Dec 7, 2021
-
MarcoFalke closed this on Dec 7, 2021
-
MarcoFalke deleted the branch on Dec 7, 2021
-
fanquake deleted a comment on Dec 7, 2021
-
sidhujag referenced this in commit 95a368276b on Dec 7, 2021
-
RandyMcMillan referenced this in commit 8635ad5990 on Dec 23, 2021
-
DrahtBot locked this on Dec 7, 2022
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-18 15:12 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-18 15:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me