mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-29 15:35:50 +00:00
Fix manifest message handler
This commit is contained in:
@@ -651,8 +651,9 @@ OverlayImpl::onManifests (Job&,
|
|||||||
if (!hashRouter.addSuppressionPeer (hash, from->id ()))
|
if (!hashRouter.addSuppressionPeer (hash, from->id ()))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
auto const serialized = mo->serialized;
|
||||||
auto const result =
|
auto const result =
|
||||||
manifestCache_.applyManifest (std::move (*mo), journal);
|
manifestCache_.applyManifest (std::move(*mo), journal);
|
||||||
|
|
||||||
if (result == ManifestDisposition::accepted)
|
if (result == ManifestDisposition::accepted)
|
||||||
{
|
{
|
||||||
@@ -662,7 +663,7 @@ OverlayImpl::onManifests (Job&,
|
|||||||
static const char* const sql =
|
static const char* const sql =
|
||||||
"INSERT INTO ValidatorManifests (RawData) VALUES (:rawData);";
|
"INSERT INTO ValidatorManifests (RawData) VALUES (:rawData);";
|
||||||
soci::blob rawData(*db);
|
soci::blob rawData(*db);
|
||||||
convert (mo->serialized, rawData);
|
convert (serialized, rawData);
|
||||||
*db << sql, soci::use (rawData);
|
*db << sql, soci::use (rawData);
|
||||||
tr.commit ();
|
tr.commit ();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user