Bitcoin Forum
May 08, 2024, 03:17:40 PM *
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 »
361  Bitcoin / Development & Technical Discussion / Re: cbitcoin - Bitcoin implementation in C. Currently in development. on: October 24, 2012, 07:34:18 PM
I already offered to do this (would take about a day) but he wants to keep the existing directory layout which would be PITA for any automake set-up ... so probably have to stick to his python hack make until he can change that.

I'm glad to see someone will be able to do it at some point.  I confess I tried to read the autotools documentation but I found it quite tough to grasp so I kind of gave up.

If you can do it, it's great.  It's ok if you prefer to wait until he changes the directory structure.  There is no rush.

If it's not easily possible to make a makefile (no pun intended there) without using a flat directory structure, then please change it. I'm fine with that. Even though I like the tree structure, it can be sacrificed for more important things.

Thank you for that comment. I will likely use a dual license with the GPL.

Awesome.

Here is standard-issue gift centipede cat for you:



Thank you. When should I expect it in the post?
362  Bitcoin / Development & Technical Discussion / Re: Ultraprune merged in mainline on: October 21, 2012, 11:25:38 PM
Doesn't bittorrent have an algorithm which allows for people to not contribute bandwidth but has incentives for nodes to do so? I just vaguely remember reading something about it.
363  Bitcoin / Bitcoin Discussion / Re: Yankee goes on Adam Kokesh to discuss Bitcoin. on: October 21, 2012, 08:14:11 PM
Oh how I wish bitcoin was only 131 lines of code...

It was a good interview but indeed some of the information was wrong.
364  Bitcoin / Development & Technical Discussion / Re: Decoding Block Index 0 on: October 21, 2012, 12:06:34 AM
It is not known whether this is a bug or intentional, but the reference client never adds the genesis transaction to its index. Thus, its outputs cannot be spent.

Changing this would imply giving Satoshi an instant switch to fork the network. I'm sure we respect him a lot, but not enough for that Smiley

I didn't know this. Better update my code !
365  Bitcoin / Bitcoin Discussion / Re: [ANN] cbitcoin 1.0 Alpha 4 Released. on: October 19, 2012, 07:22:13 PM
cbitcoin 1.0 is discontinued as many new features and improvements are in development for cbitcoin 2.0 and all work will go towards that from now on.
366  Bitcoin / Development & Technical Discussion / Generation of Test Blocks for the Production Network. on: October 18, 2012, 09:39:07 PM
Hello. For the testing of my block-chain validation code, I am needing some blocks which allow me to test various cases. For instance a block where everything is valid except for the timestamp.

The problem is, to test these without disabling the PoW checks, the blocks need to have valid hashes. I'm making this topic to ask if anyone would like to help generate some of these blocks. Once created these blocks should hopefully be useful for many bitcoin implementations.

Matt Corallo has a program named pulltester which may help with this, though I'll leave him the opportunity to explain that in more detail, if he wishes.

I'll list here the blocks I know I'll need to test, though there may be more blocks which will be helpful (inc. for other implementations). A lot of the tests can be done on the validation functions without needing separate blocks for each case so it may seem many things are missing.

All of these blocks should be valid except for the things mentioned. This includes a valid hash.

Blocks after the genesis block with the following problems (ie. At height 1):

* Block with zero transactions.
* Block with incorrect merkle root.
* Block with first transaction not a coinbase.
* Block with non-final coinbase transaction
* Block with zero outputs
* Block with a size of 1000001 bytes.
* Block with bad coin-base script size (< 2 or > 100).

Blocks after the 100 miner test blocks which are made with this code: https://github.com/bitcoin/bitcoin/blob/master/src/test/miner_tests.cpp

* A block with a mixture of sigops (inc. P2SH) with 20000 sigops (This is a valid one).
* Same but with 20001 sigops.
* Block spending coinbase from height 2.
* Block with non-coinbase transaction that is not final.
* Block with transaction spending output of a transaction earlier inside that block (Valid).
* Block with transaction spending output of a transaction later inside that block.
* Two inputs referencing same output in two different transactions in a block.
* Block with transaction with invalid input script.
* Block with input referencing output that does not exist.
* Block with coinbase value equal to block reward plus several transaction fees (Valid).
* Block with coin base value equal to block reward plus several transaction fees plus one.
* Block with timestamp 1231006525.

I also need to test some obscure parts of the block-chain re-organisation.

This can be done with a branch which goes off the branch created with the 100 test blocks and becomes the main chain. Then several blocks can be added to that branch so that the branch with the 100 blocks can be extended without becoming the main chain. Then another branch is made of this branch (Not an extension) which becomes the main branch.

So to begin with there will be these blocks

Code:
A: 0 --> 1
B:   `-> 1 … 99 --> 100

Next a new main chain is need that branches of the previous main chain:

Code:
A: 0 --> 1
B:   `-> 1 … 99 --> 100
C:              `-> 100 --> 101

Then this new branch is extended to make room for extension of the other branch.

Code:
A: 0 --> 1
B:   `-> 1 … 99 --> 100
C:              `-> 100 --> 101 --> 102

Now the other branch is extended:

Code:
A: 0 --> 1
B:   `-> 1 … 99 --> 100 --> 101 --> 102
C:              `-> 100 --> 101 --> 102

Then the new main chain is made:

Code:
A: 0 --> 1
B:   `-> 1 … 99 --> 100 --> 101 --> 102
D:             \                `-> 102 --> 103
C:              `-> 100 --> 101 --> 102

What that tests, is reorganisation in the case where the new main chain makes use of a parent branch with previous validation data and which requires further validation. In this case block B101 has not been completely validated before the reorganisation because complete validation is only done on blocks that enter the main chain or when there is a reorganisation. That's just one part of the code that needs testing.

It would also be good to have more blocks with an invalid block for B101 as that would ensure an invalid block in a parent branch whilst doing complete validation would be caught. B101 would need to be invalid in a particular way. Give B101 an invalid coinbase output value. That would work.

So what is needed is C100, C101, C102, B101, B102, D102, D103, where B is the branch using the miner test blocks.

And also another set of B101, B102, D102, D103 with an invalid B101.

Sorry that this is confusing.

I also need to test the branch trimming code but I won't figure that out until I've actually coded it.  Smiley

Thanks for anyone willing to help. If anyone needs any further information please ask.
367  Bitcoin / Development & Technical Discussion / Re: Creating the 100 Miner Test Blocks. on: October 17, 2012, 06:56:43 PM
Okay the issue was with the input script length. Mine was 5 bytes but it should have only been 2 bytes. One byte each for the two numbers. All sorted now.
368  Bitcoin / Development & Technical Discussion / Creating the 100 Miner Test Blocks. on: October 17, 2012, 06:01:20 PM
Hello. I'm trying to generate the mining test blocks from here: https://github.com/bitcoin/bitcoin/blob/master/src/test/miner_tests.cpp

I assume they work on top of the genesis block and so I tried creating them but the first fails with a bad hash. The first block data I have is this:

Code:
0x1, 0x0, 0x0, 0x0, // Version 1
0x6f, 0xe2, 0x8c, 0xa, 0xb6, 0xf1, 0xb3, 0x72, 0xc1, 0xa6, 0xa2, 0x46, 0xae, 0x63, 0xf7, 0x4f, 0x93, 0x1e, 0x83, 0x65, 0xe1, 0x5a, 0x8, 0x9c, 0x68, 0xd6, 0x19, 0x0, 0x0, 0x0, 0x0, 0x0, // Genesis Prev Hash
0x42, 0xa, 0x9e, 0xc3, 0xf4, 0xa4, 0x97, 0x26, 0x7d, 0xb5, 0xe0, 0x7d, 0xdd, 0x2e, 0xea, 0x53, 0xa5, 0x37, 0x68, 0xbc, 0x49, 0xd7, 0x89, 0xb9, 0x9c, 0x8a, 0x7a, 0x5a, 0x98, 0x92, 0x9b,
0xba, // Merkle Root
0x2a, 0xab, 0x5f, 0x49, // TimeStamp
0xff, 0xff, 0x0, 0x1d, // Target
0x23, 0xe2, 0xa3, 0xa4, // Nonce
0x1, // Transaction number
0x1, 0x0, 0x0, 0x0, // Transaction version
0x1, // Input number
0x0 <repeats 32 times>, // Coinbase output reference hash
0xff, 0xff, 0xff, 0xff, // Coinbase output reference index
0x5, // Input script length
0x4, // Extra nonce
0x0, 0x0, 0x0, 0x0, // Height
0xff, 0xff, 0xff, 0xff, // Sequence
0x1, // Output number
0x0, 0xf2, 0x5, 0x2a, 0x1, 0x0, 0x0, 0x0, // Output value
0x0, // Output script length. Assuming nothing comes after with zero length???
0x0, 0x0, 0x0, 0x0 // Locktime

What am I doing wrong, does anyone know?

I need to do this to do some block validation tests.
369  Other / Off-topic / Re: Bitcoin memes! on: October 17, 2012, 03:26:20 PM


I wonder if those superhuman people that can do square roots of large numbers instantly could actually learn how to do the SHA-256 algorithm in their mind?
370  Economy / Economics / Re: Science of Getting Rich on: October 16, 2012, 11:17:42 AM
In order to become rich, you must first learn to spend less than you earn!  Getting rich does NOT happen by earning a lot of money.

#richdadpoordad

I thought this was obvious but apparently not.
371  Other / Off-topic / Re: Looking for good Paleo Diet recipes on: October 15, 2012, 09:18:04 PM
Do you have anything I can read about that being the case?

I suppose if potatoes are to be avoided then carrots and parsnips are to be avoided too?
372  Other / Off-topic / Re: Looking for good Paleo Diet recipes on: October 15, 2012, 08:33:58 PM
I don't eat grains when I cook for myself anymore but I still have cheese, butter, dark chocolate and potatoes. I'm not convinced that diary is a major problem in small amounts and one potato every few meals is not a major amount of carbohydrate (which a lot of people following the paleo diet get paranoid about). And if you are basing the diet decision on what hunter-gatherers ate, I believe they did eat potatoes and other starchy vegetables, though maybe they didn't? It depends largely on location of-course. Diet changes massively depending on what food sources are available.
373  Bitcoin / Bitcoin Discussion / Re: I posted some flyers in public downtown yesterday on: October 14, 2012, 07:24:24 PM
You could tape a piece of paper onto the bank note with "bitcoin.org" or whatever on it. Then the tape can just be peeled off.
374  Bitcoin / Bitcoin Discussion / Re: If you want to know why I hate the dev team and how they treat Bitcoin... on: October 11, 2012, 02:27:35 PM
It doesn't have to be a problem because people do not need to download it.
375  Bitcoin / Bitcoin Discussion / Re: If you want to know why I hate the dev team and how they treat Bitcoin... on: October 11, 2012, 01:36:11 PM
You can't spend arbitrary amounts, you can only spend the entire amount of bitcoins held with a key or not. So it would be like printing your own cash backed by bitcoins. It's more complicated because it requires a printer and you'd need to remember and organise how much money is stored on the keys (How do you handle change?).

Why is it hard to scan a QR code or use NFC and then confirm a payment on your mobile? Bitcoin can be used in that fashion and it's easy no? Faffing around with printed keys is not as easy in my opinion. Sure, you might say something like "But the bitcoin payments require confirmations and the private keys can be verified instantly". Well I'm working on a way to remove all fears of 0-confirmation payments whether or not these fears are justified anyway.

As for the blockchain download. This doesn't need to be a problem either.
376  Bitcoin / Bitcoin Discussion / Re: If you want to know why I hate the dev team and how they treat Bitcoin... on: October 10, 2012, 08:44:53 PM
I do believe that paper wallets are a viable solution that is totally underrepresented in the materials one's likely to find in a cursory web search for bitcoin.

The generator at BitAddress.org should be available on Bitcoin.org.

The community of people able to use Bitcoin would be much bigger if they could easily print their own wallet, buy bitcoins somewhere to fund it, and type their private key directly into the merchant of their choice, no differently than if they were buying and redeeming an iTunes gift card.  That "type it into a merchant" step would come much more easily if bitcoind offered support for "sweeping" private keys, which is why I proposed it over a year ago.  A merchant would simply put a web front-end on the function, sweep funds to an address he controls, and then treat swept payments the same as an incoming payment from elsewhere on the internet.

I run into people all the time who just wanted to own some coins, downloaded the client, and gave up because they bit off more than they could chew and because to them, a day long block chain download sounded nothing like "the future of money".  If they could have printed themselves a wallet in 30 seconds, then handing someone 100 bucks for some play coins would have been far more pleasant.

This seems to make things more complicated, not less. Maybe I haven't got a clue.
377  Bitcoin / Development & Technical Discussion / Re: Double-spending with 6 confirmations on: October 06, 2012, 01:42:02 PM
I'm looking to create a secure connection with the client I'm making. So the chance of an attack using this method would be impossible. The most an attacker could therefore do is prevent someone using bitcoin if the attacker has control over the internet connection.
378  Bitcoin / Development & Technical Discussion / Re: cbitcoin - Bitcoin implementation in C. Currently in development. on: October 06, 2012, 12:38:49 AM
Thank you for that comment. I will likely use a dual license with the GPL.
379  Bitcoin / Bitcoin Discussion / Re: [ANN] cbitcoin 1.0 Alpha 4 Released. on: October 05, 2012, 08:50:16 PM
1.0 Alpha 4 is now available to download: http://cbitcoin.com/

This release fixes issues with the CBBigInt code, an issue with compilation and an issue with CBSubScriptRemoveSignature.
380  Bitcoin / Development & Technical Discussion / Re: cbitcoin - Bitcoin implementation in C. Currently in development. on: October 05, 2012, 07:42:41 PM
Smart lawyers spent years on the current licenses, including rounds of open review and comments across multiple jurisdictions in the world.

It is doubtful lone efforts will match that sufficiently to make a bulletproof license, compared to existing ones.

Well I plan to have a lawyer look over the license before I would use it. Many people use customer software licenses which might not have as much review as the popular licenses you talk about but at least have lawyers look at them.

And the license will be a modified GPL license, only changing necessary parts to satisfy my requirements. If you look at what I've done so far I've just removed a lot of the GPL restrictions and added an additional part to the "Additional Terms" section in attempt to create compatibility with the Apache License 1.0 which is needed for OpenSSL.
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 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!