Bitcoin Forum
May 25, 2024, 12:16:03 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 [44] 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 ... 195 »
861  Bitcoin / Development & Technical Discussion / Re: A bit of criticism on how the bitcoin client does it on: May 15, 2013, 03:46:41 AM
You're just confused, sorry. You have to download all data in every block to run a full node. This is fundamental. You can't reduce bandwidth usage by downloading parts of each block from different peers. This might reduce the upload bandwidth on their side, but it doesn't reduce the download bandwidth on your side. If you're talking about hosting blocks on Cloudfare then you're talking about download bandwidth. So your proposed change wouldn't impact anything.
The above is just another example how Mike Hearn spreads misinformation about Bitcoin protocol.

For normal operation of the Bitcoin network the majority of the "block" has already been previously transferred as a separate "transactions".

The obvious optimization of the bandwidth usage is for the clients to inspect the Merkle tree and ask the peer only for the transactions that weren't previously broadcast.

This gives close to 50% bandwidth savings for free.

I'm writing this to underline the fact that whenver you read something written by Mike Hearn you have to double check and verify for yourself the 3 broad possibilities:

1) he was correct;
2) he was incorrect because he didn't understand the question or doesn't understand the underlying tehnology;
3) he was incorrect intentionally to disparage other developers and spread misinformation.

Thankfully for now he still doesn't belong to the core development team.

You forgot #4, technically correct, about something pointless and intentionally ignoring the distinction to give the illusion of superiority.  Odd that you'd forget it, since your post was a perfect example.

Your memory pool won't help you during the initial download, which is the time when people care about traffic.  No one gives a shit about 8 gigs over 4 years.  Everyone cares about 8 gigs today.  Using a piecewise downloading system will save some traffic* for people that don't give a shit about traffic, and save not even a single byte for people that do.

"close to 50%" savings needs a lot of assumptions to be true at the same time, when some of them are never true at all.  A partial list:  bitcoin traffic is evenly divided between block bodies and transactions, the list of transactions in a block can be transmitted for free, every node knows about every transaction.
862  Bitcoin / Development & Technical Discussion / Re: Converting public keys to compressed public keys on: May 14, 2013, 09:17:58 PM
Yup, you have it right, at least functionally.

The pubkey is structured data with a eight bit header followed by one or two fields of 256 bits each.  The first field is X and is always present.  The second field is Y, and is only present when the header is 0x04.  Stripping off the 0x04 and taking the first half is the same operation as unpacking the X value, so what you are doing is exactly right.  I just like to explain it in detail so that other people reading this thread will understand what that operation represents logically.

You just need to keep track of whether you are compressing or not.  If you are using the compressed form, you must use the compression flag in the WIF.  Even though they represent the exact same idea, the compressed WIF won't work with the uncompressed pubkey, nor the reverse.
863  Bitcoin / Bitcoin Technical Support / Re: not 0.8.2 index error on: May 14, 2013, 08:24:05 PM
-rw------- 1 shawn users 429834240 May 11 18:44 /home/shawn/.bitcoin/blkindex.dat

I am using ext3 (journaled filesystem).  Now the file size is just under the maximum size of a 32-bit integer. 
Is there a way to recover this?

Your numbers are a bit off.  You are ~ 500 MB, not ~ 4 GB.

Most likely, you didn't shut down cleanly and your databases got broken.
864  Economy / Economics / Re: Is it true that the Fed is privately owned on: May 14, 2013, 04:39:08 PM
My understanding is that it is a privately owned corporation, but their corporate charter is a federal statute rather than an ordinary corporate charter.  The member banks are the shareholders, but being a shareholder doesn't confer the usual control that a normally chartered corporation would have.  As in, the "owners" can't change the bylaws, etc.
865  Bitcoin / Bitcoin Technical Support / Re: Help Please!! on: May 14, 2013, 02:44:31 PM
Coins are not stored on your computer, or in your wallet.  If the transaction actually happened in the public block chain, it doesn't matter what software you are using to see it.

You just need to make sure that you still have the wallet.dat that contains the key to the address you sent to.
866  Bitcoin / Development & Technical Discussion / Re: D-Wave Announces Commercially Available Quantum Computer on: May 14, 2013, 12:06:38 PM
All of the other threads on this, including the one from yesterday, say no.
867  Bitcoin / Development & Technical Discussion / Re: A bit of criticism on how the bitcoin client does it on: May 13, 2013, 07:34:59 PM
These are all pretty common topics in IRC.  I recall some of them from the mailing list too, but I don't read that daily any more.  People are working on various parts.  For one example, see here.  The bootstrap torrent is another example.

Pitch in and help if you can.
868  Bitcoin / Development & Technical Discussion / Re: How to use Walletnotify? on: May 13, 2013, 07:20:24 PM
On the server I used for testing, in my bitcoin.conf:
Code:
walletnotify=/home/btcdev/walletnotify.sh %s
blocknotify=/home/btcdev/blocknotify.sh %s

The %s in the command line gets replaced with the (ASCII) hex string of the transaction hash, just like -blocknotify replaces it with the block hash.

And the program can be as simple or as complicated as you like.  Here is a simple shell script:

Code:
#!/bin/bash
F=/home/btcdev/wallet_transaction_log
D=`date +"%Y%m%d%H%M%S"`
echo ${D} - ${1} >> ${F}

which gives lines like:

Code:
20130513123015 - 6fa6c8ff08f122327b7a0a329d7632f243038f0fc96cce1248cb4948d0509ecf

You aren't limited to shell scripts, of course.

A pipe would have been better, but they aren't portable.  Even if we had been willing to limit it to just UNIX-ish systems, there would have been horrible locking problems, and these notices simply weren't worth the effort to work around them*.  If you want similar behavior, you can fake a pipe with netcat, so that you could have a long running service that accepts TCP connections from localhost, and just call netcat to dump the txid to that socket.

Did you know that named pipes can stall in both directions, potentially DOSing one of the client threads?  There are ways around it, of course, but you have to throw out a lot of the abstractions, so there would have been a very un-C++ chunk of code in the bitcoin client, just for dealing with the pipes.  At least that was how it looked to me when I was researching it.  I don't do much with C++, so I'm hoping that someone in the audience is more skilled than I am, and will read this and say "You dumbass, why didn't you just do X?", or even better, rewrite it for me.  Smiley
869  Bitcoin / Bitcoin Discussion / Re: DWave's Quantum Computer on: May 13, 2013, 03:41:05 PM
If only there was some way to find all of the other threads on dwave, like this one from two days ago, or this one from two years ago...
870  Bitcoin / Development & Technical Discussion / Re: How to use Walletnotify? on: May 13, 2013, 02:27:25 PM
Cron job lol, it's subbitcoin level security that might fly with Paypal or banks that don't care that their accounts with tens of thousands of dollars are being sold for 100 bucks on the darknet...

I've read this four times now, and I still don't know what you are trying to say.
871  Bitcoin / Bitcoin Discussion / Re: Idea for brick-and-mortar Bitcoin use on: May 13, 2013, 12:24:49 PM
- Would holding back the last 6 or so characters be enough to secure the Private Key?

58^6 = 38,068,692,544

I'd say no.

It is even worse than that.  If the private key is in WIF form, the last 32 bits are a check code.  So, divide your answer by 2^32 and you get about 10 possible keys that need to be checked

The quirks of the encoding make key recovery a bit harder than that, but it is still WAY less than the 38 billion quoted.
872  Bitcoin / Development & Technical Discussion / Re: How to use Walletnotify? on: May 13, 2013, 11:24:42 AM
If you are talking about the -walletnotify config option in 0.8.2rc1, it works exactly like -blocknotify.  You specify the path to a program to be run.

The program will be run with a single argument (the transaction hash) when a new transaction hits your wallet.  Actually, it will run once or twice per transaction.  First time will be if you receive that transaction as a transaction, and the second time when you receive it as part of a block.

That program can be a script that uses some other tool (curl, wget, whatever) to issue a call out to an external webservice, or it can do whatever you need directly (update a database, logfile, etc).

If you are a high volume site that gets lots of transactions, you may need to be careful with it.  It can spawn a lot of new processes, so you should make your script fast and simple.  Just dump the txhash to a journal file (or table) and exit, for example, with a cron job to come around later to collect and process them in batches.

People were looking for a simple way to track incoming transactions, and this was the easiest way to do it.  It has some quirks, but it is still vastly superior to the hacks people were having to use before.
873  Bitcoin / Bitcoin Discussion / Re: WARNING! Bitcoin will soon block small transaction outputs on: May 13, 2013, 04:01:18 AM
There is no censorship here.  You are still free to create and broadcast any transactions you want.  This patch just makes it easier for other people to decide whether to relay your garbage or not.

Obviously not if it will never be included in a block I am not free to do anything the miners choose how I spend my money. Thanks for posting the same thing the last 21 pages are about.

I've actually read all of the stupid posts in this stupid thread.

One last time just to be clear:  You are still free to create whatever transactions you want.  You are NOT FREE to force other people to relay or mine them.

You are not being censored.  Grow up.
874  Bitcoin / Bitcoin Discussion / Re: WARNING! Bitcoin will soon block small transaction outputs on: May 13, 2013, 03:21:21 AM
There is no censorship here.  You are still free to create and broadcast any transactions you want.  This patch just makes it easier for other people to decide whether to relay your garbage or not.
875  Bitcoin / Hardware / Re: [Avalon Asic] trade-in Thread on: May 13, 2013, 03:15:55 AM
First number is current difficulty, second number is projected next difficulty, third number is % change.

Keep in mind that the new current difficulty is like 50 blocks old at this point.  Predictions for the next difficulty based on such a short window are, erm, "speculative" at best.
876  Bitcoin / Bitcoin Discussion / Re: WARNING! Bitcoin will soon block small transaction outputs on: May 12, 2013, 10:58:47 PM
Perhaps it's time for the official bitcoin-qt client to support an auto sweep of inputs into a single transaction  back to yourself on a regular basis. I've seen other threads where people discuss their techniques for doing this manually, but to my knowledge no client automates it yet.

I'm all for this.  But, it is harder than it looks.  The tricky part is that you have a bunch of competing pressures that you need to balance against the needs of the user.  It gets hard to quantify some of the decisions you have to make.

I wrote my own script to do a little bit of collections and consolidation.  But my script is not a general solution, it would be worthless, or worse than worthless, to people with different needs.
877  Bitcoin / Bitcoin Technical Support / Re: How to generate Bitcoin Address? on: May 12, 2013, 10:30:13 PM
The private key is a random 256 bit number.  Every 256 bit number is a private key, but some are safer than others.  You should use the strongest entropy source that you can get your hands on to generate them.

The public key is then simply pubkey = G * PrivKey.  The catch is that * is EC multiplication in the appropriate modular elliptic curve field and G is the base point of that curve.

From there, it is just a matter of hashing and encoding to generate the address.

All of this is well published.  Would you like some tips on searching?
878  Bitcoin / Development & Technical Discussion / Re: Exact binary map of database blockchain?! on: May 12, 2013, 08:47:08 PM
@kjj

Quote
Transactions don't have timestamps, but blocks do.  The timestamp on a block is considered to be the time that all of the transactions inside it happened.

In reality all transactions even in the same block differ in time.
Nonetheless they all use the same timestamp? Can't really believe that.
Nonetheless that exactly the chronological order of transfers avoids double-spending?

Armory restored date+time of all my different transactions (as it seems correctly)
Was this something like a trick? Visionary power Huh

Quote
P.S.  Your commentary on the whitepaper is wrong, deeply wrong. 

Why Huh

Quote
You may know a bit about banking, but you don't seem to know anything about the history of cryptocurrencies.  Bitcoin is the solution to problems that you don't seem to even understand as problems.
Sorry, modesty is my middle name. But I can assure that I know more than "a bit" about banking and money, legally, economically, logically.
"History" and/or renaming money to "cryptocurrencies" changes what??

Be sure:
the basic logic I talk/ed about, was, is and will always be the same - since 100thousand years, forever. Cheesy

Proofed very well in the other only aggressive comments, totally free of any arguments. Cheesy

No, really.  As far as bitcoin is concerned, all of the transactions in a block happen at the exact same moment, in the order listed in the block.  They may have been created years ago and published days ago, but that doesn't matter.  They are deemed to have happened at the time listed in the block header's timestamp field.  For extra amusement, keep in mind that the block's timestamp can be in the future or the past.  It is a rare block indeed that actually happened exactly when it claims it happened.

Your belief in this is not required.  I'm telling you how it really is.

I hope that the other posts in this thread have led you to do some research into what exactly a cryptocurrency is, and how it differs from a bank ledger.  Bitcoin is not just the same money that you know about under a different name.  It is something new.  Well, new-ish.
879  Bitcoin / Bitcoin Technical Support / Re: Something strange here.... on: May 12, 2013, 08:37:32 PM
You can send transactions to yourself.  If you just do sendtoaddress, you won't necessarily collect the small transactions that you are hoping to collect, unless you send your entire balance to yourself.  Which isn't necessarily a good idea, by the way.

Or, you can use the raw transaction API to collect the small transactions and send them to yourself, manually.  This is a hassle, but works well, particularly once you have it scripted.
880  Economy / Economics / Re: What is special for a currency on: May 12, 2013, 03:29:17 PM
I don't see any point in discussing this if you are just going to keep repeating your hypothesis.

P.S.  You should really learn to search better.

http://en.wikipedia.org/wiki/Bomb_Iran
Quote
"Bomb Iran" gained a resurgence in notoriety in 2007 during John McCain's 2008 presidential campaign.
Iran has been in the crosshairs ever since.

Holy shit!  John McCain is a time traveller!  After learning that Iran was no longer exporting oil for dollars in December 2007, he travelled back in time to April 2007 to make a joke using a 27 year old song to warn them of the dire consequences of their decision.
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 [44] 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 ... 195 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!