Loading...
Searching...
No Matches
consensus_manager_geo_pbft.h
Go to the documentation of this file.
1
/*
2
* Licensed to the Apache Software Foundation (ASF) under one
3
* or more contributor license agreements. See the NOTICE file
4
* distributed with this work for additional information
5
* regarding copyright ownership. The ASF licenses this file
6
* to you under the Apache License, Version 2.0 (the
7
* "License"); you may not use this file except in compliance
8
* with the License. You may obtain a copy of the License at
9
*
10
* http://www.apache.org/licenses/LICENSE-2.0
11
*
12
* Unless required by applicable law or agreed to in writing,
13
* software distributed under the License is distributed on an
14
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
* KIND, either express or implied. See the License for the
16
* specific language governing permissions and limitations
17
* under the License.
18
*/
19
20
#pragma once
21
22
#include "
platform/consensus/execution/geo_transaction_executor.h
"
23
#include "
platform/consensus/ordering/geo_pbft/geo_pbft_commitment.h
"
24
#include "
platform/consensus/ordering/pbft/consensus_manager_pbft.h
"
25
26
namespace
resdb
{
27
28
class
ConsensusManagerGeoPBFT
:
public
ConsensusManagerPBFT
{
29
public
:
30
ConsensusManagerGeoPBFT
(
31
const
ResDBConfig
& config,
32
std::unique_ptr<GeoTransactionExecutor> local_executor,
33
std::unique_ptr<GeoGlobalExecutor> global_executor);
34
virtual
~ConsensusManagerGeoPBFT
() =
default
;
35
36
int
ConsensusCommit
(std::unique_ptr<Context> context,
37
std::unique_ptr<Request> request)
override
;
38
39
private
:
40
std::unique_ptr<GeoPBFTCommitment> commitment_;
41
};
42
43
}
// namespace resdb
resdb::ConsensusManagerGeoPBFT
Definition
consensus_manager_geo_pbft.h:28
resdb::ConsensusManagerGeoPBFT::ConsensusCommit
int ConsensusCommit(std::unique_ptr< Context > context, std::unique_ptr< Request > request) override
Definition
consensus_manager_geo_pbft.cpp:35
resdb::ConsensusManagerGeoPBFT::~ConsensusManagerGeoPBFT
virtual ~ConsensusManagerGeoPBFT()=default
resdb::ConsensusManagerPBFT
Definition
consensus_manager_pbft.h:36
resdb::ResDBConfig
Definition
resdb_config.h:28
consensus_manager_pbft.h
geo_pbft_commitment.h
geo_transaction_executor.h
resdb
Definition
chain_state.cpp:24
platform
consensus
ordering
geo_pbft
consensus_manager_geo_pbft.h
Generated by
1.9.8