Bitcoin Forum
December 03, 2016, 08:01:41 PM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Are transactions with the extra OP_NOP on the end still valid?  (Read 857 times)
brian_armstrong
Newbie
*
Offline Offline

Activity: 29


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!
1480795301
Hero Member
*
Offline Offline

Posts: 1480795301

View Profile Personal Message (Offline)

Ignore
1480795301
Reply with quote  #2

1480795301
Report to moderator
1480795301
Hero Member
*
Offline Offline

Posts: 1480795301

View Profile Personal Message (Offline)

Ignore
1480795301
Reply with quote  #2

1480795301
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1480795301
Hero Member
*
Offline Offline

Posts: 1480795301

View Profile Personal Message (Offline)

Ignore
1480795301
Reply with quote  #2

1480795301
Report to moderator
Stefan Thomas
Full Member
***
Offline Offline

Activity: 235


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


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
Newbie
*
Offline Offline

Activity: 29


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:  

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!