Bitcoin Forum
April 26, 2024, 10:47:05 AM *
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 ?
1714128425
Hero Member
*
Offline Offline

Posts: 1714128425

View Profile Personal Message (Offline)

Ignore
1714128425
Reply with quote  #2

1714128425
Report to moderator
1714128425
Hero Member
*
Offline Offline

Posts: 1714128425

View Profile Personal Message (Offline)

Ignore
1714128425
Reply with quote  #2

1714128425
Report to moderator
1714128425
Hero Member
*
Offline Offline

Posts: 1714128425

View Profile Personal Message (Offline)

Ignore
1714128425
Reply with quote  #2

1714128425
Report to moderator
Unlike traditional banking where clients have only a few account numbers, with Bitcoin people can create an unlimited number of accounts (addresses). This can be used to easily track payments, and it improves anonymity.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714128425
Hero Member
*
Offline Offline

Posts: 1714128425

View Profile Personal Message (Offline)

Ignore
1714128425
Reply with quote  #2

1714128425
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!