Skip to content

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 = { version= "0.23", features=["use-serde"]}
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
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