def info(self): r = ResponseInfo() r.data = "counter" r.version = "1.0" r.last_block_height = 0 r.last_block_app_hash = b'' return r
def info(self, req): # Load state if not self._storage: state, _ = setup_app_state(self.rootdir) self._storage = Storage(state) result = ResponseInfo() result.last_block_height = self._storage.state.last_block_height result.last_block_app_hash = self._storage.state.last_block_hash result.data = "pyTendermint app v{}".format(self.version) result.version = self.version return result