Comments (2)
Same problem, solved by modifying recursive function merkle_root
to while-loop
def merkle_root(lst):
sha256d = lambda x: hashlib.sha256(hashlib.sha256(x).digest()).digest()
hash_pair = lambda x, y: sha256d(x[::-1] + y[::-1])[::-1]
while len(lst) != 1:
if len(lst) % 2 == 1:
lst.append(lst[-1])
lst = [hash_pair(x,y) for x, y in zip(*[iter(lst)]*2)]
return lst[0]
Now it is a dead loop...
from blockchain-parser.
I think it is because the dat fil corrupted or you trying to parse any altcoin without some tricks
from blockchain-parser.
Related Issues (19)
- . HOT 2
- Need Tx Details, too. HOT 2
- Hitting crashes HOT 7
- Bug in read_varint HOT 2
- .
- Syntax error in file name, folder name, or volume label HOT 1
- Could it parse out the specific details of the transaction HOT 7
- Unconfirmed script HOT 1
- get list of all adresses on bitcoin block chain HOT 10
- SyntaxError: invalid syntax in line 22 HOT 2
- How to find reused r value from btc tx HOT 3
- TX HOT 3
- Enchancement Request for additional information. HOT 1
- MemoryError after first block is parsed HOT 5
- crashes on first block HOT 1
- AttributeError: 'bytes' object has no attribute 'encode' HOT 2
- Need Tx Details HOT 2
- Extracting main chain from all the Data HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blockchain-parser.