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 ~AbstractGovernanceEffects() override = 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;
33 };
34}
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 bool rekey_ledger(ccf::kv::Tx &tx)=0
virtual void trigger_snapshot(ccf::kv::Tx &tx)=0
~AbstractGovernanceEffects() override=default
virtual void trigger_ledger_chunk(ccf::kv::Tx &tx)=0
Definition node_subsystem_interface.h:8
Definition pem.h:18
Definition tx.h:200
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