Skip to content

Commit 5842dd3

Browse files
committed
Add consensus state deserialization
1 parent fc086d2 commit 5842dd3

4 files changed

Lines changed: 171 additions & 35 deletions

File tree

batcher/aligned/test_files/mina/mina_devnet_protocol_query.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,20 @@
44
"bestChain": [
55
{
66
"protocolState": {
7-
"previousStateHash": "3NLAmT67BvsADswuJ6xpt3yNEVgmn5R8pkJTFvQtsZQD54aLhFmV"
7+
"previousStateHash": "3NLAmT67BvsADswuJ6xpt3yNEVgmn5R8pkJTFvQtsZQD54aLhFmV",
8+
"consensusState": {
9+
"slotSinceGenesis": "490386",
10+
"epochCount": "6",
11+
"stakingEpochData": {
12+
"lockCheckpoint": "3NL1BXat9KbW83ZeZC2zq2GfkxXwn5oEWr5jcXbbA99W36G2iM26"
13+
},
14+
"nextEpochData": {
15+
"lockCheckpoint": "3NKQDxPs3RJj5GZMJjsf9RGBoQohuiP6V8niCcs3k3v3qPDPjDJ5"
16+
},
17+
"minWindowDensity": "3",
18+
"blockHeight": "326404",
19+
"lastVrfOutput": "48H5vHuQcxgd8xNVPUpHrCFiwe6jZB8fpS2ZJ4SnhAqyQgg5LSpX"
20+
}
821
}
922
}
1023
],

operator/mina/lib/Cargo.lock

Lines changed: 29 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

operator/mina/lib/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,16 @@ ark-ff = { version = "0.3.0", features = ["parallel", "asm"] }
1313
ark-ec = { version = "0.3.0", features = ["parallel"] }
1414
ark-poly = { version = "0.3.0", features = ["parallel"] }
1515
ark-serialize = "0.3.0"
16-
serde = "1.0.197"
16+
serde = "1.0"
1717
rmp-serde = "1.1.2"
18-
serde_json = "1.0.118"
18+
serde_json = "1.0"
1919
hex = "0.4.3"
2020
mina-tree = { git = "https://github.com/lambdaclass/openmina/", branch = "mina_bridge" }
2121
mina-p2p-messages = { git = "https://github.com/lambdaclass/openmina/", branch = "mina_bridge" }
2222
base64 = "0.22.1"
2323
bs58 = "0.5.1"
2424
lazy_static = "1.5.0"
25+
blake2 = "0.10.6"
2526

2627
[patch.crates-io]
2728
ark-ff = { git = "https://github.com/openmina/algebra", branch = "openmina" }

0 commit comments

Comments
 (0)