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;
|
||||
}
|
||||
|
||||
if (field)
|
||||
{
|
||||
const STObject* previous = dynamic_cast<const STObject*>(node.peekAtPField(*field));
|
||||
if(previous)
|
||||
{
|
||||
@@ -198,6 +200,7 @@ void OrderBookDB::processTxn(const SerializedTransaction& stTxn, TER terResult,T
|
||||
if(book) book->publish(jvObj);
|
||||
}
|
||||
}
|
||||
}
|
||||
}catch(...)
|
||||
{
|
||||
cLog(lsINFO) << "Fields not found in OrderBookDB::processTxn";
|
||||
|
||||
Reference in New Issue
Block a user