mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 22:45:52 +00:00
Don't crash if a node is deleted.
This commit is contained in:
@@ -182,6 +182,8 @@ void OrderBookDB::processTxn(const SerializedTransaction& stTxn, TER terResult,T
|
|||||||
field=&sfNewFields;
|
field=&sfNewFields;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (field)
|
||||||
|
{
|
||||||
const STObject* previous = dynamic_cast<const STObject*>(node.peekAtPField(*field));
|
const STObject* previous = dynamic_cast<const STObject*>(node.peekAtPField(*field));
|
||||||
if(previous)
|
if(previous)
|
||||||
{
|
{
|
||||||
@@ -198,6 +200,7 @@ void OrderBookDB::processTxn(const SerializedTransaction& stTxn, TER terResult,T
|
|||||||
if(book) book->publish(jvObj);
|
if(book) book->publish(jvObj);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}catch(...)
|
}catch(...)
|
||||||
{
|
{
|
||||||
cLog(lsINFO) << "Fields not found in OrderBookDB::processTxn";
|
cLog(lsINFO) << "Fields not found in OrderBookDB::processTxn";
|
||||||
|
|||||||
Reference in New Issue
Block a user