mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
Tidy up amendment feature macro
This commit is contained in:
@@ -280,15 +280,16 @@ public:
|
|||||||
if (it.second != 0)
|
if (it.second != 0)
|
||||||
trans.setFieldU32 (sfFlags, it.second);
|
trans.setFieldU32 (sfFlags, it.second);
|
||||||
|
|
||||||
uint256 txID = trans.getTransactionID();
|
|
||||||
|
|
||||||
Serializer s;
|
Serializer s;
|
||||||
trans.add (s);
|
trans.add (s);
|
||||||
|
|
||||||
#if RIPPLE_PROPOSE_AMENDMENTS
|
#if ! RIPPLE_PROPOSE_AMENDMENTS
|
||||||
|
return;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
uint256 txID = trans.getTransactionID();
|
||||||
auto tItem = std::make_shared <SHAMapItem> (txID, s.peekData());
|
auto tItem = std::make_shared <SHAMapItem> (txID, s.peekData());
|
||||||
initialPosition->addGiveItem (tItem, true, false);
|
initialPosition->addGiveItem (tItem, true, false);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user