-
Notifications
You must be signed in to change notification settings - Fork 44
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
Bring back getHeight() #547
Comments
Are you looking for this in one of the 1.0 alphas? |
yes. can't seem to find it there |
Yeah, it’s there but just in a different place/way because 1.0 is structured a bit differently, so I can totally understand it being hard to find at the moment. We do have it though, here is one spot I’m using it in BDKSwiftExampleWallet as of recently when I updated That’s essentially my Transaction Detail View where I’m showing a transaction and what block height it was confirmed (or if it’s unconfirmed), etc. Let me know if that’s the sort of thing you’re looking for or not, or any other thoughts/questions around it, since I definitely know things are structured differently in 1.0 and it might take a bit to get the hang of things (its really nice though!). |
@geigerzaehler242 does that resolve your issue/question or any other thoughts or follow up? |
the method previously returned the current block height of the time chain. i guess it was just doing an api call to mempoolspace? |
https://docs.rs/bdk/0.29.0/bdk/blockchain/trait.GetHeight.html#tymethod.get_height Adding a link to pre-1.0 docs method |
The current 1.0 beta doesnt have |
This is the method to expose I think:
|
@reez : Thanks. @thunderbiscuit, @reez : Can this also be added for electrum client? |
Would be happy to! Do you know exactly what method you'd want for it because when I was looking thru the available methods I wasn't seeing something close enough to the |
@reez : The get_height was (before 1.0) in the electrum client: https://github.com/bitcoindevkit/bdk/blob/213c270ab475e2afbf6863271550a537cd203c15/src/blockchain/electrum.rs#L94 Is it possible to bring it back? |
Let me ask in our Discord channel right now to try to fill in some of the details for myself- |
Per Evan:
|
@reez : Ok. I hoped there would be a bdk-native way. But thanks. |
please bring back the getHeight() method which returns block height. it was there in 0.31.1
The text was updated successfully, but these errors were encountered: