LCOV - code coverage report
Current view: top level - irohad/model/commands - set_quorum.hpp (source / functions) Hit Total Coverage
Test: cleared_cor.info Lines: 0 1 0.0 %
Date: 2019-03-07 14:46:43 Functions: 6 9 66.7 %

          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_SET_QUORUM_HPP
       7             : #define IROHA_SET_QUORUM_HPP
       8             : 
       9             : #include <string>
      10             : #include "model/command.hpp"
      11             : 
      12             : namespace iroha {
      13             :   namespace model {
      14             :     /**
      15             :      * Change quorum for account
      16             :      */
      17             :     struct SetQuorum : public Command {
      18             :       /**
      19             :        * Account in which change the quorum
      20             :        */
      21             :       std::string account_id;
      22             : 
      23             :       /**
      24             :        * New value of quorum
      25             :        */
      26             :       uint32_t new_quorum;
      27             : 
      28             :       bool operator==(const Command &command) const override;
      29             : 
      30             :       SetQuorum() {}
      31             : 
      32             :       SetQuorum(const std::string &account_id, uint32_t new_quorum)
      33           0 :           : account_id(account_id), new_quorum(new_quorum) {}
      34             :     };
      35             :   }  // namespace model
      36             : }  // namespace iroha
      37             : #endif  // IROHA_SET_QUORUM_HPP

Generated by: LCOV version 1.13