Correct documentation of the Block.TxLoc function.

This commit is contained in:
Dave Collins 2013-05-28 18:43:13 -05:00
parent ef6c01960f
commit af89ed1c2e

View file

@ -156,7 +156,8 @@ func (b *Block) ProtocolVersion() uint32 {
} }
// TxLoc() returns the offsets and lengths of each transaction in a raw block. // TxLoc() returns the offsets and lengths of each transaction in a raw block.
// It is used to allow fast indexing into the // It is used to allow fast indexing into transactions within the raw byte
// stream.
func (b *Block) TxLoc() (txlocD []btcwire.TxLoc, err error) { func (b *Block) TxLoc() (txlocD []btcwire.TxLoc, err error) {
rawMsg, pver, err := b.Bytes() rawMsg, pver, err := b.Bytes()
if err != nil { if err != nil {