From 1623818c1201d7333118695fa0824ec004db7644 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Tue, 25 Feb 2014 16:00:03 -0600 Subject: [PATCH] Export a new constant for MaxPrevOutIndex. This commit exports a new constant for the maximum index a previous outpoint can contain. --- msgtx.go | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/msgtx.go b/msgtx.go index c5cc93d2..dc6f59e0 100644 --- a/msgtx.go +++ b/msgtx.go @@ -11,12 +11,18 @@ import ( "io" ) -// TxVersion is the current latest supported transaction version. -const TxVersion = 1 +const ( + // TxVersion is the current latest supported transaction version. + TxVersion = 1 -// MaxTxInSequenceNum is the maximum sequence number the sequence field -// of a transaction input can be. -const MaxTxInSequenceNum uint32 = 0xffffffff + // MaxTxInSequenceNum is the maximum sequence number the sequence field + // of a transaction input can be. + MaxTxInSequenceNum uint32 = 0xffffffff + + // MaxPrevOutIndex is the maximum index the index field of a previous + // outpoint can be. + MaxPrevOutIndex uint32 = 0xffffffff +) // defaultTxInOutAlloc is the default size used for the backing array for // transaction inputs and outputs. The array will dynamically grow as needed,