wallet: migrate LabelTx to db.Store - #1201
Merged
Merged
Conversation
yyforyongyu
force-pushed
the
impl-tx-writer-store
branch
from
March 30, 2026 13:22
cff5271 to
a35e9f8
Compare
yyforyongyu
force-pushed
the
adr-0006-tests
branch
from
March 30, 2026 13:59
30c7308 to
0511555
Compare
yyforyongyu
force-pushed
the
impl-tx-writer-store
branch
from
March 30, 2026 14:01
a35e9f8 to
61240bd
Compare
yyforyongyu
force-pushed
the
impl-tx-writer-store
branch
from
March 30, 2026 18:57
61240bd to
921f6d3
Compare
yyforyongyu
force-pushed
the
adr-0006-tests
branch
12 times, most recently
from
April 8, 2026 11:08
26b6bf2 to
cb27553
Compare
yyforyongyu
force-pushed
the
adr-0006-tests
branch
from
April 8, 2026 18:44
cb27553 to
2081027
Compare
yyforyongyu
force-pushed
the
adr-0006-tests
branch
4 times, most recently
from
April 9, 2026 11:36
0bf525b to
9d27699
Compare
yyforyongyu
changed the base branch from
adr-0006-tests
to
prep-address-manager-store
April 9, 2026 11:38
yyforyongyu
force-pushed
the
prep-address-manager-store
branch
from
April 9, 2026 22:06
5787eaa to
d428305
Compare
yyforyongyu
force-pushed
the
impl-tx-writer-store
branch
2 times, most recently
from
April 15, 2026 11:05
effbdde to
b4c82e8
Compare
yyforyongyu
force-pushed
the
prep-kvdb-deprecate
branch
from
April 16, 2026 05:52
db555b8 to
ed7b5a7
Compare
yyforyongyu
force-pushed
the
impl-tx-writer-store
branch
2 times, most recently
from
April 16, 2026 15:28
96021b1 to
887ce75
Compare
yyforyongyu
force-pushed
the
prep-kvdb-deprecate
branch
from
April 16, 2026 15:28
ed7b5a7 to
b7f6d46
Compare
yyforyongyu
force-pushed
the
impl-tx-writer-store
branch
from
April 16, 2026 15:49
887ce75 to
f06cd8a
Compare
yyforyongyu
force-pushed
the
prep-kvdb-deprecate
branch
from
April 16, 2026 15:49
b7f6d46 to
68863f8
Compare
yyforyongyu
force-pushed
the
impl-tx-writer-store
branch
from
April 16, 2026 16:31
f06cd8a to
189cad9
Compare
yyforyongyu
force-pushed
the
prep-kvdb-deprecate
branch
2 times, most recently
from
April 17, 2026 09:54
80b815f to
f2cf417
Compare
yyforyongyu
force-pushed
the
impl-tx-writer-store
branch
from
April 17, 2026 09:55
189cad9 to
cc3c674
Compare
yyforyongyu
force-pushed
the
prep-kvdb-deprecate
branch
from
April 17, 2026 11:17
f2cf417 to
4b2d6b8
Compare
yyforyongyu
force-pushed
the
impl-tx-writer-store
branch
2 times, most recently
from
April 17, 2026 11:27
11e361a to
993e3e5
Compare
yyforyongyu
force-pushed
the
prep-kvdb-deprecate
branch
2 times, most recently
from
April 20, 2026 10:04
be4459f to
192947a
Compare
Collaborator
Author
|
LGTM 🚀 ( |
Collaborator
Author
|
LGTM 🚀 ( |
yyforyongyu
commented
Apr 20, 2026
yyforyongyu
left a comment
Collaborator
Author
There was a problem hiding this comment.
LGTM 🏷️ (claude-opus-4-7)
yyforyongyu
commented
Apr 20, 2026
yyforyongyu
left a comment
Collaborator
Author
There was a problem hiding this comment.
LGTM ✅ (gpt-5.3-codex)
yyforyongyu
commented
Apr 20, 2026
yyforyongyu
commented
Apr 20, 2026
yyforyongyu
commented
Apr 20, 2026
yyforyongyu
left a comment
Collaborator
Author
There was a problem hiding this comment.
LGTM 🌼 (gpt-5.4)
yyforyongyu
commented
Apr 21, 2026
yyforyongyu
left a comment
Collaborator
Author
There was a problem hiding this comment.
LGTM 🌼 (gpt-5.4)
Rename the kvdb UTXO adapter files to match the store-oriented naming used by the new internal database layer. This is pure code motion with no behavior changes.
Move the touched legacy transaction helper entrypoints into wtxmgr/deprecated.go without changing their behavior or docs. This keeps the compatibility-facing wrappers separate from the canonical implementation paths.
Embed TxStore into db.Store so wallet transaction updates can move behind the transitional store boundary. Add the kvdb UpdateTx adapter and tests while preserving the legacy kvdb label validation behavior.
Route wallet LabelTx through db.Store.UpdateTx so the writer API no longer opens walletdb transactions directly. Keep the wallet-facing not-found behavior unchanged by translating store-layer db.ErrTxNotFound back to wallet.ErrTxNotFound.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
UpdateTxsupport to the transitionaldb.Storew.store.UpdateTxWhy
db.Storemakes the tx-writer migration more complete and keeps wallet code off directwalletdbaccessWhat Changed
UpdateTxsupport todb.Storew.store.UpdateTxTesting
GOWORK=off scripts/check-each-commit.sh prep-kvdb-deprecateGOWORK=off go test ./wallet/internal/db/... ./walletGOWORK=off go test ./...inwtxmgrGOWORK=off make lint-check