Bitcoin Forum
June 05, 2024, 03:14:08 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 [159] 160 161 162 »
3161  Bitcoin / Bitcoin Discussion / Re: Do you feel lucky? on: August 01, 2010, 11:16:10 PM
I feel very unlucky. My system has been cranking out 2600 khash/sec for more than 16 days so far, and still not a single block generated. I am not going to buy a lottery ticket any time soon.

I have a feeling that GPU (OpenCL) users will rapidly crowd out CPU users, due to the apparent large advantage of OpenCL bitcoin generation on modern GPUs.
3162  Bitcoin / Development & Technical Discussion / HOWTO: create git mirror of SVN repo on: July 31, 2010, 11:01:19 PM
It seems like a lot of people out there are using git to follow the bitcoin SVN repo, and some are having trouble with line endings.

Here is the method of creating a local git repository, containing nothing but satoshi's upstream SVN commits:
Code:
$ git svn clone --stdlayout https://bitcoin.svn.sourceforge.net/svnroot/bitcoin

When satoshi updates his SVN, here is the method for updating your local repository:
Code:
$ git svn fetch && git pull . refs/remotes/trunk

It is advisable to maintain a vanilla repository or branch, and do your work in a separate repo, such as
Code:
$ git clone bitcoin bitcoin.jg-hacks

or create a side branch,
Code:
$ cd bitcoin
$ git checkout -b jg-hacks master
3163  Bitcoin / Development & Technical Discussion / patent issues (was Re: BitSlack - bitcoin OS in development) on: July 31, 2010, 09:01:03 PM
Another thing to consider is patent issues inherent in the bitcoin implementation.

bitcoin requires EC-DSA, which has been disabled in Fedora after legal review:

https://bugzilla.redhat.com/show_bug.cgi?id=319901
http://en.wikipedia.org/wiki/ECC_patents

I wanted to package bitcoind for Fedora, but gave up, because we cannot distribute binaries due to these patent issues.
3164  Bitcoin / Development & Technical Discussion / Re: 4 hashes parallel on SSE2 CPUs for 0.3.6 on: July 31, 2010, 05:18:30 PM
hmm...I wasn't able to apply the patch (I'm a noobie). Here's the command I ran from bitcoin-0.3.6/src # patch < XN1JDb53.txt

Output:

1 out of 1 hunk ignored
(Stripping trailing CRs from patch.)
patching file main.cpp
Hunk #1 FAILED at 2555.
Hunk #2 FAILED at 2701.
2 out of 2 hunks FAILED
(Stripping trailing CRs from patch.)
patching file makefile.unix
Hunk #1 FAILED at 45.
Hunk #2 FAILED at 58.

It definitely does not apply to the SVN trunk.  Maybe tcatm could post the main.cpp itself?
3165  Bitcoin / Development & Technical Discussion / Re: [PATCH] implement 'listtransactions' on: July 31, 2010, 03:24:10 AM

Updated to version 8 of listtransactions:
http://gtf.org/garzik/bitcoin/patch.bitcoin-listtransactions

Includes gavin's suggestion, renaming 'class' to 'category'.
3166  Bitcoin / Bitcoin Technical Support / Re: Fedora 13 libcrypto on: July 31, 2010, 03:15:05 AM
I get this when trying to run bitcoin:


[michael@fed13 64]$ ./bitcoin
./bitcoin: error while loading shared libraries: libcrypto.so.0.9.8: cannot open shared object file: No such file or directory


Fedora 13 uses this:

/lib64/libcrypto.so.1.0.0a

How can I get around this?

I tried a symlink and running ldd and ldconfig to no avail.

Thanks

No its a breaking DSO major version change.  The problem with Fedora is that it cuts backward compatibility ASAP, where as for RHEL/CentOS there would be compat-openssl providing the libraries you need.

That is irrelevant to building.  bitcoin requires ECDSA, which Fedora will not include due to patent issues.  A custom openssl build is a requirement on Fedora, in order to build bitcoin.
3167  Bitcoin / Development & Technical Discussion / Re: [PATCH] implement 'listtransactions' on: July 30, 2010, 07:45:21 PM
It would be very easy to latch onto that for watching for received payments.  There is no reliable way to do it that way and make sure nothing can slip through the cracks.  Until we have solid example code using getreceivedbyaddress and getreceivedbylabel to point to and say "use this! use this! don't use listtransactions!", I don't think we should implement listtransactions.

Can you be more specific about "no reliable way"?

The existing facility getreceivedby* is provably unreliable.  It combines transactions into summarized totals.  When you go to the bank ATM and perform two deposits, the second immediately following the first, you do not see "ATM deposit $80" on your bank statement, you see two transactions with different transaction IDs for "ATM deposit $40".

I am missing something here?  listtransaction seems more reliable than getreceivedby* summaries.

3168  Bitcoin / Development & Technical Discussion / Re: [PATCH] implement 'listtransactions' on: July 30, 2010, 06:43:37 PM

Here is 'listtransaction' version 7:
http://gtf.org/garzik/bitcoin/patch.bitcoin-listtransactions

This adds the suggested txn_id field -- very nice suggestion, gavin!  I wanted a unique transaction id, and now I have one Smiley
3169  Bitcoin / Development & Technical Discussion / Re: Official git mirror of bitcoin SVN? on: July 30, 2010, 06:32:32 PM
If Satoshi use git it would be good! In git convenient to work with digital signatures, and all authors will not have to think about it further.

Strongly agreed.

git is decentralized, unlike SVN.  You don't have to hit the server each time you want a file or revision history.

git is quite like bitcoin in fact:  sha1-hashed commits reference past sha1-hashed commits, creating a chain of trust that is trivial to validate, and difficult to hack.
3170  Bitcoin / Development & Technical Discussion / Re: [PATCH] implement 'listtransactions' on: July 30, 2010, 06:30:40 PM
Couple of quick suggestions:

Using the key name "class" will cause problems for, at least, JavaScript, and probably other languages where "class" is a reserved word.  "type" or "variety" or some other synonym will cause fewer problems later.

Can you be more specific?  All mainstream programming language seem sensibly insensitive to abitrary string contents, JS included.  String content can certainly include language-reserved keywords and parsing tokens.

Since each entry refers to a transaction, I'd suggest adding a "tx_id" SHA256 hex-encoded transaction id.  Then listtransactions would play nicely with the refundtransaction JSON-RPC extension (and maybe a future gettransactiondetails that let you get transaction parents, which block the transaction was in, and so on).

Code to get that would look something like:
Code:
            uint256 tx_hash = transaction.GetHash();
            string tx_id = tx_hash.GetHex();
            mapJSONResponse.push_back(Pair("tx_id", tx_id));

Added, thanks for the suggestion.
3171  Bitcoin / Development & Technical Discussion / Re: [Request] Option to bind bitcoind's JSON-RPC server to a specific IP on: July 30, 2010, 04:57:56 PM
Now that the JSON-RPC server is secured by a username and password (although not encrypted), I would really like the option of being able to bind bitcoind to another IP and/or port. For example, I have a handful of nodes that all have a public interface and a local interface. I would like to be able to bind bitcoind to an IP on my internal interface so that I can monitor and manage the node from one server.

Really, it should bind to *, and then filter out requests from addresses other than those on a filter-list.
3172  Bitcoin / Development & Technical Discussion / Official git mirror of bitcoin SVN? on: July 30, 2010, 04:16:54 PM

Has anyone yet created a 100% vanilla mirror of bitcoin SVN, using git?

Looking for one that does not have any mods from vanilla bitcoin, and will never have any mods deviating from vanilla bitcoin.

Thanks.
3173  Bitcoin / Development & Technical Discussion / Re: Protocol Buffers for Bitcoin on: July 30, 2010, 03:47:33 PM
FYI, it is pointless to make a packet smaller than 60 bytes -- the minimum size of an Ethernet packet.  Packets are padded up to 60 bytes, if they are smaller.
3174  Bitcoin / Development & Technical Discussion / Re: Compiling under Linux (0.3.6) on: July 30, 2010, 03:39:20 PM
I know I've seen this topic a half-dozen times (can't compile), but after spending hours hunting down source and compiling every piece of software listed in the build-unix.txt, correcting path errors in the build files, etc.  I still can't get the program compiled, LOL.

The error it hangs at is:
Code:
/usr/bin/ld: cannot find -lboost_system
collect2: ld returned 1 exit status
make: *** [bitcoin] Error 1

A bit tough to elaborate on, since I don't see your Linux OS version.

For some OS's, like Fedora here, you need to link with the multi-threaded boost libs instead.  This implies adding a "-mt" suffix, eg. -lboost_system-mt rather than -lboost_system, for example.

Here is the complete, makefile-free, working solution I use to build bitcoind on Fedora:
Code:
g++ -O3 -ffast-math -march=native -Wno-invalid-offsetof -Wformat -pthread \
-I"/usr/local/openssl-0.9.8/include" \
-o bitcoind \
rpc.cpp main.cpp util.cpp script.cpp db.cpp net.cpp irc.cpp \
init.cpp cryptopp/sha.cpp cryptopp/cpu.cpp \
-L"/usr/local/openssl-0.9.8/lib" \
-l boost_system-mt -l boost_filesystem-mt -l boost_program_options-mt \
-l boost_thread-mt -l db_cxx -l crypto -l gthread-2.0

(openssl 0.9.8 is installed in /usr/local/openssl-0.9.8, everything else is a system lib)
3175  Bitcoin / Bitcoin Discussion / Re: Is Bitcoin that really decentralized, as you believe? on: July 30, 2010, 07:03:10 AM
What if you had as many wallets as you had bitcoins so that there is only 1 bitcoin in each ?At the moment there is 1 wallet file that would be relatively easy to find on someone's system.Having only 1 unencrypted file that holds your wealth is a vulnerability.Having 1000 files each needing a different pgp key to open would be a nice security feature.

Sounds like a maintenance and management headache.  Nobody will want to remember 1000 different passwords, or manage 1000 different keys all over the place, so that just moves the problem from one location (wallet) to another (key management and automation).
3176  Bitcoin / Bitcoin Discussion / Re: Keeping track of transactions. on: July 30, 2010, 07:00:35 AM
If you create a new address each time you transact you will eventually end up with thousands of addresses in your client.The question is how can you easily search for one particular transaction amongst thousands?

It would be nice to be able to add a memo to each transaction, something both sender and receiver could view.
3177  Bitcoin / Development & Technical Discussion / Re: BitSlack - bitcoin OS in development on: July 30, 2010, 06:58:56 AM
Is a client device possible with your server/desktop sitting at home which you could vpn into?

Sure.  That's reinventing the client terminal, a dumb hardware device that communicates with a backend payment system.
3178  Bitcoin / Development & Technical Discussion / [PATCH] RPC: display existing extended-help descriptions on: July 30, 2010, 06:24:12 AM

Several RPC commands have multi-line help descriptions, but they do not appear to be shown anywhere.  The following patch implements a
Code:
help [command]
parameter that provides access to these extended descriptions.

Patch: http://pastebin.ca/1911586
Raw: http://pastebin.ca/raw/1911586

Here is example output for the new "help listreceivedbyaddress" sub-command:
Code:
[jgarzik@bd ~]$ /garz/repo/bitcoin/bitcoind -datadir=/garz/bitcoin/data help listreceivedbyaddress

listreceivedbyaddress [minconf=1] [includeempty=false]
[minconf] is the minimum number of confirmations before payments are included.
[includeempty] whether to include addresses that haven't received any payments.
Returns an array of objects containing:
  "address" : receiving address
  "label" : the label of the receiving address
  "amount" : total amount received by the address
  "confirmations" : number of confirmations of the most recent transaction included
3179  Bitcoin / Development & Technical Discussion / Re: [PATCH] implement 'listtransactions' on: July 30, 2010, 05:44:23 AM

Version 6 of listtransactions: http://pastebin.ca/1911570
Raw patch: http://pastebin.ca/raw/1911570

listtransactions implementation should be complete at this point.  The following command syntax is used:
Code:
listtransactions [count=10] [minconf=1] [includegenerated=true]

As lachesis suggested, count=0 will dump all transactions.

FAQ:

Q1) How does 'listtransactions' behave if tail of the block chain changes, eg. 0 confirmations -> 1 confirmation -> 0 confirmations?

A1) 'listtransactions' behaves the same way 'listreceivedbyaddress' behaves...  the output changes accordingly.
3180  Bitcoin / Bitcoin Technical Support / Re: Linux distribution download on: July 30, 2010, 02:05:57 AM
Yeah, some sort of virtual machine like qemu/KVM is really the best way to go, for older distro support.

Just to clear up any (potential) misconception, from the use of the phrase "for older distro support".  Just because you compiled your application with an older distro doesn't mean it doesn't work on a newer distro many libraries are backwardly compatible in that way.

When they do change major DSO version (incompatible or breaking changes) some distributions still provide the ability to install the older compat libraries.  Its easier for a new distro to find older compat libraries than it is for an older distro to use a newer GLIBC.

Most of what you say is true, but, bitcoin tends to be built against very specific versions of its dependent libs.  Due to that, one tends to build bitcoin against custom compiled libs, regardless of underlying OS version.  That practice makes glibc the primary compatibility worry.
Pages: « 1 ... 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 [159] 160 161 162 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!