github.com/decred/dcrlnd@v0.7.6/lnrpc/initchainsyncrpc/initchainsync.proto (about)

     1  syntax = "proto3";
     2  
     3  package initialchainsyncrpc;
     4  
     5  option go_package = "github.com/decred/dcrlnd/lnrpc/initchainsyncrpc";
     6  
     7  /*
     8  The InitialChainSync service provides rpc endpoints that can be used to query
     9  the current state of the initial sync progress of the chain backend during
    10  the app's startup.
    11  */
    12  service InitialChainSync {
    13      /*
    14      SubscribeChainSync is a streaming call that registers a client to receive
    15      updates about the progress of the sync procedure. If an update message is
    16      received with synced = true, then this will be the last update sent and
    17      the server will be shutdown.
    18      */
    19      rpc SubscribeChainSync (ChainSyncSubscription)
    20          returns (stream ChainSyncUpdate);
    21  }
    22  
    23  message ChainSyncSubscription {
    24  }
    25  
    26  message ChainSyncUpdate {
    27      int64 block_height = 1;
    28      bytes block_hash = 2;
    29      int64 block_timestamp = 3;
    30      bool synced = 4;
    31  }