From 4335ce828c90a0bbea89686dbad008a7a43220b6 Mon Sep 17 00:00:00 2001
From: Bruno <bruno@robotinfra.com>
Date: Mon, 20 Jul 2015 14:26:05 +0800
Subject: [PATCH] switch maxDataCarrierSize to public const

---
 txscript/standard.go | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/txscript/standard.go b/txscript/standard.go
index 71349248..77219e42 100644
--- a/txscript/standard.go
+++ b/txscript/standard.go
@@ -10,9 +10,9 @@ import (
 )
 
 const (
-	// maxDataCarrierSize is the maximum number of bytes allowed in pushed
+	// MaxDataCarrierSize is the maximum number of bytes allowed in pushed
 	// data to be considered a nulldata transaction
-	maxDataCarrierSize = 80
+	MaxDataCarrierSize = 80
 
 	// StandardVerifyFlags are the script flags which are used when
 	// executing transaction scripts to enforce additional checks which
@@ -120,7 +120,7 @@ func isMultiSig(pops []parsedOpcode) bool {
 func isNullData(pops []parsedOpcode) bool {
 	// A nulldata transaction is either a single OP_RETURN or an
 	// OP_RETURN SMALLDATA (where SMALLDATA is a data push up to
-	// maxDataCarrierSize bytes).
+	// MaxDataCarrierSize bytes).
 	l := len(pops)
 	if l == 1 && pops[0].opcode.value == OP_RETURN {
 		return true
@@ -129,7 +129,7 @@ func isNullData(pops []parsedOpcode) bool {
 	return l == 2 &&
 		pops[0].opcode.value == OP_RETURN &&
 		pops[1].opcode.value <= OP_PUSHDATA4 &&
-		len(pops[1].data) <= maxDataCarrierSize
+		len(pops[1].data) <= MaxDataCarrierSize
 }
 
 // scriptType returns the type of the script being inspected from the known