public inbox for bitcoindev@googlegroups.com
 help / color / mirror / Atom feed
* [Bitcoin-development] Bitcoin script opcode counts
@ 2012-07-26  5:50 Jeff Garzik
  2012-07-26  5:55 ` Jeff Garzik
  2012-07-26 11:27 ` Mike Hearn
  0 siblings, 2 replies; 4+ messages in thread
From: Jeff Garzik @ 2012-07-26  5:50 UTC (permalink / raw)
  To: Bitcoin Development

Just run a query over the entire blockchain, looking at script opcode
use. I counted the number of times each opcode was used, in total:
https://gist.github.com/3180470

(data in full)
OP_0 104
OP_1 27
OP_2 12
OP_2OVER 182
OP_2SWAP 182
OP_3 16
OP_4 1
OP_CHECKMULTISIG 22
OP_CHECKSIG 12188693
OP_CODESEPARATOR 14
OP_DEPTH 182
OP_DROP 19
OP_DUP 11699991
OP_EQUAL 88
OP_EQUALVERIFY 11699985
OP_HASH160 11700067
OP_IF 182
OP_IFDUP 182
OP_MIN 4
OP_NOP1 1
OP_NOP2 15
OP_NOP 5
OP_PUSHDATA1 18
OP_PUSHDATA2 4
OP_PUSHDATA 32350369
OP_SHA256 2
OP_VERIFY 182


-- 
Jeff Garzik
exMULTI, Inc.
jgarzik@exmulti•com



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bitcoin-development] Bitcoin script opcode counts
  2012-07-26  5:50 [Bitcoin-development] Bitcoin script opcode counts Jeff Garzik
@ 2012-07-26  5:55 ` Jeff Garzik
  2012-07-26 11:27 ` Mike Hearn
  1 sibling, 0 replies; 4+ messages in thread
From: Jeff Garzik @ 2012-07-26  5:55 UTC (permalink / raw)
  To: Bitcoin Development

On Thu, Jul 26, 2012 at 1:50 AM, Jeff Garzik <jgarzik@exmulti•com> wrote:
> Just run a query over the entire blockchain, looking at script opcode
> use. I counted the number of times each opcode was used, in total:
> https://gist.github.com/3180470

And here is the testnet3 data: https://gist.github.com/3180486

-- 
Jeff Garzik
exMULTI, Inc.
jgarzik@exmulti•com



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bitcoin-development] Bitcoin script opcode counts
  2012-07-26  5:50 [Bitcoin-development] Bitcoin script opcode counts Jeff Garzik
  2012-07-26  5:55 ` Jeff Garzik
@ 2012-07-26 11:27 ` Mike Hearn
  2012-07-26 12:50   ` Gregory Maxwell
  1 sibling, 1 reply; 4+ messages in thread
From: Mike Hearn @ 2012-07-26 11:27 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Bitcoin Development

> OP_CODESEPARATOR 14
> OP_DEPTH 182

I'm interested to see what scripts were using OP_DEPTH and
OP_CODESEPARATOR, as the latter appears to be useless to my eyes.

Could you give some tx ids which use unusual opcodes?



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bitcoin-development] Bitcoin script opcode counts
  2012-07-26 11:27 ` Mike Hearn
@ 2012-07-26 12:50   ` Gregory Maxwell
  0 siblings, 0 replies; 4+ messages in thread
From: Gregory Maxwell @ 2012-07-26 12:50 UTC (permalink / raw)
  To: Mike Hearn; +Cc: Bitcoin Development

On Thu, Jul 26, 2012 at 7:27 AM, Mike Hearn <mike@plan99•net> wrote:
>> OP_CODESEPARATOR 14
>> OP_DEPTH 182
>
> I'm interested to see what scripts were using OP_DEPTH and
> OP_CODESEPARATOR, as the latter appears to be useless to my eyes.
>
> Could you give some tx ids which use unusual opcodes?

The OP_DEPTH are all screwups in P2Pool blocks.

( the software was making tiny payments to scriptpubkey 'script' due
to a bug, and it went unnoticed for a long time because it was assumed
that it was just some p2sh user intentionally being stupid )



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-07-26 12:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-26  5:50 [Bitcoin-development] Bitcoin script opcode counts Jeff Garzik
2012-07-26  5:55 ` Jeff Garzik
2012-07-26 11:27 ` Mike Hearn
2012-07-26 12:50   ` Gregory Maxwell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox