From 74541ca0c03e3af0568f3c1de3cc9c0997a3ed5a Mon Sep 17 00:00:00 2001 From: Patrick O'Grady Date: Mon, 26 Oct 2020 15:48:28 -0700 Subject: [PATCH] Update network version --- indexer/indexer.go | 1 + services/network_service.go | 2 +- services/network_service_test.go | 2 +- services/types.go | 4 ---- 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/indexer/indexer.go b/indexer/indexer.go index e8b7edb..3f33757 100644 --- a/indexer/indexer.go +++ b/indexer/indexer.go @@ -180,6 +180,7 @@ func Initialize( bitcoin.OperationTypes, bitcoin.OperationStatuses, services.Errors, + nil, ) if err != nil { return nil, fmt.Errorf("%w: unable to initialize asserter", err) diff --git a/services/network_service.go b/services/network_service.go index 92046cc..876c6d2 100644 --- a/services/network_service.go +++ b/services/network_service.go @@ -90,7 +90,7 @@ func (s *NetworkAPIService) NetworkOptions( ) (*types.NetworkOptionsResponse, *types.Error) { return &types.NetworkOptionsResponse{ Version: &types.Version{ - RosettaVersion: RosettaVersion, + RosettaVersion: types.RosettaAPIVersion, NodeVersion: NodeVersion, MiddlewareVersion: &MiddlewareVersion, }, diff --git a/services/network_service_test.go b/services/network_service_test.go index 363aff2..11e0b78 100644 --- a/services/network_service_test.go +++ b/services/network_service_test.go @@ -30,7 +30,7 @@ var ( middlewareVersion = "0.0.4" defaultNetworkOptions = &types.NetworkOptionsResponse{ Version: &types.Version{ - RosettaVersion: "1.4.5", + RosettaVersion: types.RosettaAPIVersion, NodeVersion: "0.20.1", MiddlewareVersion: &middlewareVersion, }, diff --git a/services/types.go b/services/types.go index 706ee7b..f147d32 100644 --- a/services/types.go +++ b/services/types.go @@ -23,10 +23,6 @@ import ( ) const ( - // RosettaVersion is the version of the - // Rosetta Specification we are using. - RosettaVersion = "1.4.5" - // NodeVersion is the version of // bitcoin core we are using. NodeVersion = "0.20.1"