Bitcoin Forum
May 08, 2024, 09:38:24 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Are transactions with the extra OP_NOP on the end still valid?  (Read 1073 times)
brian_armstrong (OP)
Newbie
*
Offline Offline

Activity: 29
Merit: 0


View Profile
January 10, 2012, 08:17:24 AM
 #1

I noticed this tx in the main chain has an extra OP_NOP on the end:

http://blockexplorer.com/tx/5492a05f1edfbd29c525a3dbf45f654d0fc45a805ccd620d0a4dff47de63f90b

Is this still considered valid if it were to reappear today or is this an exception sort of like the OP_CHECKSIG abuse transactions from a while back? (that would no longer be accepted)
https://en.bitcoin.it/wiki/Incidents#OP_CHECKSIG_abuse

I could probably answer this by reading the code in the official client that checks whether a tx is valid, but I wasn't able to find it just by poking around GitHub.  If someone has a link that would be great.  Thanks!
Be very wary of relying on JavaScript for security on crypto sites. The site can change the JavaScript at any time unless you take unusual precautions, and browsers are not generally known for their airtight security.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Stefan Thomas
Full Member
***
Offline Offline

Activity: 234
Merit: 100


AKA: Justmoon


View Profile WWW
January 10, 2012, 03:03:35 PM
 #2

This transaction would still be valid if it appeared in a block today.

As a loose transaction however, it would be rejected. There are stricter rules for what transactions an unmodified clients will relay and include in its own blocks vs. what it will accept inside of other people's blocks.

Twitter: @justmoon
PGP: D16E 7B04 42B9 F02E 0660  C094 C947 3700 A4B0 8BF3
etotheipi
Legendary
*
expert
Offline Offline

Activity: 1428
Merit: 1093


Core Armory Developer


View Profile WWW
January 10, 2012, 08:01:25 PM
 #3

If a transaction shows up in a block that uses an arbitrarily complex, non-standard script (but doesn't use any disabled op-codes), it will be accepted by all the nodes as long as it is a valid script (and if it's a TxIn script, that it evaluates to true with the TxOut script being spent).

However, the act of getting such a script into the blockchain is fairly difficult, because no Satoshi-based nodes will relay transactions with such scripts, and no miners will include those transactions into the blocks they are producing.

What this means is that, you can use all the advanced scripting capability that isn't specifically disabled, under two conditions:
(1) The scripts are ultimately valid
(2) You mine them into a block, yourself

In other words: no one will help you put those scripts into the blockchain, you have to do it yourself by solving your own block.  But those blocks will be accepted as part of the longest chain once it's there.

Founder and CEO of Armory Technologies, Inc.
Armory Bitcoin Wallet: Bringing cold storage to the average user!
Only use Armory software signed by the Armory Offline Signing Key (0x98832223)

Please donate to the Armory project by clicking here!    (or donate directly via 1QBDLYTDFHHZAABYSKGKPWKLSXZWCCJQBX -- yes, it's a real address!)
brian_armstrong (OP)
Newbie
*
Offline Offline

Activity: 29
Merit: 0


View Profile
January 11, 2012, 07:28:02 AM
 #4

Ok great - this makes sense about the higher threshold for relaying, but it will still get saved in a block.

Thanks for the help!
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!