Bitcoin Forum
June 22, 2024, 02:15:58 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: scriptPubKey.size() > nMaxDatacarrierBytes  (Read 164 times)
victorkimba17 (OP)
Jr. Member
*
Offline Offline

Activity: 113
Merit: 5


View Profile
August 10, 2018, 03:17:47 AM
 #1

In bitcoin core v0.15.1 , policy,cpp, IsStandard() , the condition (scriptPubKey.size() > nMaxDatacarrierBytes) is met, and so it gives error of {"code"=>-26, "message"=>"64: scriptpubkey"}

What do we check the size of scriptPubKey against a number ?
victorkimba17 (OP)
Jr. Member
*
Offline Offline

Activity: 113
Merit: 5


View Profile
August 10, 2018, 08:20:31 AM
 #2

the datacarriersize controls the OP_RETURN script size. the small size of 80 is to prevent arbitrary data from getting into blockchain.

in BCH, the size is increased to 220 bytes.
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!