From 6968da153c0fce73acb23d72284aab4c57c119b7 Mon Sep 17 00:00:00 2001 From: Miguel Portilla Date: Tue, 13 Oct 2020 13:14:54 -0400 Subject: [PATCH] Fix improper promotion of bool on return --- src/ripple/nodestore/impl/DatabaseShardImp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ripple/nodestore/impl/DatabaseShardImp.cpp b/src/ripple/nodestore/impl/DatabaseShardImp.cpp index 067423d3a..71683ce8f 100644 --- a/src/ripple/nodestore/impl/DatabaseShardImp.cpp +++ b/src/ripple/nodestore/impl/DatabaseShardImp.cpp @@ -265,7 +265,7 @@ DatabaseShardImp::prepareLedger(std::uint32_t validLedgerSeq) }(); if (!pathDesignation) - return false; + return boost::none; auto const needsHistoricalPath = *pathDesignation == PathDesignation::historical;