Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: subSTRATA on October 18, 2012, 04:59:29 PM



Title: *
Post by: subSTRATA on October 18, 2012, 04:59:29 PM
1.


Title: Re: Questions about Satoshi client
Post by: hamdi on October 19, 2012, 01:31:46 AM
is it possible to run GUI and server mode in combination?


Title: Re: Questions about Satoshi client
Post by: hamdi on October 19, 2012, 02:08:33 AM
thanks!


Title: Re: Questions about Satoshi client
Post by: Pieter Wuille on October 19, 2012, 07:55:28 AM
Just to be clear: from the side of the P2P network there is no difference between running bitcoind, Bitcoin-Qt, or Bitcoin-Qt -server. The only thing that changes between these modes of operation is how you access the block chain and wallet data.

Each of them implements the zero-trust model a full node brings (i.e. it verifies all data received from the network, relays what is valid, and ignores what isn't). If you want a more lightweight node, look at SPV clients like MultiBit or Bitcoin Wallet for Android, which only verify the block headers, but assumes that transactions in the best chain are valid. You can go even more lightweight, by not running a network node at all, but trust all data they receive from a server, like Electrum or several other smartphone applications do.


Title: Re: Questions about Satoshi client
Post by: drakahn on October 19, 2012, 08:18:01 AM
If you don't want to use RPC's then just leave server mode off... no need to leave a window open when you want the door locked


Title: Re: Questions about Satoshi client
Post by: bfever on October 19, 2012, 08:26:39 PM

You missunderstood my question. By default client I mean one with GUI but without any additional settings. What I want to know is
what's the difference running GUI client without and one with server=1, in terms of usefulness for other nodes. In other words, do I
help network more if I run client as server, but I don't solo mine with it, or via some other miner software.

Also, what's the difference when running client with just server=1 and with all this commands:

server=1
rpcuser=username
rpcpassword=password
rpcallowip=127.0.0.1

?
As others indicated already above: if you add the server=1 setting, you enable the JSON-RPC interface on the client. This means that you can not only interactively (as a human user) use the client via the GUI, but that you can write some program that can communicate with the bitcoin client using this RPC interface (basically send a command to do something and/or to receive a response).
As this is potentially dangerous (you can send bitcoins with it), you can - and should - restrict access by using the rpcuser, rpcpassword and rpcallowip settings.

In terms of usefullness to other bitcoin nodes: there is no benefit at all, as other nodes only use the standard bitcoin protocol to send/receive messages from each other.

So again, don't enable the server=1 if you don't need programmatic access to your bitcoin client.
 


Title: Re: Questions about Satoshi client
Post by: Raoul Duke on October 19, 2012, 11:11:24 PM
You should all be aware that if you need to run RPC commands, like to retrieve or import a private key you can just use the RPC console on the new Debug Window that is part of Bitcoin 0.7 without needing to start Bitcoin-Qt in server mode ;)


Title: Re: Questions about Satoshi client
Post by: Pieter Wuille on October 20, 2012, 12:57:34 PM
Can you please stop arguing about whether "just adding server=1" was enough to enable to RPC server?


Title: Re: Questions about Satoshi client
Post by: kjj on November 02, 2012, 03:26:47 AM
Well, since no one else is reporting this, have you considered that the problem might be with your computer, and not with the bitcoin client?


Title: Re: Questions about Satoshi client
Post by: molecular on December 01, 2012, 08:38:46 AM
No one gives a shit or what?

It might just be a bug? You'd have to dig deeper.

Does this happen with version you compiled from source or binary you downloaded?


Title: Re: Questions about Satoshi client
Post by: gmaxwell on December 01, 2012, 09:17:39 PM
It's happening with all versions of binaries I've download and used by now, and with both Bitcoin and Terracoin clients. No other
software I used ever behaved that same way - some do attampt to modify other apps memory and so on, but not prior to some
user action, and not periodicaly and in persistent fashion.

Those reports make no sense at all— each process has its own address space. It's not possible to even _attempt_ to modify another process without invoking a bunch of OS calls to get access to the other processes space (of course, bitcoin has no code to do any of that). Unfortunately those reports also include no details so I have no idea what behavior its mistaking.

Are you sure you don't have some kind of infection on that system?


Title: Re: Questions about Satoshi client
Post by: molecular on December 02, 2012, 10:36:14 PM
So which of the leaks is triggered? "Process Memory Injection"?

If so: why is it reported, the "report" check-box is off.


Title: Re: Questions about Satoshi client
Post by: Raoul Duke on December 03, 2012, 06:41:37 AM
Are you sure uPnP doesn't use that wmi service to configure the router?