-
Notifications
You must be signed in to change notification settings - Fork 31
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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"]} |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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)?; |
There was a problem hiding this comment.
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?
I built on this to make #47, could you guys perhaps review? |
Closes #39
Depends on rust-bitcoin/hammersbald#13