mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix 'getAffectedAccount' -- logic was totally wrong.
You can't get this from the transaction because which accounts a transaction affects depends on things like which offers it winds up taking. And you can't build it with the metadata because you don't always build the metadata locally -- consider fetching a ledger after a network split. The only rational way to do this is to build the affected account vector from the metadata.
This commit is contained in:
@@ -717,7 +717,7 @@ SHAMapTreeNode::pointer SHAMap::fetchNodeExternal(const SHAMapNode& id, const ui
|
||||
try
|
||||
{
|
||||
SHAMapTreeNode::pointer ret =
|
||||
boost::make_shared<SHAMapTreeNode>(id, obj->getData(), mSeq - 1, snfPREFIX, hash);
|
||||
boost::make_shared<SHAMapTreeNode>(id, obj->getData(), mSeq, snfPREFIX, hash);
|
||||
if (id != *ret)
|
||||
{
|
||||
cLog(lsFATAL) << "id:" << id << ", got:" << *ret;
|
||||
|
||||
Reference in New Issue
Block a user