Bitcoin Forum
May 24, 2024, 01:37:42 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 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 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 »
1481  Economy / Economics / Re: How to fix bitcoin on: April 07, 2011, 11:27:30 PM
Stuff is valuable because it is either useful (like hammers) or we think it is pretty (like Picasso paintings); the more rare, useful, and/or desirable something is, the more valuable it tends to be.

We know how rare bitcoins are.  It remains to be seen how useful they are.  I think they're pretty useful as both a convenient way of paying for things and as a long-term store of value, but it will take time to convince most people that they're useful for those things.
1482  Bitcoin / Development & Technical Discussion / [PULL] Report immature coinbase txns in listtransactions on: April 06, 2011, 01:53:15 PM
https://github.com/bitcoin/bitcoin/pull/138

I think this is ready:
Quote
This patch adds immature generated blocks to listtransactions. They are reported just like mature blocks, except the category is 'immature' instead of 'generate'.

This functionality is needed by people creating alternative, JSON-RPC-based GUIs, and is useful for impatient miners who currently grep through debug.log or use unofficial patches to see not-yet-mature blocks they've generated.

I found one edge case during testing, and after discussion on #bitcoin-dev changed the information reported.  The edge case was reporting the coinbase transactions from orphaned blocks.  Here's the scenario:

+ As soon as you generate a block, the coinbase transaction goes into your wallet as a 1-confirmation transaction.  Before this patch, that transaction was not listed in the listtransactions output.  With this patch, it is (as "category" : "immature", "confirmations" : 1).

+ If that block is orphaned, the coinbase transaction is no longer valid.  With this patch, it will be reported at "category" : "orphan", "confirmations" : 0

+ When a coinbase transaction has 120 confirmations, it will be reported as "category" : "generate" (as before).
1483  Bitcoin / Development & Technical Discussion / Re: [PULL] spent per txout on: April 06, 2011, 01:43:38 PM
I added a comment to the PULL request-- I ran into an issue when sanity testing this (a testnet wallet that reports an impossibly high balance after conversion).
1484  Bitcoin / Development & Technical Discussion / Re: Transactions too small for the network, what happens to them? on: April 06, 2011, 01:40:13 PM
OK that's pretty much what I was talking about then. So my stupidly small transaction at the moment won't be accepted by most miners, which means it wont get recorded in the block chain which means it wont happen, right?

Yes, and right now it will sit in your wallet at 0 confirmations and get rebroadcast once in a blue moon (ok, not that long, but I'm too lazy right now to dig out the rules for when transactions are rebroadcast) until it DOES make it into a block.

And you'll have to hack your copy of bitcoin to be able to send a less-than-.01 transaction without a fee; the RPC send* methods automatically add the fee, and the GUI will tell you a fee is necessary (and won't let you send unless you agree to it).
1485  Economy / Economics / Re: Managing a medium of exchange on: April 06, 2011, 01:32:16 PM
Be nice, y'all.  Todd emailed me directly and I steered him here because I don't have time to talk about economic theory with everybody who emails me these days.

Todd:  if you were designing a new currency, what would it look like?  Are you imagining a LETS-like system of credit?

Bitcoin is designed to be like a scarce natural resource, which is pretty conservative, really-- scarce natural resources have a long history of being used as currency.  I don't know enough about the alternatives to know whether or not they could work as an Internet currency-- the LETS systems I've heard about all rely on local interactions and trust to keep people from cheating.

PS: I'm going to move this thread to the Economics forum.
1486  Bitcoin / Mining / Re: Multiple instance of bitcoin with the same wallet on: April 05, 2011, 12:04:50 PM
Would it work if you used only two copies, one that always only mined, not spending the money, and keeping the same address, and another that has that address, that you use to spend and receive money as usual? Besides the lag 'til mining earnings show up on your spending wallet, is there gonna be any issue?

Better would be a new feature that tells the mining bitcoin "please credit generated bitcoins to THIS address (instead of a new one)."

If you are just mining, you don't need the private key at all, the bitcoin address (or public key) is enough to create the coin generation transaction.
1487  Economy / Gambling / Re: [1 BTC] Bitcoin Doubler, plus referral program. on: April 05, 2011, 12:00:03 AM
Do these types of 'make money without doing anything productive' schemes bother anybody else, or am I just a financial prude who doesn't recognize harmless fun when I see it?

I feel like we might soon need a Frequently Seen Schemes to go along with our FAQ, just to let people know that using a different currency doesn't suspend the laws of economics.
1488  Bitcoin / Bitcoin Discussion / Re: Bitcoin and Unemployed Teens on: April 03, 2011, 11:31:45 PM
The only question is how we reach them and expand our job market?

That's not the ONLY question.  A question I've been thinking a lot about is what are an employer's potential liabilities if they are caught paying employees in bitcoins "under the table."

I honestly don't know the answer if the employer is in Finland and the employee is in Ecuador, and suspect the answer might depend on whether or not the person doing the work is considered an independent contractor or an employee.
1489  Bitcoin / Bitcoin Discussion / Re: your faith in bitcoin on: April 03, 2011, 02:59:42 PM
I just bought two Boston Red Sox tickets from my friend Baer using bitcoins.  They really do work nicely for grassroots, person-to-person transactions, and the beautiful thing is you don't need a lot of people accepting them in one place to get started.
1490  Bitcoin / Mining / Re: Multiple instance of bitcoin with the same wallet on: April 02, 2011, 07:24:19 PM
Cloning your wallet to do anything besides backing it up is a bad idea.

It might work perfectly for a while... but you are very likely to get weird behavior from bitcoin sooner or later, because doing that is not tested or supported.

Where 'weird behavior' is one clone of the wallet shows one balance, the other clone shows another, and you might end up with bitcoins that you can spend from one wallet but not the other (or, worst case, end up with bitcoins that neither wallet is able to spend).

If you REALLY REALLY REALLY want to do this... then get the latest code from git, pull sipa's 'Spent per txout' patch, and then spend a bunch of time testing to find out what happens when your cloned wallets eventually start using different keys from the keypool.

1491  Bitcoin / Mining / Will merchants or miners strike it rich? on: April 01, 2011, 02:12:54 PM
From wikipedia:
Quote
Recent scholarship confirms that merchants made far more money than miners during the Gold Rush.

So, who are the merchants in the bitcoin rush?
1492  Bitcoin / Development & Technical Discussion / [PULL] Tonal Support on: April 01, 2011, 01:37:41 PM
Adds support for the Tonal numbering system to bitcoin.  Branch is at  https://github.com/gavinandresen/bitcoin-git/tree/tonal

Pull request is:
  https://github.com/bitcoin/bitcoin/pull/8

(Note: you will need Tonal Git and a Tonal-capable browser to follow that link).
1493  Bitcoin / Development & Technical Discussion / Re: why JSON RPC values not use INT64 instead of float string? on: April 01, 2011, 11:58:01 AM
I am really paranoid about leakage, and for me to even touch a float when dealing with people's money is unacceptable. On Britcoin, there's a whole system of balances and checks at every stage of the various transactions to ensure consistency to all decimal places, and I would not want to throw a spanner in the works because of a tiny rounding error (which would throw up flags and warnings everywhere). Even hearing the words round(...) is like heresy.

Am I the only person here who looks at our documentation for how to use bitcoin from PHP and thinks "people are going to run away screaming" ?  See:  https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)

I strongly believe you are making the common cases (simple shopping carts or "hold a bitcoin balance for a customer and let them spend it") much, much more complicated than necessary.

What do other people think?  I'd especially like to hear from people who have prior experience using PHP to implement shopping carts and other simple applications that deal with money.  Did you use BCMATH/GMP?
1494  Bitcoin / Development & Technical Discussion / Re: why JSON RPC values not use INT64 instead of float string? on: March 31, 2011, 12:04:07 PM
Ok.... so Gavin asked me (many times before and now) for the proof that the banking/financial industry avoids floats.

HOW MANY TIMES DO I HAVE TO YELL THIS?Huh??

Of COURSE you shouldn't use floats internally (unless you are doing something trivial like adding up items in a shopping cart).

We are talking about the JSON-RPC api.  Which is an api for communicating between bitcoin and other applications, in which all values are turned into strings.

So:  what are the best practices in the banking world for representing monetary values in strings?  As far as I can tell, the answer is "write them out as decimal values and convert them to Decimal() or integer as you read in or write out."

Which is exactly what Bitcoin does, and which is what I think we should recommend to people.
1495  Bitcoin / Development & Technical Discussion / Re: why JSON RPC values not use INT64 instead of float string? on: March 30, 2011, 07:18:46 PM
The main problem is that floating point is not sufficient to accurately store a Bitcoin balance

An IEEE double-precision floating point number has 53 bits of precision, which IS sufficiently accurate to store a bitcoin balance.

Every single possible bitcoin value can be converted to and from an IEEE 64-bit float with no loss of precision.

I agree that if you're going to be performing lots of calculations on bitcoin values you need a Decimal type (and ClearCoin stores and uses python's decimal.Decimal(precision=8) for all bitcoin values)-- if you don't, floating point errors can accumulate and eventually cause you to gain or lose .00000001 of a coin.

But really the main problem with storing monetary values as any floating point type is you're likely to be embarrassed by mistakes like error's cash register receipt if you truncate values instead of rounding before printing.
1496  Bitcoin / Development & Technical Discussion / Re: why JSON RPC values not use INT64 instead of float string? on: March 30, 2011, 06:38:57 PM
All righty, I hereby state:

All money values in the bitcoin JSON-RPC interface Are and Shall Be treated as Decimal, with 8 digits of precision after the decimal point.

If you're writing a banking application in a language that doesn't support Decimal types from JSON, then you should pack up your bags and go home.
1497  Bitcoin / Development & Technical Discussion / Re: why JSON RPC values not use INT64 instead of float string? on: March 30, 2011, 06:29:02 PM
If we want to be taken remotely seriously by the banking and merchant communities, floats need to go.

People keep claiming that, and yet I just did YET ANOTHER google search for "banking apis", clicked through to the Open Financial Exchange standard (from Microsoft and Quicken), and what do you know!  Money amounts look like floats:

Code:
           <STMTTRN>
              <TRNTYPE>CREDIT
              <DTPOSTED>20070315
              <DTUSER>20070315
              <TRNAMT>200.00
              <FITID>980315001
              <NAME>DEPOSIT
              <MEMO>automatic deposit
            </STMTTRN>
http://www.ofx.net/OFXExamplesPage/OFXExamples.aspx

1498  Bitcoin / Development & Technical Discussion / Re: why JSON RPC values not use INT64 instead of float string? on: March 30, 2011, 06:22:16 PM
Apologies to Nefario, I was reacting to the wiki pages written by genjix on how to use PHP with bitcoind that started with:

+ First, compile my fork.
+ Next, install the GMP and BCMath libraries...

And why do I defend floats:  because simple things should be simple.  Using GMP/BCMATH is overkill for 98% of what bitcoin JSON-RPC users will be doing.

And because certain people keep beating this dead horse.  I have said that I am PERFECTLY WILLING to support strings in the JSON-RPC interface if somebody can demonstrate to me someplace where it is actually a real problem (that isn't trivially solved using something like round(value*1e8+0.5) or printf("%.08", value)).

1499  Bitcoin / Development & Technical Discussion / Re: why JSON RPC values not use INT64 instead of float string? on: March 30, 2011, 05:11:31 PM
Can you'all educate me about these mythical rounding errors that require using GMP?

I can see, maybe, if you're computing interest down to the penny on a 30-year mortgage you might conceivably be off by a penny if you use 64-bit floats instead of 64-bit integers, although even there you're going to have to think hard about rounding as you get integer remainders.

And I can see being really careful if you're writing a bitcoin exchange site or bitcoin bank that deals in thousands of internal transactions that must all balance exactly.

But for the typical PHP website that is just going to add up 10 items in a shopping cart using plain-old PHP Numbers will be just fine.   I don't see PayPal recommending that PHP users of it's APIs install GMP.  Recommending that any website dealing with bitcoins compile genjix' fork and use GMP is a really good way to ensure that nobody accepts bitcoins.

1500  Bitcoin / Development & Technical Discussion / Re: Bitcoin account format spec? on: March 30, 2011, 03:57:56 PM
I did however find something else very interesting while I was there... the 'vanity' param Smiley

That's not part of the official API, that's just a fun hack I made one day on a whim.

The technical information in the wiki needs more attention and polish; if you have time and are a decent writer, please jump in and help out.
Pages: « 1 ... 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 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!