code: def success_response(self, method_resp, **kw):
          
          resp = {
              'status': True,
              'indexing': config.is_indexing(self.working_dir),
              'lastblock': virtualchain_hooks.get_last_block(self.working_dir),
          }
  
          resp.update(kw)
          resp.update(method_resp)
          
          if self.is_stale():
              # our state is stale
              resp['stale'] = True
              resp['warning'] = 'Daemon has not reindexed since {}'.format(self.last_indexing_time)
  
          return resp
docs: Make a standard "success" response,
          which contains some ancilliary data.
  
          Also, detect if this node is too far behind the Bitcoin blockchain,
          and if so, convert this into an error message.