Bitcoin Forum

Bitcoin => Armory => Topic started by: Nelzat on October 22, 2015, 12:47:33 PM



Title: Armory transaction creation and signing
Post by: Nelzat on October 22, 2015, 12:47:33 PM
Hi all

When I use this:
TheBDM.Reset(wait=True)
TheBDM.setBlocking(True)
TheBDM.setOnlineMode(True)
on my script it returns an error:

ERROR) Traceback (most recent call last):
  File "createTxFromAddrList2.py", line 163, in <module>
    txdp = createTxFromAddrList(wlt, addrList, recipList, 310000, sendChangeTo)
  File "createTxFromAddrList2.py", line 44, in createTxFromAddrList
    TheBDM.setOnlineMode(True)
AttributeError: 'BlockDataManager' object has no attribute 'setOnlineMode'

on the Armory website Alan says we should, (replace any BDM_LoadBlockchain() calls with TheBDM.setOnlineMode(True)):

But on this script: createTxFromAddrList.py. I couldn't find a single BDM_LoadBlockchain()

Please help...It will be much appreciated.


Title: Re: Armory transaction creation and signing
Post by: goatpig on October 22, 2015, 03:23:36 PM
Hi all

When I use this:
TheBDM.Reset(wait=True)
TheBDM.setBlocking(True)
TheBDM.setOnlineMode(True)
on my script it returns an error:

That's 0.92 and older code. The code changed, not the website (sorry about that!)

You should use what you see in the examples.