Comments (2)
It may be the version problem of python. In python3, bytes to hex string is not longer be bytes.encode('hex'). Python3 has a more convenient way, such as bytes.hex(). You can see more detail in https://stackoverflow.com/questions/6624453/whats-the-correct-way-to-convert-bytes-to-a-hex-string-in-python-3 . As for your question, you can try to replace all b=b.encode('hex').upper()
to b=b.hex().upper() if you are using python3. In addition, if you see another problem "str" object has no attribute 'decode', you can use bytes.fromhex(your_bytes).
from blockchain-parser.
I make some changes, and now script working with Python 3.8 or higher. It seems that newer version of Python produces more fast parsing and that's why script now compatible with highest versions of Python interpreter without support of oldest.
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
- maximum recursion depth exceeded HOT 2
- MemoryError after first block is parsed HOT 5
- crashes on first block HOT 1
- 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.