mirror of
https://github.com/Xahau/xahaud.git
synced 2026-09-27 07:36:52 +00:00
fix(build): avoid structured binding captures on clang 14
This commit is contained in:
@@ -2944,7 +2944,9 @@ class ConsensusExtensions_test : public beast::unit_test::suite
|
||||
// only to construct its independently signed report/share fixtures.
|
||||
if (!BEAST_EXPECT(!env.app().getValidatorKeys().keys))
|
||||
return;
|
||||
auto const [signer, secret] = randomKeyPair(KeyType::secp256k1);
|
||||
auto const signerKeys = randomKeyPair(KeyType::secp256k1);
|
||||
auto const& signer = signerKeys.first;
|
||||
auto const& secret = signerKeys.second;
|
||||
env.app().openLedger().modify([&](OpenView& view, beast::Journal) {
|
||||
STTx report(ttUNL_REPORT, [&](auto& obj) {
|
||||
obj.setFieldU32(sfLedgerSequence, env.current()->seq());
|
||||
|
||||
@@ -2616,10 +2616,11 @@ ConsensusExtensions::onPreBuild(
|
||||
std::size_t materialized = 0;
|
||||
for (auto const& [origin, latch] : pending)
|
||||
{
|
||||
auto const originId = origin;
|
||||
auto const skip = [&](char const* reason) {
|
||||
JLOG(j_.debug())
|
||||
<< "Export: preBuild witness skipped"
|
||||
<< " buildSeq=" << seq << " origin=" << origin
|
||||
<< " buildSeq=" << seq << " origin=" << originId
|
||||
<< " reason=" << reason;
|
||||
};
|
||||
if (!latch->isFieldPresent(sfExportCommitteeHash) ||
|
||||
|
||||
Reference in New Issue
Block a user