BitcoinArmory icon indicating copy to clipboard operation
BitcoinArmory copied to clipboard

Problem reading txs from blockchain

Open alfetopito opened this issue 10 years ago • 1 comments

Hey there,

I'm using armoryd.py on latest devel branch 8948474b0e5d9cf846b2dcb0cfe631549620557c. Was using an older version of 0.91-dev but I decided to update since an issue appeared. Didn't work, so I'm trying what seems to be the most updated version.

The issue is, the latest transactions I have on my wallet are giving me this error:

armorycpp.txt

-ERROR - 1405097421: (BlockUtils.cpp:5808) Requested txref not on main chain (BH dupID is diff)

armorylog.txt

2014-07-11 18:50 (ERROR) -- Decorators.py:89 - An error occurred in listtransactions
2014-07-11 18:50 (ERROR) -- Decorators.py:90 - Error Type = 'AttributeError'
2014-07-11 18:50 (ERROR) -- Decorators.py:91 - Error Value = ''NoneType' object has no attribute 'isInitialized''
2014-07-11 18:50 (ERROR) -- Decorators.py:102 - Error File = '.pyenv/versions/2.7.5/lib/python2.7/site-packages/twisted/internet/defer.py'
2014-07-11 18:50 (ERROR) -- Decorators.py:103 - Error Line Number = '139'
2014-07-11 18:50 (ERROR) -- Decorators.py:102 - Error File = 'armory/txjsonrpc/web/jsonrpc.py'
2014-07-11 18:50 (ERROR) -- Decorators.py:103 - Error Line Number = '110'
2014-07-11 18:50 (ERROR) -- Decorators.py:102 - Error File = '.pyenv/versions/2.7.5/lib/python2.7/site-packages/twisted/web/_auth/wrapper.py'
2014-07-11 18:50 (ERROR) -- Decorators.py:103 - Error Line Number = '190'
2014-07-11 18:50 (ERROR) -- Decorators.py:102 - Error File = '.pyenv/versions/2.7.5/lib/python2.7/site-packages/twisted/web/server.py'
2014-07-11 18:50 (ERROR) -- Decorators.py:103 - Error Line Number = '238'
2014-07-11 18:50 (ERROR) -- Decorators.py:102 - Error File = '.pyenv/versions/2.7.5/lib/python2.7/site-packages/twisted/web/util.py'
2014-07-11 18:50 (ERROR) -- Decorators.py:103 - Error Line Number = '131'
2014-07-11 18:50 (ERROR) -- Decorators.py:102 - Error File = '.pyenv/versions/2.7.5/lib/python2.7/site-packages/twisted/internet/defer.py'
2014-07-11 18:50 (ERROR) -- Decorators.py:103 - Error Line Number = '577'
2014-07-11 18:50 (ERROR) -- Decorators.py:102 - Error File = '.pyenv/versions/2.7.5/lib/python2.7/site-packages/twisted/internet/defer.py'
2014-07-11 18:50 (ERROR) -- Decorators.py:103 - Error Line Number = '295'
2014-07-11 18:50 (ERROR) -- Decorators.py:102 - Error File = '.pyenv/versions/2.7.5/lib/python2.7/site-packages/twisted/internet/defer.py'
2014-07-11 18:50 (ERROR) -- Decorators.py:103 - Error Line Number = '306'
2014-07-11 18:50 (ERROR) -- Decorators.py:102 - Error File = '.pyenv/versions/2.7.5/lib/python2.7/site-packages/twisted/web/util.py'
2014-07-11 18:50 (ERROR) -- Decorators.py:103 - Error Line Number = '125'
2014-07-11 18:50 (ERROR) -- Decorators.py:102 - Error File = '.pyenv/versions/2.7.5/lib/python2.7/site-packages/twisted/web/server.py'
2014-07-11 18:50 (ERROR) -- Decorators.py:103 - Error Line Number = '238'
2014-07-11 18:50 (ERROR) -- Decorators.py:108 - Trace stopped so as to not overwhelm the logs

I wonder why, because I can see the transactions just fine with armoryqt (0.91.1-beta), but on devel it fails like above, and 0.91-dev simply gives me a jsonrpc error.

Any clues on this?

alfetopito avatar Jul 11 '14 17:07 alfetopito

Well, I can't say that I've found the best solution, but at least I can get the other transactions skipping the one that failed, instead of just getting an error for the whole query:

https://github.com/alfetopito/BitcoinArmory/commit/816c1d1d1420e05ef3481e73e948f4bc61c583a0

But the issue somehow remains. I don't know what is wrong with the failure transaction since it appears fine on my ArmoryQt.

This is the transaction armoryd can't recognize:

https://blockchain.info/tx/77ce660146d2d9a13b2642bb8788097dcf3bfcf80f857a003e2a121075937136

As I was writing this I checked again on ArmoryQt and I noticed that the amount of transaction input differs. I checked a bunch, and they all have just 1 source address, while this one has 2:

tx-info

I didn't check them all, but could this be the reason?

alfetopito avatar Jul 11 '14 21:07 alfetopito