CCF
Loading...
Searching...
No Matches
gov_effects_interface.h
Go to the documentation of this file.
1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the Apache 2.0 License.
3#pragma once
4
5#include "ccf/crypto/pem.h"
7#include "ccf/tx.h"
8
9namespace ccf
10{
12 {
13 public:
14 virtual ~AbstractGovernanceEffects() = default;
15
16 static char const* get_subsystem_name()
17 {
18 return "GovernanceEffects";
19 }
20
22 {
23 std::optional<ccf::crypto::Pem> previous;
25 };
26
28 ccf::kv::Tx& tx, ServiceIdentities identities) = 0;
29 virtual bool rekey_ledger(ccf::kv::Tx& tx) = 0;
31 virtual void trigger_ledger_chunk(ccf::kv::Tx& tx) = 0;
32 virtual void trigger_snapshot(ccf::kv::Tx& tx) = 0;
34 ccf::kv::Tx& tx,
35 const std::optional<std::vector<std::string>>& interfaces =
36 std::nullopt) = 0;
37 };
38}
Definition gov_effects_interface.h:12
static char const * get_subsystem_name()
Definition gov_effects_interface.h:16
virtual void transition_service_to_open(ccf::kv::Tx &tx, ServiceIdentities identities)=0
virtual void trigger_recovery_shares_refresh(ccf::kv::Tx &tx)=0
virtual ~AbstractGovernanceEffects()=default
virtual bool rekey_ledger(ccf::kv::Tx &tx)=0
virtual void trigger_acme_refresh(ccf::kv::Tx &tx, const std::optional< std::vector< std::string > > &interfaces=std::nullopt)=0
virtual void trigger_snapshot(ccf::kv::Tx &tx)=0
virtual void trigger_ledger_chunk(ccf::kv::Tx &tx)=0
Definition node_subsystem_interface.h:8
Definition pem.h:18
Definition tx.h:201
Definition app_interface.h:14
Definition gov_effects_interface.h:22
std::optional< ccf::crypto::Pem > previous
Definition gov_effects_interface.h:23
ccf::crypto::Pem next
Definition gov_effects_interface.h:24