Bitcoin Forum
May 09, 2016, 01:11:34 AM *
News: New! Latest stable version of Bitcoin Core: 0.12.1 [Torrent]
 
  Home Help Search Donate Login Register  
  Show Posts
Pages: « 1 ... 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 114 »
2121  Bitcoin / Development & Technical Discussion / Re: Transactions and Scripts: DUP HASH160 ... EQUALVERIFY CHECKSIG on: August 03, 2010, 11:44:19 AM
I would like to enable users to create other custom assets.  The asset would have a globally unique hash and could ben sent / recved to addresses.    For example, a company could issue "shares" that could then be exchanged and verified by bitcoin.  A game engine could issue its own type of currency and have it tracked.   

Is anything like this even remotely possible with scripts or would that require a breaking change?   Is it even possible to 'upgrade' the network to support such an option at this point?
I don't think you need scripts to do something like that.

Just send a bitcoin to yourself, and then declare that transaction is the "root transaction for My Valuable Asset."

You'd need a custom client that only accepted or spent transactions that could be entirely traced back to that Root Transaction (not hard, all transactions can be tracked back).  And shows fractions of that coin as units of your custom currency.  And you'd probably want to make some other changes so your users didn't accidently (or purposely) mix Your Valuable Asset coin with regular bitcoins (like a custom wallet and different scheme for generating payment addresses).

2122  Bitcoin / Development & Technical Discussion / Re: IMPORTANT: TEST network block chain is split on: July 31, 2010, 07:47:16 PM
Shouldn't it be able to fix itself without having to delete the block data?
As long as everyone with an 'old' client stops generating, the bad fork should get shorter and die?

Just checking my understanding.
Yep, you're right.  The good fork is longer than the bad one now; the last ORPHAN BLOCK my TEST bitcoind got was about 20 hours ago.
2123  Bitcoin / Development & Technical Discussion / Re: TEST network, for experimental development and hacking on: July 31, 2010, 06:33:50 PM
svnTEST branch is up on github.

I also uploaded just the production-bitcoin-to-TEST-network-bitcoin patches to github, at: http://gist.github.com/502460
... so:
Code:
curl http://gist.github.com/raw/502460/2182724de9ef2d6721bf0e0962cc6a6895bcbee4 | patch -l
... should patch production network source code to TEST network.  And:
Code:
curl http://gist.github.com/raw/502460/2182724de9ef2d6721bf0e0962cc6a6895bcbee4 | patch -l --reverse
... will go the other way.
2124  Bitcoin / Development & Technical Discussion / Re: TEST network, for experimental development and hacking on: July 31, 2010, 05:43:45 PM
That IS part of the new -port / -rpcport code (I use boost::interprocess::file_lock to make sure bitcoins running on different ports don't try to use the same wallet/blkindex/etc files).

I'll create an svnTEST branch that omits those changes, and will always be just a TEST-network version of the latest svn trunk.
2125  Bitcoin / Development & Technical Discussion / Re: [PATCH] implement 'listtransactions' on: July 31, 2010, 01:58:09 PM
Updated to version 8 of listtransactions:
http://gtf.org/garzik/bitcoin/patch.bitcoin-listtransactions
Cool!  Hope you don't mind, I added it to my github network as a 'feature' branch.
2126  Bitcoin / Development & Technical Discussion / Re: TEST network, for experimental development and hacking on: July 31, 2010, 01:35:58 PM
Can you be more specific about where your build fails?  Is it in the new code to support the -port / -rpcport options (which I should have put on a different git branch) ?
2127  Bitcoin / Development & Technical Discussion / Re: [PATCH] implement 'listtransactions' on: July 30, 2010, 07:48:33 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.
It's pretty common to turn maps into objects, so you can use syntax like:
  foo.tx_id
... instead of foo['tx_id'].  Especially if you're doing something like passing the data into a templating system (which may ONLY understand the object.field syntax).

And foo.class just doesn't work out nicely.
2128  Bitcoin / Development & Technical Discussion / Re: Official git mirror of bitcoin SVN? on: July 30, 2010, 05:55:54 PM
Gavinandresen has one, but it is not currently up to date with the svn (r119).

http://github.com/gavinandresen/bitcoin-git/tree/svn
I just updated my git "svn" branch with r116-119, and also merged it against 'master'.

The git network diagram showing what I done did is kinda pretty.
2129  Bitcoin / Development & Technical Discussion / IMPORTANT: TEST network block chain is split on: July 30, 2010, 05:09:20 PM
The good news is the TEST network is doing its job-- the problem patched by the 0.3.6 release (invalid transactions accepted as valid) was implemented and demonstrated on the TEST network.

The bad news is that means the TEST network block chain split yesterday.  If you are, or were, running a release prior to 0.3.6 on the TEST network, you've got bad blocks in your blkindex.dat and blk0001.dat files.

So, you need to:
1. Shut down bitcoin or bitcoind
2. Remove the blkindex.dat and blk0001.dat (in ~/.bitcoinTEST or ~/Library/Application Support/BitcoinTEST or %APPDATA%\BitcoinTEST) files.
3. Be sure you're upgraded to 0.3.6
4. Run bitcoin/bitcoind, and you'll download the "good" block chain.

Any blocks you generated after the bad blocks are invalid, so if you were busily generating blocks on the TEST network in the last couple of days... sorry, that play money is gone.

Transactions that you made may or may not make it to the new block chain, depending on whether or not they originated from invalid coins (any coins generated after the bad blocks are invalid).

2130  Bitcoin / Development & Technical Discussion / Re: Protocol Buffers for Bitcoin on: July 30, 2010, 02:28:23 PM
Speaking of the network...
... is there any really robust, generic, low-latency, open source p2p network "middleware" out there?

I think using protocol buffers as the serialization format is a good idea, but I don't think just switching to protocol buffers "buys" enough to be worth the effort (at least not now, when transaction volume is low).

I'd like to see some experimenting with running bitcoin on top of a different networking layer (and use protocol buffers, too).  Is there a p2p network that is designed to be extremely highly reliable and difficult to infiltrate or attack with malicious nodes?
2131  Bitcoin / Development & Technical Discussion / Re: [PATCH] implement 'listtransactions' on: July 30, 2010, 01:18:06 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.

Or, maybe better, get rid of that field and just report credits as positive numbers and debits as negative.  And add a separate "generated" field (boolean true or false).

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));
2132  Bitcoin / Development & Technical Discussion / Re: JSON-RPC password on: July 30, 2010, 12:53:40 PM
$ ./bitcoind -datadir=/home/theymos/bitcoin -conf=/home/theymos/bitcoin/bitcoin.conf && ./bitcoind getinfo
error: You must set rpcpassword=<password> in the configuration file:
That second ./bitcoind getinfo has to be:
Code:
./bitcoind -datadir=/home/theymos/bitcoin -conf=/home/theymos/bitcoin/bitcoin.conf getinfo
... otherwise it will use the default config file and datadir.
2133  Bitcoin / Bitcoin Discussion / Re: Network-wide self-corecting mechanisms on: July 29, 2010, 06:49:18 PM
If the market want credits, they will get it. Beside, bitcoins is already decentralized. What more decentralization do you want?
What the hell are you asking?
He/she/they want an easier way for The Crowd to control The Policy-- right now, if you know enough C++ to modify and compile your own version of Bitcoin and can convince enough other people to use your version, then you can change Policy.

Allowing everybody to tweak Policy and having some sort of mechanism that figures out what "everybody" wants to do is an interesting idea.  I have no idea how you could actually make it work, and it would open up a whole other can of potential security problems (what if somebody controls a bunch of IP addresses and decides to "vote" for a policy that benefits them?  or can you tie the policy changes to proof-of-work somehow?  How do you aggregate what "everybody" thinks in a non-spoofable way? etc etc etc)...
2134  Bitcoin / Technical Support / Re: Transaction disappeared in the void... on: July 29, 2010, 04:28:35 PM
I did a transaction about 2 hours ago and it is staying at 0/unconfirmed, the recipient has no credit showing or even an unconfirmed line... The coins seems to disapeared in the void...
Should I wait is this just a transaction that is going to take exceptionally long?

Are you still downloading the block chain?  If you don't already have all 70,000+ blocks in the block chain, then you transaction won't show up as confirmed until you catch up.
2135  Bitcoin / Development & Technical Discussion / Re: Build error SVN r115 on my Mac: workaround on: July 28, 2010, 09:40:55 PM
Was that the only thing I broke in the OSX build?!  Does it actually work after just that one change?
I built a TEST-network bitcoind with the SVN r115 changes merged in, and yes, after that one change it's been happily generating coins all afternoon.
I don't use the stock makefile.osx, though-- I setup the dependency directory structure a little differently (for no really good reason).
2136  Bitcoin / Bitcoin Discussion / Re: Incentives on: July 28, 2010, 06:15:02 PM
If you include a double-spent transaction in a block you generate, then that block will be rejected and you don't get your 50BTC reward.
2137  Bitcoin / Development & Technical Discussion / Build error SVN r115 on my Mac: workaround on: July 28, 2010, 03:18:25 PM
I get:
Code:
/var/folders/n7/n7Do3Krz2RWPeE+1YxvhUU+++TM/-Tmp-//cc8PgHsQ.s:879:suffix or operands invalid for `call'
... compiling cryptopp/sha.cpp (latest SVN source) on my Mac (gcc version 4.2.1).

I fixed it by adding -DCRYPTOPP_DISABLE_ASM  to my makefile; perhaps somebody with more experience compiling C++ on a Mac can figure out a better fix.
2138  Bitcoin / Technical Support / Re: Having problems specifing -datadir on: July 28, 2010, 01:40:57 PM
Does it work if you specify the full path?  e.g. -datadir=/home/psyvenrix/datadir2  ?
2139  Bitcoin / Technical Support / Re: I dont get money on: July 27, 2010, 02:36:26 PM
the border?
1 hours 1 day? 1 week?
Before the last two difficulty adjustments it took my (4-year-old) mac laptop two weeks to generate any bitcoin.

So after the adjustments, I estimate it could take it 1-2 months to generate any.
2140  Bitcoin / Development & Technical Discussion / Running on a port other than 8333 on: July 27, 2010, 02:08:17 PM
I've been working on adding -port= / -rpcport=  command line / config file options to bitcoin.  The idea is to let you run multiple copies of bitcoind on one machine; I need this because I'm planning on having at least two Bitcoin-related web services (the Bitcoin Faucet and a service to be named later), I want them to have completely separate wallets, but I don't want to rent multiple servers to host them.

Usage looks like this:
Code:
$ ./bitcoind getbalance  # The TEST network Faucet bitcoind
40616.66159265000
$ ./bitcoind -datadir=/home/bitcoin/.bitcoinTEST2 getbalance
1000.000000000000
$ cat /home/bitcoin/.bitcoinTEST2/bitcoin.conf
rpcpassword=.....
port=18666
rpcport=18665

Satoshi pointed out that allowing bitcoin/bitcoind to run on a non-standard port could be dangerous, because if misconfigured two bitcoins might both open and write to the same database.  To prevent that, the <datadir>/db.log file is used as a lock so only one bitcoin can access the same datadir at a time (uses boost::interprocess::file_lock, which is purported to be cross-platform and well-behaved, even if bitcoin crashes).

Issues that came up as I was doing this:

I left a call to wxSingleInstanceChecker in the Windows GUI code, so no multiple-gui-bitcoins-listening-on-different-ports on Windows.  I don't do Windows...

I didn't bother making the error handling graceful if you point two bitcoins at the same datadir (you get a runtime exception "Cannot lock db.log, is bitcoin already running?").

Patches are at http://pastebin.com/2e4hfXSS; I've only tested on Linux so far, anybody willing to try this on Windows?

Pages: « 1 ... 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 114 »
Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!