Skip to content
This repository was archived by the owner on Feb 15, 2024. It is now read-only.

Update to work with python-bitcoinlib 0.7.0 #19

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

Conversation

str4d
Copy link

@str4d str4d commented Dec 6, 2016

Also fixes a few bugs.

end_height = height + 500
if end_height > top_height:
end_height = top_height

msg = msg_inv()
while height <= end_height:
hash = long(self.chaindb.height[str(height)])
hash = self.chaindb.getblockhash(height)
Copy link
Author

Choose a reason for hiding this comment

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

I'm unsure what the intended behaviour was here, because previously self.chaindb.height[str(height)] could have returned a list of block hashes. For now, the new method defaults to the first hash.

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

Successfully merging this pull request may close these issues.

1 participant