From be420054412ebd2f3ff7caf87273df9ca117255d Mon Sep 17 00:00:00 2001 From: Patrick O'Grady Date: Fri, 13 Nov 2020 11:36:31 -0800 Subject: [PATCH] Update middleware version --- services/network_service.go | 2 +- services/network_service_test.go | 2 +- services/types.go | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/services/network_service.go b/services/network_service.go index ce9f879..f32a901 100644 --- a/services/network_service.go +++ b/services/network_service.go @@ -92,7 +92,7 @@ func (s *NetworkAPIService) NetworkOptions( Version: &types.Version{ RosettaVersion: types.RosettaAPIVersion, NodeVersion: NodeVersion, - MiddlewareVersion: &MiddlewareVersion, + MiddlewareVersion: types.String(MiddlewareVersion), }, Allow: &types.Allow{ OperationStatuses: bitcoin.OperationStatuses, diff --git a/services/network_service_test.go b/services/network_service_test.go index 10dbd28..43fd014 100644 --- a/services/network_service_test.go +++ b/services/network_service_test.go @@ -27,7 +27,7 @@ import ( ) var ( - middlewareVersion = "0.0.6" + middlewareVersion = "0.0.7" defaultNetworkOptions = &types.NetworkOptionsResponse{ Version: &types.Version{ RosettaVersion: types.RosettaAPIVersion, diff --git a/services/types.go b/services/types.go index 9dce8ab..e8cf044 100644 --- a/services/types.go +++ b/services/types.go @@ -39,15 +39,13 @@ const ( // inlineFetchLimit is the maximum number // of transactions to fetch inline. inlineFetchLimit = 100 -) -var ( // MiddlewareVersion is the version // of rosetta-bitcoin. We set this as a // variable instead of a constant because // we typically need the pointer of this // value. - MiddlewareVersion = "0.0.6" + MiddlewareVersion = "0.0.7" ) // Client is used by the servicers to get Peer information