зеркало из https://github.com/microsoft/CCF.git
Fix e2e test with PBFT (#374)
This commit is contained in:
Родитель
95faf70e63
Коммит
5fc380e5d2
|
@ -1049,13 +1049,10 @@ namespace ccf
|
|||
kv::Version version,
|
||||
const Service::State& s,
|
||||
const Service::Write& w) {
|
||||
if (w.size() > 0)
|
||||
if (w.at(0).value.status == ServiceStatus::OPEN)
|
||||
{
|
||||
if (w.at(0).value.status == ServiceStatus::OPEN)
|
||||
{
|
||||
accept_user_connections();
|
||||
LOG_INFO_FMT("Now accepting user transactions");
|
||||
}
|
||||
accept_user_connections();
|
||||
LOG_INFO_FMT("Now accepting user transactions");
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -1245,6 +1242,11 @@ namespace ccf
|
|||
{
|
||||
setup_n2n_channels();
|
||||
|
||||
// Since global hooks are not yet called when running CCF with ePBFT,
|
||||
// opening the network to users is hardcoded here for now. See
|
||||
// https://github.com/microsoft/CCF/issues/373
|
||||
accept_user_connections();
|
||||
|
||||
consensus = std::make_shared<PbftConsensusType>(
|
||||
n2n_channels,
|
||||
self,
|
||||
|
|
|
@ -611,10 +611,9 @@ namespace ccf
|
|||
if (!rpc.first)
|
||||
return {jsonrpc::pack(rpc.second, pack.value()), merkle_root};
|
||||
|
||||
SignedReq signed_request;
|
||||
|
||||
// Strip signature
|
||||
auto rpc_ = &rpc.second;
|
||||
SignedReq signed_request(rpc.second);
|
||||
if (rpc_->find(jsonrpc::SIG) != rpc_->end())
|
||||
{
|
||||
auto& req = rpc_->at(jsonrpc::REQ);
|
||||
|
|
Загрузка…
Ссылка в новой задаче