LCOV - code coverage report
Current view: top level - irohad/ametsuchi - ledger_state.hpp (source / functions) Hit Total Coverage
Test: cleared_cor.info Lines: 1 1 100.0 %
Date: 2019-03-07 14:46:43 Functions: 4 4 100.0 %

          Line data    Source code
       1             : /**
       2             :  * Copyright Soramitsu Co., Ltd. All Rights Reserved.
       3             :  * SPDX-License-Identifier: Apache-2.0
       4             :  */
       5             : 
       6             : #ifndef IROHA_LEDGER_STATE_HPP
       7             : #define IROHA_LEDGER_STATE_HPP
       8             : 
       9             : #include <memory>
      10             : 
      11             : #include "interfaces/common_objects/peer.hpp"
      12             : 
      13             : namespace iroha {
      14             :   using PeerList = std::vector<std::shared_ptr<shared_model::interface::Peer>>;
      15             : 
      16             :   struct LedgerState {
      17             :     std::shared_ptr<PeerList> ledger_peers;
      18             : 
      19             :     LedgerState(std::shared_ptr<PeerList> peers)
      20        1269 :         : ledger_peers(std::move(peers)) {}
      21             :     LedgerState() = default;
      22             :   };
      23             : }  // namespace iroha
      24             : 
      25             : #endif  // IROHA_LEDGER_STATE_HPP

Generated by: LCOV version 1.13