@@ -22,38 +22,48 @@ use std::collections::BTreeMap;
2222/// can't be expressed in the Rust type system at the moment. For this
2323/// reason this type is private while functions wrapping the whole call
2424/// to the service are exposed as the service's methods.
25- #[ allow( dead_code) ] // TODO
25+ #[ expect(
26+ clippy:: large_enum_variant,
27+ reason = "This is storing large messages, but size difference is only 2x between largest and second-largest variants"
28+ ) ]
2629pub ( super ) enum LedgerRequest {
2730 Write ( LedgerWriteRequest ) ,
2831 Read ( LedgerReadId , LedgerReadRequest ) ,
32+ /// expected response: `LedgerHash`
2933 AccountsSet {
3034 snarked_ledger_hash : LedgerHash ,
3135 parent : LedgerAddress ,
3236 accounts : Vec < MinaBaseAccountBinableArgStableV2 > ,
33- } , // expected response: LedgerHash
37+ } ,
38+ /// expected response: `Vec<Account>`
3439 AccountsGet {
3540 ledger_hash : LedgerHash ,
3641 account_ids : Vec < AccountId > ,
37- } , // expected response: Vec<Account>
42+ } ,
43+ /// expected response: `ChildHashes`
3844 ChildHashesGet {
3945 snarked_ledger_hash : LedgerHash ,
4046 parent : LedgerAddress ,
41- } , // expected response: ChildHashes
47+ } ,
48+ /// expected response: `Success`
4249 ComputeSnarkedLedgerHashes {
4350 snarked_ledger_hash : LedgerHash ,
44- } , // expected response: Success
51+ } ,
52+ /// expected response: `SnarkedLedgerContentsCopied`
4553 CopySnarkedLedgerContentsForSync {
4654 origin_snarked_ledger_hash : Vec < LedgerHash > ,
4755 target_snarked_ledger_hash : LedgerHash ,
4856 overwrite : bool ,
49- } , // expected response: SnarkedLedgerContentsCopied
57+ } ,
58+ /// expected response: `ProducersWithDelegatesMap`
5059 GetProducersWithDelegates {
5160 ledger_hash : LedgerHash ,
5261 filter : fn ( & CompressedPubKey ) -> bool ,
53- } , // expected response: ProducersWithDelegatesMap
62+ } ,
63+ /// expected response: `LedgerMask`
5464 GetMask {
5565 ledger_hash : LedgerHash ,
56- } , // expected response: LedgerMask
66+ } ,
5767 InsertGenesisLedger {
5868 mask : Mask ,
5969 } ,
0 commit comments