Update network version

This commit is contained in:
Patrick O'Grady 2020-10-26 15:48:28 -07:00
parent 70a1dc2cbf
commit 74541ca0c0
No known key found for this signature in database
GPG key ID: 8DE11C985C0C8D85
4 changed files with 3 additions and 6 deletions

View file

@ -180,6 +180,7 @@ func Initialize(
bitcoin.OperationTypes, bitcoin.OperationTypes,
bitcoin.OperationStatuses, bitcoin.OperationStatuses,
services.Errors, services.Errors,
nil,
) )
if err != nil { if err != nil {
return nil, fmt.Errorf("%w: unable to initialize asserter", err) return nil, fmt.Errorf("%w: unable to initialize asserter", err)

View file

@ -90,7 +90,7 @@ func (s *NetworkAPIService) NetworkOptions(
) (*types.NetworkOptionsResponse, *types.Error) { ) (*types.NetworkOptionsResponse, *types.Error) {
return &types.NetworkOptionsResponse{ return &types.NetworkOptionsResponse{
Version: &types.Version{ Version: &types.Version{
RosettaVersion: RosettaVersion, RosettaVersion: types.RosettaAPIVersion,
NodeVersion: NodeVersion, NodeVersion: NodeVersion,
MiddlewareVersion: &MiddlewareVersion, MiddlewareVersion: &MiddlewareVersion,
}, },

View file

@ -30,7 +30,7 @@ var (
middlewareVersion = "0.0.4" middlewareVersion = "0.0.4"
defaultNetworkOptions = &types.NetworkOptionsResponse{ defaultNetworkOptions = &types.NetworkOptionsResponse{
Version: &types.Version{ Version: &types.Version{
RosettaVersion: "1.4.5", RosettaVersion: types.RosettaAPIVersion,
NodeVersion: "0.20.1", NodeVersion: "0.20.1",
MiddlewareVersion: &middlewareVersion, MiddlewareVersion: &middlewareVersion,
}, },

View file

@ -23,10 +23,6 @@ import (
) )
const ( const (
// RosettaVersion is the version of the
// Rosetta Specification we are using.
RosettaVersion = "1.4.5"
// NodeVersion is the version of // NodeVersion is the version of
// bitcoin core we are using. // bitcoin core we are using.
NodeVersion = "0.20.1" NodeVersion = "0.20.1"