From 69446009b2b7c420d150bfff88d4c6de77db66ab Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Sat, 27 Jul 2013 16:34:47 -0500 Subject: [PATCH] Move TxVersion constant definition to msgtx.go. This moves the definition closer to the associated type and mirrors the rest of the package. --- msgtx.go | 3 +++ protocol.go | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/msgtx.go b/msgtx.go index a8181e74..48f00678 100644 --- a/msgtx.go +++ b/msgtx.go @@ -9,6 +9,9 @@ import ( "io" ) +// TxVersion is the current latest supported transaction version. +const TxVersion = 1 + // MaxTxInSequenceNum is the maximum sequence number the sequence field // of a transaction input can be. const MaxTxInSequenceNum uint32 = 0xffffffff diff --git a/protocol.go b/protocol.go index 1e5c8ede..ebf166fb 100644 --- a/protocol.go +++ b/protocol.go @@ -24,8 +24,6 @@ const ( // ProtocolVersion is the latest protocol version this package supports. ProtocolVersion uint32 = 70001 - TxVersion = 1 - // MultipleAddressVersion is the protocol version which added multiple // addresses per message (pver >= MultipleAddressVersion). MultipleAddressVersion uint32 = 209