File tree Expand file tree Collapse file tree 5 files changed +28
-6
lines changed Expand file tree Collapse file tree 5 files changed +28
-6
lines changed Original file line number Diff line number Diff line change 50
50
name : default
51
51
steps :
52
52
- *fast-checkout
53
- - run : curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.27 .0
53
+ - run : curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.30 .0
54
54
- run : make lint
55
55
check-license :
56
56
executor :
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ check-comments:
44
44
${GOLINT_CMD} -set_exit_status ${GO_FOLDERS} .
45
45
46
46
lint : | check-comments
47
- golangci-lint run -v -E ${LINT_SETTINGS} ,gomnd
47
+ golangci-lint run --timeout 2m0s - v -E ${LINT_SETTINGS} ,gomnd
48
48
49
49
add-license :
50
50
${ADDLICENCE_SCRIPT} .
Original file line number Diff line number Diff line change @@ -87,8 +87,9 @@ func (s *NetworkAPIService) NetworkOptions(
87
87
) (* types.NetworkOptionsResponse , * types.Error ) {
88
88
return & types.NetworkOptionsResponse {
89
89
Version : & types.Version {
90
- RosettaVersion : "1.4.2" ,
91
- NodeVersion : "0.0.1" ,
90
+ RosettaVersion : RosettaVersion ,
91
+ NodeVersion : NodeVersion ,
92
+ MiddlewareVersion : & MiddlewareVersion ,
92
93
},
93
94
Allow : & types.Allow {
94
95
OperationStatuses : bitcoin .OperationStatuses ,
Original file line number Diff line number Diff line change @@ -27,10 +27,12 @@ import (
27
27
)
28
28
29
29
var (
30
+ middlewareVersion = "0.0.2"
30
31
defaultNetworkOptions = & types.NetworkOptionsResponse {
31
32
Version : & types.Version {
32
- RosettaVersion : "1.4.2" ,
33
- NodeVersion : "0.0.1" ,
33
+ RosettaVersion : "1.4.4" ,
34
+ NodeVersion : "0.20.1" ,
35
+ MiddlewareVersion : & middlewareVersion ,
34
36
},
35
37
Allow : & types.Allow {
36
38
OperationStatuses : bitcoin .OperationStatuses ,
Original file line number Diff line number Diff line change @@ -22,6 +22,25 @@ import (
22
22
"github.com/coinbase/rosetta-sdk-go/types"
23
23
)
24
24
25
+ const (
26
+ // RosettaVersion is the version of the
27
+ // Rosetta Specification we are using.
28
+ RosettaVersion = "1.4.4"
29
+
30
+ // NodeVersion is the version of
31
+ // bitcoin core we are using.
32
+ NodeVersion = "0.20.1"
33
+ )
34
+
35
+ var (
36
+ // MiddlewareVersion is the version
37
+ // of rosetta-bitcoin. We set this as a
38
+ // variable instead of a constant because
39
+ // we typically need the pointer of this
40
+ // value.
41
+ MiddlewareVersion = "0.0.2"
42
+ )
43
+
25
44
// Client is used by the servicers to get Peer information
26
45
// and to submit transactions.
27
46
type Client interface {
You can’t perform that action at this time.
0 commit comments