Bitcoin Forum
May 03, 2024, 11:17:12 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: IPv6, headless client, and more  (Read 10315 times)
HarryS (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
June 26, 2010, 11: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!
1714778232
Hero Member
*
Offline Offline

Posts: 1714778232

View Profile Personal Message (Offline)

Ignore
1714778232
Reply with quote  #2

1714778232
Report to moderator
1714778232
Hero Member
*
Offline Offline

Posts: 1714778232

View Profile Personal Message (Offline)

Ignore
1714778232
Reply with quote  #2

1714778232
Report to moderator
1714778232
Hero Member
*
Offline Offline

Posts: 1714778232

View Profile Personal Message (Offline)

Ignore
1714778232
Reply with quote  #2

1714778232
Report to moderator
Once a transaction has 6 confirmations, it is extremely unlikely that an attacker without at least 50% of the network's computation power would be able to reverse it.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714778232
Hero Member
*
Offline Offline

Posts: 1714778232

View Profile Personal Message (Offline)

Ignore
1714778232
Reply with quote  #2

1714778232
Report to moderator
Gavin Andresen
Legendary
*
qt
Offline Offline

Activity: 1652
Merit: 2216


Chief Scientist


View Profile WWW
June 26, 2010, 11:54:27 PM
Last edit: June 27, 2010, 02:01:33 AM by gavinandresen
 #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 <label>
listreceivedbyaddress [minconf=1] [includeempty=false]
getreceivedbyaddress <bitcoinaddress> [minconf=1]
getbalance
getblockcount
getblocknumber
getconnectioncount
getdifficulty
getgenerate
getinfo
getlabel <bitcoinaddress>
getnewaddress [label]
getreceivedbyaddress <bitcoinaddress> [minconf=1]
getreceivedbylabel <label> [minconf=1]
help
listreceivedbyaddress [minconf=1] [includeempty=false]
listreceivedbylabel [minconf=1] [includeempty=false]
listtransactions [count=10] [includegenerated=false]
sendtoaddress <bitcoinaddress> <amount> [comment] [comment-to]
setgenerate <generate> [genproclimit]
setlabel <bitcoinaddress> <label>
stop

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.

How often do you get the chance to work on a potentially world-changing project?
HarryS (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
June 27, 2010, 01:43:37 AM
 #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
}
Gavin Andresen
Legendary
*
qt
Offline Offline

Activity: 1652
Merit: 2216


Chief Scientist


View Profile WWW
June 27, 2010, 01:55:07 AM
 #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

How often do you get the chance to work on a potentially world-changing project?
satoshi
Founder
Sr. Member
*
qt
Offline Offline

Activity: 364
Merit: 6723


View Profile
June 27, 2010, 01:02:38 PM
 #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.
lachesis
Full Member
***
Offline Offline

Activity: 210
Merit: 104


View Profile
June 27, 2010, 01:49:51 PM
 #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.

Bitcoin Calculator | Scallion | GPG Key | WoT Rating | 1QGacAtYA7E8V3BAiM7sgvLg7PZHk5WnYc
grondilu
Legendary
*
Offline Offline

Activity: 1288
Merit: 1076


View Profile
November 15, 2010, 06: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

Mahkul
Sr. Member
****
Offline Offline

Activity: 434
Merit: 250


Every saint has a past. Every sinner has a future.


View Profile
February 16, 2011, 11:27:24 PM
 #8

Is there any way of checking how many "immature" (currently maturing) coins there are using bitcoind?
Gavin Andresen
Legendary
*
qt
Offline Offline

Activity: 1652
Merit: 2216


Chief Scientist


View Profile WWW
February 17, 2011, 12:16:42 AM
 #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).

How often do you get the chance to work on a potentially world-changing project?
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!