-
Notifications
You must be signed in to change notification settings - Fork 324
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
Introduce bdk_core
crate
#1155
Comments
Concept ACK, the name |
I think this crate will include some logic and not just types. E.g. the I did suggest this but fwiw I am not entirely convinced it's a good idea. In retrospect I like the idea of just not depending on any |
Right now the RPC emitter must emit blocks contiguously (cannot skip blocks), because we are emitting If the emitter emits I think the ability to skip blocks is useful for block-by-block chain sources (especially with CBF). Also, if we go along with #1079 and still want to ability to specify a |
@LLFourn can you please expand on why it's not a good idea? Thanks |
I don't know that it's not a good idea I just am not convinced it is compared to other possible directions. Happy to leave this call to you if you are totally convinced that we cannot get a good API without it. |
On the one hand I hate adding yet another crate to the project, but if these types will be more or less unchanging and will be needed for the CBF client then I support it. I also think it's easier to read and talk about code with specific types like |
Important to note, the more crates we add, the slower the release process becomes. Which isn't a big deal but it's something to consider. Edit: mhh or maybe if they are all in the same workspace it's just a matter of bumping the version in the |
I agree it's not a big deal, especially if it's not a crate that changes very much. If changed it's only a couple more steps to bump the version and publish. But keep in mind we'll have to publish each updated crate on it's own so we can do it in the right order, ie. "bdk_types", "bdk_chain", then the rest. At least that's what I've been doing for the alpha releases since I don't think |
Since this is a functional change I moved it to the alpha.4 release. |
Done by #1569 |
Describe the enhancement
This will contain common types shared across bdk crates.
Use case
Better crate structure. Allows chain-source crates to be non-dependent on
bdk_chain
.Additional context
bitcoind_rpc
chain source module. #1041 (comment)The text was updated successfully, but these errors were encountered: