Author

Topic: IPv6, headless client, and more (Read 10314 times)

legendary
Activity: 1652
Merit: 2216
Chief Scientist
February 16, 2011, 08:16:42 PM
#9
Is there any way of checking how many "immature" (currently maturing) coins there are using bitcoind?

No, but there should be.

Proposal:  treat immature coins as starting with -100 confirmations, and modify listtransactions to list immature category=generate coins (with negative confirmations).

There's probably an off-by-one-error lurking there... (will have to make sure the coinbase transaction is spend-able when it goes from -1 to 0 confirmations).
sr. member
Activity: 434
Merit: 250
Every saint has a past. Every sinner has a future.
February 16, 2011, 07:27:24 PM
#8
Is there any way of checking how many "immature" (currently maturing) coins there are using bitcoind?
legendary
Activity: 1288
Merit: 1076
November 15, 2010, 02:15:36 PM
#7

A usefull command if you like to watch your wallet evolve in real time is the command "watch" :

$ watch bitcoind getinfo
full member
Activity: 210
Merit: 104
June 27, 2010, 09:49:51 AM
#6
Or you could use my "completely unsupported, don't blame anyone if it doesn't work" patch to rpc.cpp that adds listgenerated as a method. Pass it false (./bitcoind listgenerated false) to get only the unmatured coins. No argument or true gives a list of all coins. The interface is going to change, since a list of strings isn't really the way RPC is supposed to work!

Of course, for that, you need to build from the SVN.

The latest version of the patch can always be found at http://www.alloscomp.com/bitcoin.
founder
Activity: 364
Merit: 6723
June 27, 2010, 09:02:38 AM
#5
Welcome, Harry.

I hadn't thought about starting out using bitcoind without using bitcoin first.  I guess for now, this thread serves as the tutorial. 

The focus for bitcoind so far has been more on backend support for websites.  There's demand for things that would be nice for adminning headless generators like listgenerated.  For the moment, you can grep the debug.log file for "generated" and "hashmeter" for some feedback.  Generated blocks take about 24 hours before they're credited to your balance.
legendary
Activity: 1652
Merit: 2216
Chief Scientist
June 26, 2010, 09:55:07 PM
#4
When I run,
Quote
./bitcoind getaddressesbylabel ""
[
]
Is it normal for it to give nothing, or what?
Hmm, yeah, it's probably normal; I THOUGHT the default address was given an empty label; I'm wrong, they're given the label "Your Address".
So: 
Code:
./bitcoind getaddressesbylabel "Your Address"
should work.

Or just generate a new address, either with or without a label:
Code:
./bitcoind getnewaddress
newbie
Activity: 7
Merit: 0
June 26, 2010, 09:43:37 PM
#3
Ah, nice, thanks for that.

When I run,
Quote
./bitcoind getaddressesbylabel ""
[
]
Is it normal for it to give nothing, or what?

getinfo gives me
Quote
./bitcoind getinfo
{
    "balance" : 0.000000000000000,
    "blocks" : 62899,
    "connections" : 39,
    "proxy" : "",
    "generate" : false,
    "genproclimit" : -1,
    "difficulty" : 19.40479632838217
}
legendary
Activity: 1652
Merit: 2216
Chief Scientist
June 26, 2010, 07:54:27 PM
#2
I am also running bitcond 1.3 (RC?) that satoshi just posted. How do I use it though? There aren't many docs on using bitcoind... it just said "starting bitcoin server", and my IP appears in the #bitcoin room on irc.lfnet.org. How would I figure out my bitcoin address, how many coins I have, send to other people, etc?
You can talk to the running bitcoind either by:
 1. sending JSON-RPC calls; see http://www.bitcoin.org/wiki/doku.php?id=api for more details.
 2. re-running bitcoind and giving it extra arguments; it will figure out that there's already a bitcoind running and will pass along the commands.

For example, running "bitcoind help" gives you the list of commands it understands:
Code:
bitcoind help
getaddressesbylabel

To figure out what your bitcoin address is, run:
bitcoind getaddressesbylabel ""
(your default address has the empty string as its label).
Code:
 bitcoind getaddressesbylabel "Your Address" 
To figure out how many coins you have, run:
Code:
 bitcoind getbalance 
or
Code:
 bitcoind getinfo 

Regarding running headless:  the non-daemon bitcoin will run via remote (e.g. ssh forwarded) X-windows, if you install the necessary X11-client stuff on your server.
newbie
Activity: 7
Merit: 0
June 26, 2010, 07:17:51 PM
#1
Hello, I heard about this project around freenode, and I really like the idea.

I am wondering if there is a chance you could develop a fully headless version, but with controlling options? Maybe something similar to ncurses work, like rtorrent? So we can make and share bitcoins on headless computers, while still having the ease and control of te GUI interface?

Another suggestion that would be nice would be an update module, if you are running an old version (don't know if there is already, didn't look around much).

Boot strapping to a different type of medium, as well as IRC, would be an improvement as well. Maybe something similar to Bittorrent trackers? Some ISPs block IRC, and some people dislike the thought of IRC.

Lastly, IPv6 support would be pretty awesome, if possible. Then people would worry less about the IRC bootstrapping, I'd think.

I am also running bitcond 1.3 (RC?) that satoshi just posted. How do I use it though? There aren't many docs on using bitcoind... it just said "starting bitcoin server", and my IP appears in the #bitcoin room on irc.lfnet.org. How would I figure out my bitcoin address, how many coins I have, send to other people, etc?

I am no C programmer, so I would not be able to implant any of these suggestions, but I would hope that it could be possible Smiley

Thanks in advance!
Jump to: