Bitcoin Forum
May 08, 2024, 09:23:54 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: scriptPubKey.size() > nMaxDatacarrierBytes  (Read 162 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 ?
1715203434
Hero Member
*
Offline Offline

Posts: 1715203434

View Profile Personal Message (Offline)

Ignore
1715203434
Reply with quote  #2

1715203434
Report to moderator
1715203434
Hero Member
*
Offline Offline

Posts: 1715203434

View Profile Personal Message (Offline)

Ignore
1715203434
Reply with quote  #2

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

Posts: 1715203434

View Profile Personal Message (Offline)

Ignore
1715203434
Reply with quote  #2

1715203434
Report to moderator
1715203434
Hero Member
*
Offline Offline

Posts: 1715203434

View Profile Personal Message (Offline)

Ignore
1715203434
Reply with quote  #2

1715203434
Report to moderator
1715203434
Hero Member
*
Offline Offline

Posts: 1715203434

View Profile Personal Message (Offline)

Ignore
1715203434
Reply with quote  #2

1715203434
Report to moderator
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!