Skip to content

Commit

Permalink
cluster: fix definition version (#831)
Browse files Browse the repository at this point in the history
Fixes the latest cluster definition version, it should be v1.1.0 as per feedback in previous PR.

category: bug
ticket: #710
  • Loading branch information
corverroos authored Jul 21, 2022
1 parent cd7cba5 commit e8c4b99
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion cluster/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func TestBackwardsCompatability(t *testing.T) {
version: "v1.0.0",
},
{
version: "v1.0.1",
version: "v1.1.0",
},
// Note: Add testdata files for newer versions when bumped.
}
Expand Down
2 changes: 1 addition & 1 deletion cluster/definition.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
)

const (
definitionVersion = "v1.0.1"
definitionVersion = "v1.1.0"
dkgAlgo = "default"
)

Expand Down
6 changes: 3 additions & 3 deletions cluster/testdata/TestEncode_definition_json.golden
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
}
],
"uuid": "0194FDC2-FA2F-FCC0-41D3-FF12045B73C8",
"version": "v1.0.1",
"version": "v1.1.0",
"timestamp": "2022-07-19T18:19:58+02:00",
"num_validators": 2,
"threshold": 3,
"fee_recipient_address": "0x52fdfc072182654f163f5f0f9a621d729566c74d",
"withdrawal_address": "0x81855ad8681d0d86d1e91e00167939cb6694d2c4",
"dkg_algorithm": "default",
"fork_version": "0x00000002",
"config_hash": "ZCLGlOnXppJPp+Xv7A43AMJrqxy1714qExb6uk6VOzw=",
"definition_hash": "tjeuHGM+Vq2UpAoxfK+ieyk5C7D0vJKjvPIQpsDPucc="
"config_hash": "2aQgQp1b6QndUKjumibFjupLfcIObxLdo1mQPRcqogE=",
"definition_hash": "PZt47OFSnfSvu6YYN8GnjB6+p6IApPAo6qvfq1hOJWI="
}
6 changes: 3 additions & 3 deletions cluster/testdata/TestEncode_definition_yaml.golden
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ operators:
config_signature: KbAiO+6l9PdDkfRF0Vr9QpQEA3T2kkuYy/hxP42WLXw=
enr_signature: jQGRksJCJOLK/Mrjph+1hrFDI6a8j5598dkpMz/5k5M=
uuid: 0194FDC2-FA2F-FCC0-41D3-FF12045B73C8
version: v1.0.1
version: v1.1.0
timestamp: 2022-07-19T18:19:58+02:00
num_validators: 2
threshold: 3
fee_recipient_address: "0x52fdfc072182654f163f5f0f9a621d729566c74d"
withdrawal_address: "0x81855ad8681d0d86d1e91e00167939cb6694d2c4"
dkg_algorithm: default
fork_version: "0x00000002"
config_hash: ZCLGlOnXppJPp+Xv7A43AMJrqxy1714qExb6uk6VOzw=
definition_hash: tjeuHGM+Vq2UpAoxfK+ieyk5C7D0vJKjvPIQpsDPucc=
config_hash: 2aQgQp1b6QndUKjumibFjupLfcIObxLdo1mQPRcqogE=
definition_hash: PZt47OFSnfSvu6YYN8GnjB6+p6IApPAo6qvfq1hOJWI=
8 changes: 4 additions & 4 deletions cluster/testdata/TestEncode_lock_json.golden
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@
}
],
"uuid": "0194FDC2-FA2F-FCC0-41D3-FF12045B73C8",
"version": "v1.0.1",
"version": "v1.1.0",
"timestamp": "2022-07-19T18:19:58+02:00",
"num_validators": 2,
"threshold": 3,
"fee_recipient_address": "0x52fdfc072182654f163f5f0f9a621d729566c74d",
"withdrawal_address": "0x81855ad8681d0d86d1e91e00167939cb6694d2c4",
"dkg_algorithm": "default",
"fork_version": "0x00000002",
"config_hash": "ZCLGlOnXppJPp+Xv7A43AMJrqxy1714qExb6uk6VOzw=",
"definition_hash": "tjeuHGM+Vq2UpAoxfK+ieyk5C7D0vJKjvPIQpsDPucc="
"config_hash": "2aQgQp1b6QndUKjumibFjupLfcIObxLdo1mQPRcqogE=",
"definition_hash": "PZt47OFSnfSvu6YYN8GnjB6+p6IApPAo6qvfq1hOJWI="
},
"distributed_validators": [
{
Expand All @@ -46,5 +46,5 @@
}
],
"signature_aggregate": "O+pvWzr23gN0NmxHGeQ6GwZ9ibx/AfH1c5gWWaRP8Xo=",
"lock_hash": "XlMaUhjUK0QNp0NZuDuhlsO3avrYLux7iWWrr4EOp1w="
"lock_hash": "eTtY56eXcUpCPa52lFHSpj5cNGCLAegX/UK1UuEOUmA="
}
8 changes: 4 additions & 4 deletions cluster/testdata/TestEncode_lock_yaml.golden
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ cluster_definition:
config_signature: KbAiO+6l9PdDkfRF0Vr9QpQEA3T2kkuYy/hxP42WLXw=
enr_signature: jQGRksJCJOLK/Mrjph+1hrFDI6a8j5598dkpMz/5k5M=
uuid: 0194FDC2-FA2F-FCC0-41D3-FF12045B73C8
version: v1.0.1
version: v1.1.0
timestamp: 2022-07-19T18:19:58+02:00
num_validators: 2
threshold: 3
fee_recipient_address: "0x52fdfc072182654f163f5f0f9a621d729566c74d"
withdrawal_address: "0x81855ad8681d0d86d1e91e00167939cb6694d2c4"
dkg_algorithm: default
fork_version: "0x00000002"
config_hash: ZCLGlOnXppJPp+Xv7A43AMJrqxy1714qExb6uk6VOzw=
definition_hash: tjeuHGM+Vq2UpAoxfK+ieyk5C7D0vJKjvPIQpsDPucc=
config_hash: 2aQgQp1b6QndUKjumibFjupLfcIObxLdo1mQPRcqogE=
definition_hash: PZt47OFSnfSvu6YYN8GnjB6+p6IApPAo6qvfq1hOJWI=
distributed_validators:
- distributed_public_key: "0x4c7215a3b539eb1e5849c6077dbb5722f5717a28"
public_shares:
Expand All @@ -32,4 +32,4 @@ distributed_validators:
- n45NpkMBBSINCyloi3NLjqDzypk26EYfENd8luqAp6Y=
- ZfYG9qY7fz39JWfBiXnk1g8maG2b8vsmyQH/NUzeFgc=
signature_aggregate: O+pvWzr23gN0NmxHGeQ6GwZ9ibx/AfH1c5gWWaRP8Xo=
lock_hash: XlMaUhjUK0QNp0NZuDuhlsO3avrYLux7iWWrr4EOp1w=
lock_hash: eTtY56eXcUpCPa52lFHSpj5cNGCLAegX/UK1UuEOUmA=
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
}
],
"uuid": "0194FDC2-FA2F-FCC0-41D3-FF12045B73C8",
"version": "v1.0.1",
"version": "v1.1.0",
"timestamp": "2022-07-19T18:19:58+02:00",
"num_validators": 2,
"threshold": 3,
"fee_recipient_address": "0x52fdfc072182654f163f5f0f9a621d729566c74d",
"withdrawal_address": "0x81855ad8681d0d86d1e91e00167939cb6694d2c4",
"dkg_algorithm": "default",
"fork_version": "0x00000002",
"config_hash": "ZCLGlOnXppJPp+Xv7A43AMJrqxy1714qExb6uk6VOzw=",
"definition_hash": "tjeuHGM+Vq2UpAoxfK+ieyk5C7D0vJKjvPIQpsDPucc="
"config_hash": "2aQgQp1b6QndUKjumibFjupLfcIObxLdo1mQPRcqogE=",
"definition_hash": "PZt47OFSnfSvu6YYN8GnjB6+p6IApPAo6qvfq1hOJWI="
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@
}
],
"uuid": "0194FDC2-FA2F-FCC0-41D3-FF12045B73C8",
"version": "v1.0.1",
"version": "v1.1.0",
"timestamp": "2022-07-19T18:19:58+02:00",
"num_validators": 2,
"threshold": 3,
"fee_recipient_address": "0x52fdfc072182654f163f5f0f9a621d729566c74d",
"withdrawal_address": "0x81855ad8681d0d86d1e91e00167939cb6694d2c4",
"dkg_algorithm": "default",
"fork_version": "0x00000002",
"config_hash": "ZCLGlOnXppJPp+Xv7A43AMJrqxy1714qExb6uk6VOzw=",
"definition_hash": "tjeuHGM+Vq2UpAoxfK+ieyk5C7D0vJKjvPIQpsDPucc="
"config_hash": "2aQgQp1b6QndUKjumibFjupLfcIObxLdo1mQPRcqogE=",
"definition_hash": "PZt47OFSnfSvu6YYN8GnjB6+p6IApPAo6qvfq1hOJWI="
},
"distributed_validators": [
{
Expand All @@ -46,5 +46,5 @@
}
],
"signature_aggregate": "O+pvWzr23gN0NmxHGeQ6GwZ9ibx/AfH1c5gWWaRP8Xo=",
"lock_hash": "XlMaUhjUK0QNp0NZuDuhlsO3avrYLux7iWWrr4EOp1w="
"lock_hash": "eTtY56eXcUpCPa52lFHSpj5cNGCLAegX/UK1UuEOUmA="
}

0 comments on commit e8c4b99

Please sign in to comment.