diff --git a/src/test/consensus/ConsensusExtensions_test.cpp b/src/test/consensus/ConsensusExtensions_test.cpp index 5abc2a2b21..5cf3745974 100644 --- a/src/test/consensus/ConsensusExtensions_test.cpp +++ b/src/test/consensus/ConsensusExtensions_test.cpp @@ -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()); diff --git a/src/xrpld/app/consensus/ConsensusExtensions.cpp b/src/xrpld/app/consensus/ConsensusExtensions.cpp index 8f792b9201..7817cb402a 100644 --- a/src/xrpld/app/consensus/ConsensusExtensions.cpp +++ b/src/xrpld/app/consensus/ConsensusExtensions.cpp @@ -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) ||