Update Wallet::fetch_mint_info #1277
No reviewers
Labels
No labels
DB & Storage
Deployment
Error Handling & Logging
Maintenance
Payment Backend
backport
backport v0.13.x
backport v0.14.x
backport v0.15.x
bindings
blocked
bug
cdk-sql
ci
cli
deps
documentation
duplicate
enhancement
good first issue
help wanted
invalid
keep-open
ldk-node-ui
migrations
mint
mutation-testing
needs rebase
needs review
new nut
nut change
question
ready
rust-version
rustfmt
stacked hold
stale
testing
wallet
weekly-report
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
cashubtc/cdk!1277
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/fetch_mint_info-with-cache"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Make
fetch_mint_infofetch the mint_info through the mint metadata cache instead of calling the Mint Connector directly.This will make sure to persist the data correctly in other instances and the database
Notes to the reviewers
Suggested CHANGELOG Updates
CHANGED
ADDED
REMOVED
FIXED
Checklist
just final-checkbefore committingRemove https://github.com/cashubtc/cdk/pull/1277/commits/da29331ea186b35e0e2ee47a7ba829a4e764429f
@ -284,72 +284,66 @@ impl Wallet {/// Query mint for current mint information#[instrument(skip(self))]pub async fn fetch_mint_info(&self) -> Result<Option<MintInfo>, Error> {We should change this name and comment. Seems like it always makes an http call which it used to but not anymore.
At one point I tried to be consistent with naming load would never make an http call, get would try to get it locally and if not make an http call, fetch would always make an http call. I don't think we strictly follow this anymore with the metadata cache though.
@ -284,72 +284,66 @@ impl Wallet {/// Query mint for current mint information#[instrument(skip(self))]pub async fn fetch_mint_info(&self) -> Result<Option<MintInfo>, Error> {But we still always go http, even now.
@ -284,72 +284,66 @@ impl Wallet {/// Query mint for current mint information#[instrument(skip(self))]pub async fn fetch_mint_info(&self) -> Result<Option<MintInfo>, Error> {Doesn't load from cache get it from there if we have it. Not a big thing anyway we can leave it.
ACK
9778bc3e31