rnicoll / python-altcoinlib Goto Github PK
View Code? Open in Web Editor NEWWrapper around Python-bitcoinlib to add altcoin support
License: Other
Wrapper around Python-bitcoinlib to add altcoin support
License: Other
Like this.
API was changed by petertodd/python-bitcoinlib@1b4f678#diff-af20226fc2cc2862805b65c0d59b8e9b
$ python -m unittest discover
E...
======================================================================
ERROR: test_deserializedogecoinblock (altcoin.tests.test_core.Test_CAltcoinBlockHeader)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/core/git/python-altcoinlib/altcoin/tests/test_core.py", line 64, in test_deserializedogecoinblock
self.assertEqual(lx('f02560999734fa4cab1c3cbd2212458ec95f355eb7843ef4f1e9aa76fbec85a8'), block_dogecoin_884490.vtx[11].GetHash())
File "/home/core/.local/lib/python2.7/site-packages/bitcoin/core/__init__.py", line 363, in GetHash
raise AttributeError("CTransaction.GetHash() has been removed; use GetTxid() instead")
AttributeError: CTransaction.GetHash() has been removed; use GetTxid() instead
----------------------------------------------------------------------
Ran 4 tests in 0.002s
FAILED (errors=1)
After parsing some blocks some CScripts seem to contain truncated data erros like <ERROR: PUSHDATA2: truncated data>
eg printing block 884490
CAltcoinBlock(6422786, lx(8bb6225bda07ff9bfc65c563678d2558a25f7b3bc4edbf14ae720eb48dc0d540), lx(1b1d5cb0406dff3110e9154990475ed193d939d4bb85226999c1b9128ec731b0), 1442788081, 0x1b04dc69, 0x00000000, CAuxPow((CTxIn(COutPoint(), CScript([x('450c0d'), x('f232ff55'), x('034271e85b0d0900'), OP_SMALLINTEGER, CScriptOp(0xbe), OP_2DROP, OP_2DROP, CScriptOp(0xf7), CScriptOp(0xe7), x('43ccff490afaa4695ae8a0eab15ecd8ff02af7d9a0fb07a424961a40000000000000000d2f6e6f64655374726174756d2f')...<ERROR: PUSHDATA2: truncated data>]), 0x0),),
[...]
0x9142E5F7E533CE3B has just one sig; where would I know to get a correct copy of it?
Having said that +โ for signing the code in the first place; I'm mostly opening this issue to give you kudo's for that. :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.