Update network version
This commit is contained in:
parent
70a1dc2cbf
commit
74541ca0c0
4 changed files with 3 additions and 6 deletions
|
@ -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)
|
||||||
|
|
|
@ -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,
|
||||||
},
|
},
|
||||||
|
|
|
@ -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,
|
||||||
},
|
},
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue