Author

Topic: Some questions about scripts (Read 1216 times)

member
Activity: 111
Merit: 10
May 17, 2011, 11:56:17 AM
#6

That's all of them on the main network. There are a few more on testnet:
http://blockexplorer.com/testnet
(The public key sizes for these transactions is odd.)

Thanks!

That pretty much answers all my questions about scripts (for now). If I find anything else I don't understand, I'll ask Smiley
administrator
Activity: 5222
Merit: 13032
May 17, 2011, 10:22:49 AM
#5
That's nice to know. Are there any non-standard transactions in the blockchain yet? Blockexplorer shows three under "Latest strange transactions", are there more?

That's all of them on the main network. There are a few more on testnet:
http://blockexplorer.com/testnet
(The public key sizes for these transactions is odd.)
member
Activity: 111
Merit: 10
May 17, 2011, 09:02:09 AM
#4
...
Exactly.
...

Again correct, but I'm not sure the default client will be able to create a corresponding txIn 9even though it's trivial).
Thanks Sipa, I think I start to understand the bitcoin protocol more completely now Smiley

Luke-jr already accepts non-standard transactions and mines them into blocks, if you include a fee of 0.00004096 bitcoins per 512 bytes, and connect your (modified) client to his node using "-addnode=nat.router.dashjr.org".

That's nice to know. Are there any non-standard transactions in the blockchain yet? Blockexplorer shows three under "Latest strange transactions", are there more?
donator
Activity: 826
Merit: 1060
May 17, 2011, 08:19:41 AM
#3
... if a miner starts accepting transactions with non-standard scripts ...

Luke-jr already accepts non-standard transactions and mines them into blocks, if you include a fee of 0.00004096 bitcoins per 512 bytes, and connect your (modified) client to his node using "-addnode=nat.router.dashjr.org".
legendary
Activity: 1072
Merit: 1181
May 17, 2011, 06:43:07 AM
#2
Hi everyone,

I've been looking at the script parts now of the Bitcoin protocol and have the following questions about it:

1) Right now there are only two (I think) different scripts whitelisted and it's not possible to do custom scripts. If a miner starts accepting transactions with non-standard scripts and creates a new block using them, will they also be accepted by the Bitcoin client?

I'm guessing they will, because the transactions being in a block already means they are valid transactions. I'm just asking for confirmation.

Exactly.

2) If I create a nonstandard transaction, with a valid and normal TxIn but with a special TxOut that has a script that always evaluate to true, everyone will be able to claim those bitcoins and use them for their own needs. In this situation, I'm assuming the first person that has a transaction in a valid block will be the "winner" and all the others that tried to use those coins will have their transactions never confirmed?

Again correct, but I'm not sure the default client will be able to create a corresponding txIn 9even though it's trivial).
member
Activity: 111
Merit: 10
May 17, 2011, 06:28:36 AM
#1
Hi everyone,

I've been looking at the script parts now of the Bitcoin protocol and have the following questions about it:

1) Right now there are only two (I think) different scripts whitelisted and it's not possible to do custom scripts. If a miner starts accepting transactions with non-standard scripts and creates a new block using them, will they also be accepted by the Bitcoin client?

I'm guessing they will, because the transactions being in a block already means they are valid transactions. I'm just asking for confirmation.

2) If I create a nonstandard transaction, with a valid and normal TxIn but with a special TxOut that has a script that always evaluate to true, everyone will be able to claim those bitcoins and use them for their own needs. In this situation, I'm assuming the first person that has a transaction in a valid block will be the "winner" and all the others that tried to use those coins will have their transactions never confirmed?

Thanks!
Titeuf
Jump to: