mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Bugfixes.
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
|
||||
#include "Ledger.h"
|
||||
#include "utils.h"
|
||||
|
||||
#include <boost/make_shared.hpp>
|
||||
|
||||
#include "utils.h"
|
||||
#include "Log.h"
|
||||
|
||||
LedgerStateParms Ledger::writeBack(LedgerStateParms parms, SerializedLedgerEntry::pointer entry)
|
||||
{
|
||||
ScopedLock l(mAccountStateMap->Lock());
|
||||
@@ -13,9 +15,7 @@ LedgerStateParms Ledger::writeBack(LedgerStateParms parms, SerializedLedgerEntry
|
||||
{
|
||||
if ((parms & lepCREATE) == 0)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
std::cerr << "writeBack no create" << std::endl;
|
||||
#endif
|
||||
Log(lsERROR) << "WriteBack non-existent node without create";
|
||||
return lepMISSING;
|
||||
}
|
||||
create = true;
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
|
||||
#include "SHAMap.h"
|
||||
|
||||
#include <stack>
|
||||
|
||||
#include <boost/foreach.hpp>
|
||||
@@ -9,7 +11,7 @@
|
||||
|
||||
#include "Serializer.h"
|
||||
#include "BitcoinUtil.h"
|
||||
#include "SHAMap.h"
|
||||
#include "Log.h"
|
||||
|
||||
SHAMap::SHAMap(uint32 seq) : mSeq(seq), mState(Modifying)
|
||||
{
|
||||
@@ -570,7 +572,11 @@ bool SHAMap::updateGiveItem(SHAMapItem::pointer item, bool isTransaction)
|
||||
|
||||
returnNode(node, true);
|
||||
if (!node->setItem(item, isTransaction ? SHAMapTreeNode::tnTRANSACTION : SHAMapTreeNode::tnACCOUNT_STATE))
|
||||
{
|
||||
Log(lsFATAL) << "SHAMap setItem fails";
|
||||
assert(false);
|
||||
return false;
|
||||
}
|
||||
|
||||
dirtyUp(stack, tag, node->getNodeHash());
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user