Bitcoin Forum
January 19, 2022, 12:09:24 PM *
News: Latest Bitcoin Core release: 22.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Armory / How to get a list of UXTOs? on: October 05, 2014, 12:47:47 AM
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:

Code:
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:

Code:
-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
2  Bitcoin / Hardware / AntMiner S3 API? on: August 07, 2014, 06:45:26 AM
Is there an API on the S3 that will give me hash rate, pool status, chip status and such, or is that only accessible through the web GUI? I've noticed sometimes a chip will go from O to X and a reboot solves it, I'd like to automate this. Also, it would be great to pull all of my S3s into one dashboard, instead of having to check each one individually.
3  Economy / Goods / [WTB] 2010+ VW Golf GTI or TDI on: October 15, 2013, 04:38:16 PM
I know this is a long shot, but that's what I'm looking for. I'm willing to pay fair market value with bitcoin. I will only use a reputable community member or service for a 2 of 3 escrow transaction (I will pay the cost for this). I will travel to your location and pick the car up.

If you know of anyone that can help me secure a vehicle for bitcoin, let me know.

If you want to get a significant number of bitcoins without having to go through a KYC exchange, this could be a good way to go.
4  Economy / Computer hardware / Selling my Jalapeno on Bitmit on: June 13, 2013, 01:38:35 AM
Bidding starts at the price I paid in bitcoins at the time of order, buy now is 8 * current monthly earnings (5.5 BTC) = 44 BTC. Free shipping within the 50 states, 0.5 BTC elsewhere.

https://www.bitmit.net/en/item/38693-butterfly-labs-jalapeno-5-6-gh-s-actual-hardware
5  Economy / Services / [WTB] Vector image tracing 0.5 BTC or best offer on: January 14, 2013, 06:22:16 PM
I'd like a traced vector image of this character (no background), in the rageface style.

If you are interested, please reply here and also PM me. If someone has already replied, know that I will choose their work if it's completed in a timely manner and is satisfactory. Otherwise, I will choose the one that meets the criteria and has the first reply in the thread.

When you are finished, post a thumbnail of the image here, and I will send payment, at which point you should PM me a link to the full image.
6  Economy / Goods / Salted Honey Caramels **Bitcoin Friday** on: November 09, 2012, 11:38:13 PM
I am posting this on behalf of Jillian Batty, the owner of Stateless Sweets. To order with Bitcoin, just send her an email at statelesssweets@yahoo.com. The offer is good until midnight PST.

Quote from: Stateless Sweets
Salted Honey Caramel $12.50 for 40 pieces shipped. If you're buying with BTC today, just one coin will get you an order of these. No corn syrup in this caramel. Cheesy

Quote from: Stateless Sweets
The raw honey was purchased with bitcoin! I have rooommates right now who brought some raw honey with them from Seattle/Spokane, Washington. He gladly accepted bitcoin for a 3 pound jug.

7  Bitcoin / Bitcoin Technical Support / Testnet stopped downloading blocks at 47471 on: March 08, 2012, 10:35:14 PM
Was running version 0.5.1-beta. Tried deleting everything but wallet.dat out of ~/.bitcoin/testnet and restarting with bitcoin-qt -testnet -rescan, but the problem persisted. Updated to 0.5.2 but the problem persisted. Deleted everything again but now the block chain is downloading very slowly, so I don't have logs around the time of stopping.

Any ideas?
8  Other / Beginners & Help / Requesting a whitelist on: December 27, 2011, 05:57:14 PM
I have a useful LinuxCoin setup script that I'd like to post in the thread in Project Development.

You set this up to run automatically upon boot and it will create all of the miner scripts, the auto start script, the restart script, etc based upon the devices installed in your system.

Code:
#!/bin/bash

xhost +
echo $DISPLAY > /home/user/.display

echo "Configuring on first run..."

while [ -z $IP ]; do
  sleep 1
  IP=`/sbin/ifconfig | grep 192.168 | awk '{ split($2, ip, ".");  print ip[4] }'`
done

sudo awk '{
  if($3 == "linuxcoin") {
    print "127.0.0.1       localhost stimbo102" >> "/etc/hosts.new"
  } else {
    print $0 >> "/etc/hosts.new"
  }
}' /etc/hosts

sudo mv /etc/hosts.new /etc/hosts

sudo hostname stimbo$IP

AMDOverdriveCtrl -h | awk -v ip=$IP '
function append(data, file) {
  print data >> file
}

function write(data, file) {
  print data > file
}

function write_miner(device) {
  file = "/home/user/miner" device ".sh"
  write("#!/bin/bash", file)
  append("cd /opt/miners/phoenix", file)
  append("sudo ./phoenix.py -u http://stimbo10." ip ":stimbo789@api.bitcoin.cz:8332/ -q 7 -k phatk BFI_INT VECTORS FASTLOOP=false AGGRESSION=11 DEVICE=" device, file)
  system("chmod +x " file)
}

function start_miner(device) {
  file = "/home/user/miner" device ".sh"
  system("lxterminal --title miner" device " --command sh " file)
}

function write_autostart() {
  file = "/home/user/.config/autostart/auto.desktop"
  write("[Desktop Entry]", file)
  append("Encoding=UTF-8", file)
  append("Name=coin", file)
  append("Exec=lxterminal --command \"sh /home/user/start.sh\"", file)
  append("Terminal=true", file)
}

function write_start() {
  file = "/home/user/start.sh"
  write("#!/bin/bash", file)
  append("sleep 20", file)
  append("xhost +", file)
  append("echo $DISPLAY > /home/user/.display", file)
  system("chmod +x " file)
}

function append_start(adapter, device) {
  file="/home/user/start.sh"
  append("AMDOverdriveCtrl -i " adapter " -b", file)
  append("lxterminal --title miner" device " --command sh /home/user/miner" device ".sh", file)
}

function write_restart() {
  file = "/home/user/restart.sh"
  write("#!/bin/bash", file)
  append("export DISPLAY=`cat /home/user/.display`", file)
  system("chmod +x " file)
}

function append_restart(adapter, device) {
  file="/home/user/restart.sh"
  append("pc=`ps waxuf | grep miner" device ".sh -c`", file)
  append("ld=`aticonfig --odgc --adapter=" device " | grep \"GPU load\" | cut -c 30-35 | cut -d % -f 1`", file)
  append("if [ $pc -lt \"2\" ] || [ $ld -lt \"50\" ] ; then", file)
  append(" kill `ps -ef | grep miner" device " | grep -v grep | awk \x27{print $2}\x27`", file)
  append(" lxterminal --title miner" device " --command sh /home/user/miner" device ".sh &", file)
  append(" date +\"%D %r miner" device " restarted\" >> /home/user/cron_job.log", file)
  append("fi", file)
}

BEGIN {
  n=0
  write_autostart()
  write_start()
  write_restart()
}
{
  if($5 ~ /active.*/) {
    device = substr($4, 1, length($4) - 1)
    devices[n++] = device
  }
}
END {
  for(device in devices) {
    print "Found device number " device " in adapter slot " devices[device]
    write_miner(device)
    append_start(devices[device], device)
    append_restart(devices[device], device)
    start_miner(device)
  }
}'

if [ -f /home/user/.config/autostart/firstrun.desktop ]; then
  rm /home/user/.config/autostart/firstrun.desktop
fi
9  Other / Beginners & Help / Incoming Bitcoin connections through Mullvad on: November 14, 2011, 02:32:06 PM
I'm at a bit of a loss how to run a Bitcoin node that accepts incoming connections through the Mullvad VPN service. I was able to get more than 8 connections by using their software to open a port (you can't choose, it creates a random one) and then using -port=X, but that only got me 12 connections, and my understanding is that doing it like that makes the node not discoverable.

Any ideas?
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!