Export a new constant for MaxPrevOutIndex.

This commit exports a new constant for the maximum index a previous
outpoint can contain.
This commit is contained in:
Dave Collins 2014-02-25 16:00:03 -06:00
parent 13e0b0e7b9
commit 1623818c12

View File

@ -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,