Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert changes in HashTreeRoot and SSZ encoding for backwards-compatibility #362

Merged
merged 3 commits into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions qbft/generate.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package qbft

//go:generate rm -f ./messages_encoding.go
//go:generate go run github.com/ferranbt/fastssz/sszgen --path messages.go --include ./types.go,../types/signer.go,../types/operator.go --exclude-objs OperatorID
// rm -f ./messages_encoding.go
// go run github.com/ferranbt/fastssz/sszgen --path messages.go --include ./types.go,../types/signer.go,../types/operator.go --exclude-objs OperatorID
4 changes: 2 additions & 2 deletions qbft/messages_encoding.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"Name": "create commit",
"Value": [
1,
2,
3,
4,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"StateValue": null,
"Round": 10,
"RoundChangeJustifications": null,
"PrepareJustifications": null,
"CreateType": "CreateCommit",
"ExpectedRoot": "0834b51f3c87d4aba362d7e2eeb4172d22e0ef18d4dfadd37e8c9ceb62c7719d",
"ExpectedError": ""
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"Name": "create prepare",
"Value": [
1,
2,
3,
4,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"StateValue": null,
"Round": 10,
"RoundChangeJustifications": null,
"PrepareJustifications": null,
"CreateType": "CreatePrepare",
"ExpectedRoot": "2eba5b18818e0ec94f5c02ff7abc8ca932ed5d1f32a115197fbaa14247a39cb2",
"ExpectedError": ""
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,195 @@
{
"Name": "create proposal not previously prepared",
"Value": [
1,
2,
3,
4,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"StateValue": null,
"Round": 0,
"RoundChangeJustifications": [
{
"Signature": "gztz02gJCBBld01h2Pb/7pG5BvLmymJYG+fOGi8fCq81dVcUcoNMZmCvloEyiT+OD5Cl1b+v6OaSbkM80leaeENvDl8G377UXnKTI4wY/74ve7a7iZgSLRf/x7fNM7fB",
"Signers": [
1
],
"Message": {
"MsgType": 0,
"Height": 0,
"Round": 2,
"Identifier": "AQIDBA==",
"Root": [
190,
149,
111,
183,
223,
78,
243,
117,
49,
104,
45,
88,
131,
32,
8,
79,
201,
20,
195,
240,
254,
211,
53,
38,
62,
91,
68,
6,
46,
108,
41,
180
],
"DataRound": 0,
"RoundChangeJustification": null,
"PrepareJustification": null
},
"FullData": "AQIDBAUGBwgJAQIDBAUGBwgJAQIDBAUGBwgJ"
},
{
"Signature": "jLHzMp8Y+D46RWGLJEOr49k05Q+UkqPjWgknRsFgFHRJgHGOi0u6wt10PLief4fVCUJOEXE1fbENSqUgtf03KVpQ3EaEN94xbfkY5AFfbfF7yk12EpEOP/0C49uBovdQ",
"Signers": [
2
],
"Message": {
"MsgType": 0,
"Height": 0,
"Round": 2,
"Identifier": "AQIDBA==",
"Root": [
190,
149,
111,
183,
223,
78,
243,
117,
49,
104,
45,
88,
131,
32,
8,
79,
201,
20,
195,
240,
254,
211,
53,
38,
62,
91,
68,
6,
46,
108,
41,
180
],
"DataRound": 0,
"RoundChangeJustification": null,
"PrepareJustification": null
},
"FullData": "AQIDBAUGBwgJAQIDBAUGBwgJAQIDBAUGBwgJ"
},
{
"Signature": "ts0KRie2NM79t+H+9ZajE3y5g3oTw3ak/YMsEEZzWWE2G4EtrJCJevuhAwxFhnwgFbcMf8xHfxryZP5dTcRS2zA30tVz/n6XsPmHJT5dzwtVdY9QpJ8hQsE56sJSEsOz",
"Signers": [
3
],
"Message": {
"MsgType": 0,
"Height": 0,
"Round": 2,
"Identifier": "AQIDBA==",
"Root": [
190,
149,
111,
183,
223,
78,
243,
117,
49,
104,
45,
88,
131,
32,
8,
79,
201,
20,
195,
240,
254,
211,
53,
38,
62,
91,
68,
6,
46,
108,
41,
180
],
"DataRound": 0,
"RoundChangeJustification": null,
"PrepareJustification": null
},
"FullData": "AQIDBAUGBwgJAQIDBAUGBwgJAQIDBAUGBwgJ"
}
],
"PrepareJustifications": null,
"CreateType": "createProposal",
"ExpectedRoot": "45f15e2dc3a0c1bd13aa977ead44abfabab094864db4a77dcd0cd9a30e87c3bb",
"ExpectedError": ""
}
Loading
Loading