github.com/hechain20/hechain@v0.0.0-20220316014945-b544036ba106/core/ledger/kvledger/msgs/ledger_metadata.proto (about)

     1  /*
     2  Copyright hechain. All Rights Reserved.
     3  
     4  SPDX-License-Identifier: Apache-2.0
     5  */
     6  
     7  syntax = "proto3";
     8  
     9  option go_package = "github.com/hechain20/hechain/core/ledger/kvledger/msgs";
    10  
    11  package msgs;
    12  
    13  // Status specifies the status of a ledger
    14  enum Status {
    15      ACTIVE = 0;
    16      INACTIVE = 1;
    17      UNDER_CONSTRUCTION = 2;
    18      UNDER_DELETION = 3;
    19  }
    20  
    21  // BootSnapshotMetadata captures the metadata of the snapshot that was used to bootstrap the ledger
    22  message BootSnapshotMetadata {
    23      string singableMetadata = 1; // signable metadata of bootstrapping snapshot in json string
    24      string additionalMetadata = 2; // additional metadata of bootstrapping snapshot in json string
    25  }
    26  
    27  // LedgerMetadata specifies the metadata of a ledger
    28  message LedgerMetadata {
    29      Status status = 1;
    30      BootSnapshotMetadata boot_snapshot_metadata =2;
    31  }