Bitcoin Forum
May 25, 2024, 06:13:01 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 »
881  Bitcoin / Bitcoin Discussion / Re: Restoring a backup perfectly, what happens with my spend coins? on: May 29, 2011, 10:49:18 PM
A wallet does not contain any coins - it cointains the private keys necessary to spend them. The information about the coins themselves is stored in the network.

If you use the same wallet in two places, the first to spend it, gets it.
882  Bitcoin / Bitcoin Discussion / 10000000000000000000 hashes on: May 29, 2011, 03:27:28 PM
With block 127430, the total number of hashes estimated to have been performed as work in the block chain surpassed 10^19, or 10 billion billion hashes.

This may look like a large number, but at the current hashing speed, it would only take around a month to redo all that...
883  Bitcoin / Bitcoin Discussion / Re: Bitcoin v2.0 on: May 28, 2011, 07:57:21 PM
... but then should be started again distributing coins without mining - just as many $ you have - that many BTC's u will get.

That's exactly what exchanges will do, and already do.

Early adopters do not necessarily get rich - they only get rich if they saw the exchange rate increase and didn't sell, from the very start to that hypothetical future moment resist the temptation to cash out and risk losing something or everything.

Also, in general I agree a somewhat better introduction rate function could have been chosen, but I'm far from convinced what a better rate would be.
884  Bitcoin / Development & Technical Discussion / Re: Transaction History - Gray/Grey vs Black? on: May 28, 2011, 01:28:44 PM
An outgoing transaction that you created yourself, or one that was found on the network or through rescanning?

Grey can mean it depends on a transaction that is not known.
885  Bitcoin / Development & Technical Discussion / Re: slight error in difficulty computation on: May 28, 2011, 10:24:41 AM
There's already a patch to fix it, see https://github.com/bitcoin/bitcoin/pull/276
886  Bitcoin / Development & Technical Discussion / Re: [PATCH] dumpprivkey and importprivkey RPC commands on: May 27, 2011, 10:01:52 PM
This patch is superceded by http://forum.bitcoin.org/index.php?topic=8091.0

It is not merged yet into mainline.
887  Bitcoin / Bitcoin Technical Support / Re: help bitcoin not working, transferred wallet on: May 26, 2011, 09:54:17 PM
If you are using 0.3.21 or later, this should work. You'll possibly need to wait until the blockchain is downloaded on the other computer though.

If you are using 0.3.20, you need start that the bitcoin program with the -rescan command-line option.

If you are using an earlier version, upgrade, and use -rescan.
888  Bitcoin / Development & Technical Discussion / Re: difficulty loss of significance error on: May 26, 2011, 09:43:18 PM
See https://github.com/sipa/bitcoin/commit/5e1e458ecb0f5d8e42e1a7fc3b8f9e1d37f52e46

I changed it a bit to match the coding standards, and removed the if test before the while loops.

Which name do you want on it?
889  Bitcoin / Bitcoin Discussion / Re: [RFC] Our next denomination: UBC on: May 26, 2011, 08:59:58 PM
One upon a time, people will be telling stories about some fool who paid 10 billion UBC for a pizza!

I like it!
890  Bitcoin / Development & Technical Discussion / Re: New IRC bootstrapping using random channels. on: May 26, 2011, 11:06:44 AM
DNS does not completely replace IRC, as its database can only be updated by the maintainer, not by everyone.

However, nodes also pass known addresses (including port, even with IPv6 support) to eachother. So DNS bootstrapping is just bootstrapping, finding *some* node, that knows other accessible nodes.
891  Bitcoin / Development & Technical Discussion / Re: can network speed be directly derived from difficulty? on: May 25, 2011, 09:43:02 PM
1 "hash" is double-SHA256 applied to a block header. Because some parts can be pre-calculated, and some parts ignored for our application, it is in reality equivalent to processing approximately 1.9 SHA256 blocks.

There is an easy relation between difficulty and block rate. For each block the network finds, on average 2^48/65535 (=4295032833)  times the difficulty hashes have been performed.

There is a relation between the difficulty and the network hash rate as well, assuming you know how often a block is found. Assuming there is one block every 10 minutes (as the network aims for), there are difficulty*2^48/65535/600 hashes done per second (=7158388*difficulty). If there are more blocks found than 1 per ten minutes, the rate is proportionally higher.

Currently (at difficulty 244139), this means that each block requires on average a whopping 1048587089228612 hashes to be performed.
892  Bitcoin / Bitcoin Discussion / Re: Printed bitcoins / fast transactions on: May 25, 2011, 01:36:58 PM
www.bitbills.com
893  Bitcoin / Bitcoin Discussion / Re: Satoshi's spare change? on: May 25, 2011, 10:46:38 AM
I believe Gavin has the alert key now.
894  Bitcoin / Bitcoin Discussion / Re: The hashrate has left the screen on: May 25, 2011, 09:31:11 AM
Fixed.
895  Bitcoin / Development & Technical Discussion / Re: [FEATURE REQUEST] Limit maximum number of connections to X on: May 24, 2011, 02:00:21 PM
It will not make more than 8 outgoing connections, but unless you supply -nolisten, it will listen for incoming connections independently. Maybe you just want to use -nolisten?
896  Bitcoin / Bitcoin Discussion / Re: I'm probably missing something...... on: May 24, 2011, 10:18:38 AM
The hard part is not doing the sha256 checksum - it's verifying whether the ECDSA signatures are valid, and the transaction inputs are spent yet. So it requires both computation (an ECDSA signature verification is close a millisecond of CPU time), and disk seeks (random access to the block chain database).
897  Bitcoin / Development & Technical Discussion / Re: [PATCH] (Mostly) Working backport to wx2.8 on: May 24, 2011, 09:09:11 AM
Very nice! It doesn't seem to work completely yet, as I get weird character in the status column and status bar below. Apart from that, really good to see we don't need a dev branch of wxwindows.

One suggestion: is it possible to define _ yourself, so all the GetTranslationChar calls aren't necessary?
898  Bitcoin / Development & Technical Discussion / Re: How is difficulty agreed upon? on: May 23, 2011, 09:43:24 PM
The difficulty is calculated through a formula that is based purely on information in the block chain, and is only valid within a particular branch of the block chain. Since everybody has this information, everybody just calculates it and verifies it for each incoming block. So the answer is: everyone.
899  Bitcoin / Bitcoin Technical Support / Re: so is everyone screwed like me on: May 23, 2011, 09:34:32 PM
IP addresses from those on the fallback node list are good candidates (https://en.bitcoin.it/wiki/Fallback_Nodes)
900  Bitcoin / Development & Technical Discussion / [PULL] Modularizing bitcoin: CWallet class on: May 23, 2011, 12:39:55 PM
Hello all,

I've been working on restructuring the bitcoin source code a bit. A first step was splitting off all wallet-handling into a separate class CWallet, so that eventually eg. multiple loaded wallets at the same time are possible, less global variables are needed and in general the dependencies inside the code are improved.

I ended up changing somewhat more than expected, as really a lot of code depended on access to those globals.

A summary:
  • A new class CKeyStore manages private keys, and script.cpp depends on access to CKeyStore.
  • A new class CWallet extends CKeyStore, and contains all former wallet-specific globals; CWallet depends on script.cpp, not the other way around.
  • Wallet-specific functions in CTransaction (GetDebit, GetCredit, GetChange, IsMine, IsFromMe), are moved to CWallet, taking their former 'this' argument as an explicit parameter
  • CWalletTx objects know which CWallet they belong to, for convenience, so they have their own direct (and caching) GetDebit/... functions.
  • Some code was moved between CWalletDB, CWallet and main.
  • Main.cpp keeps a set of all 'registered' wallets, which should be informed about updates to the block chain, and does not have any notion about any 'main' wallet. Function in main.cpp that require a wallet (such as GenerateCoins), take an explicit CWallet* argument.
  • The actual CWallet instance used by the application is defined in init.cpp as "CWallet* pwalletMain". rpc.cpp and ui.cpp use this variable.

The code is here: https://github.com/sipa/bitcoin/tree/walletclass/src

Note that the branch is not yet rebased against the current master, is a work in progress and may have bugs. There should not be any changes to the actual program logic, but segfaults or performance degradations are definitely possible.

Comments are welcome.
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 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!