vbuterin / pybitcointools

SImple, common-sense Bitcoin-themed Python ECC library
1.28k stars 856 forks source link

pushtx error #189

Open quinnoaj opened 6 years ago

quinnoaj commented 6 years ago

after constructing my code to push a transaction in to the network

I run pushtx(txt)

then I got this error:

Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.7/site-packages/bitcoin-1.1.42-py2.7.egg/bitcoin/bci.py", line 311, in pushtx return f(*args) File "/usr/local/lib/python2.7/site-packages/bitcoin-1.1.42-py2.7.egg/bitcoin/bci.py", line 261, in bci_pushtx if not re.match('^[0-9a-fA-F]*$', tx): File "/usr/local/lib/python2.7/re.py", line 141, in match return _compile(pattern, flags).match(string) TypeError: expected string or buffer

Could it be there are problems with the serialize values? By the way may private key is in base58(51 characters) format is it related with the error?

primal100 commented 6 years ago

What type is mktx or mksend returning? In pytthon 2, mktx uses join so it should return a string.