File tree Expand file tree Collapse file tree 1 file changed +0
-58
lines changed Expand file tree Collapse file tree 1 file changed +0
-58
lines changed Original file line number Diff line number Diff line change @@ -199,64 +199,6 @@ enum SyncStatus {
199199 CATCHUP ,
200200}
201201
202- #[ derive( Clone , Debug ) ]
203- struct ProtocolState {
204- consensus_state : ConsensusState ,
205- blockchain_state : BlockchainState ,
206- }
207-
208- #[ juniper:: graphql_object( context = Context ) ]
209- impl ProtocolState {
210- fn consensus_state ( & self ) -> & ConsensusState {
211- & self . consensus_state
212- }
213-
214- fn blockchain_state ( & self ) -> & BlockchainState {
215- & self . blockchain_state
216- }
217- }
218-
219- #[ derive( Clone , Debug ) ]
220- struct ConsensusState {
221- block_height : i32 ,
222- }
223-
224- #[ juniper:: graphql_object( context = Context ) ]
225- impl ConsensusState {
226- fn block_height ( & self ) -> i32 {
227- self . block_height
228- }
229- }
230-
231- #[ derive( Clone , Debug ) ]
232- struct BlockchainState {
233- snarked_ledger_hash : String ,
234- }
235-
236- #[ juniper:: graphql_object( context = Context ) ]
237- impl BlockchainState {
238- fn snarked_ledger_hash ( & self ) -> & str {
239- & self . snarked_ledger_hash
240- }
241- }
242-
243- #[ derive( Clone , Debug ) ]
244- struct BestChain {
245- state_hash : String ,
246- protocol_state : ProtocolState ,
247- }
248-
249- #[ juniper:: graphql_object( context = Context ) ]
250- impl BestChain {
251- fn state_hash ( & self ) -> & str {
252- & self . state_hash
253- }
254-
255- fn protocol_state ( & self ) -> & ProtocolState {
256- & self . protocol_state
257- }
258- }
259-
260202#[ derive( Clone , Copy , Debug ) ]
261203pub struct Query ;
262204
You can’t perform that action at this time.
0 commit comments