Skip to content
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

Upgrade bitcoin version and remove lightning #40

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

jrawsthorne
Copy link
Contributor

Closes #39

Depends on rust-bitcoin/hammersbald#13

Copy link
Contributor

@erasmospunk erasmospunk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM apart the API change.

bitcoin_hashes = "0.7"
hammersbald = { version= "2.4", features=["bitcoin_support"]}
hammersbald = { git= "https://github.com/jrawsthorne/hammersbald.git", branch="upgrade-bitcoin", features=["bitcoin_support"]}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should change once the upgrade-bitcoin branch is merged in the hammersbald repo.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I'll change it when that gets merged. Wanted to make sure tests passed

src/chaindb.rs Outdated
@@ -103,7 +102,7 @@ impl ChainDB {
let genesis = genesis_block(self.network).header;
if let Some((cached, _, _)) = self.headercache.add_header(&genesis)? {
info!("initialized with genesis header {}", genesis.bitcoin_hash());
self.db.put_hash_keyed(&cached.stored)?;
self.db.put_hash_keyed(&cached.bitcoin_hash().as_hash(), &cached.stored)?;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we preserve the API here?

@stevenroose
Copy link
Collaborator

I built on this to make #47, could you guys perhaps review?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update bitcoin dependency
3 participants