Hi Armory dev team/community!
I'm trying to migrate my cold storage wallet from Armory to my Trezor. I have a bunch of outputs to different addresses, and what I'd like to do is create an UnsignedTransaction for each address, spending all of the funds (minus fees) to a Trezor address (assume I have a sufficient number of these available in a Python list). I've got a lot of these outputs, so I really don't want to do this through the GUI. I didn't see an easy way to do this using armoryd, so I am writing a Python script.
Here's my code so far:
import sys
sys.path.append('..')
from armoryengine.ALL import *
walletFile = "[REDACTED]"
wallet = PyBtcWallet().readWalletFile(walletFile)
TheBDM.registerWallet(wallet.cppWallet)
TheBDM.setOnlineMode(goOnline=True, wait=True)
for o in wallet.getTxOutList():
output = PyUnspentTxOut(o)
output.pprint()
TheBDM.execCleanShutdown(wait=True)
Every time I run this, I get a Segmentation fault with nothing in the logs. I'm on a Mac and am working from git master. Any ideas?
Here's what I
do have in my logs:
-INFO - 1412470223: (BlockUtils.cpp:4441) Finished blockchain scan in 6.04233 seconds
-INFO - 1412470223: (BlockUtils.cpp:4460) Updating registered addresses
-INFO - 1412470223: (BlockUtils.cpp:4468) Scanning Wallets
-INFO - 1412470223: (BlockUtils.cpp:4479) Scanning Wallet #1 from height 0
-INFO - 1412470223: (BlockUtils.cpp:4800) Saving wallet history to DB
Segmentation fault: 11