kaspad/legacy.go
Dave Collins 93d86305a2 Deprecate InvVect_* constants in favor of InvType*.
This commit changes the InvVect_* constants, which are not standard Go
style, to the InvType*. In order to preserve backwards compatibility, it
also adds a legacy.go file which maps the old public constant names to the
new ones.

Closes #1.
2013-10-08 15:44:48 -05:00

15 lines
466 B
Go

// Copyright (c) 2013 Conformal Systems LLC.
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package btcwire
// These constants are deprecated as they do not follow the standard Go style
// guidelines and are only provided for backwards compatibility. Use the
// InvType* constants instead.
const (
InvVect_Error InvType = InvTypeError
InvVect_Tx InvType = InvTypeTx
InvVect_Block InvType = InvTypeBlock
)