mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
tsh collect call, compiling not tested
This commit is contained in:
@@ -38,14 +38,18 @@ namespace hook
|
||||
struct HookResult;
|
||||
bool isEmittedTxn(ripple::STTx const& tx);
|
||||
|
||||
|
||||
// this map type acts as both a read and write cache for hook execution
|
||||
using HookStateMap = std::map<ripple::AccountID, // account that owns the state
|
||||
std::map<ripple::uint256, // namespace
|
||||
std::map<ripple::uint256, // key
|
||||
std::pair<
|
||||
bool, // is modified from ledger value
|
||||
ripple::Blob>>>>; // the value
|
||||
// This map type acts as both a read and write cache for hook execution
|
||||
// and is preserved across the execution of the set of hook chains
|
||||
// being executed in the current transaction. It is committed to lgr
|
||||
// only upon tesSuccess for the otxn.
|
||||
using HookStateMap =
|
||||
std::map<
|
||||
ripple::AccountID, // account that owns the state
|
||||
std::map<ripple::uint256, // namespace
|
||||
std::map<ripple::uint256, // key
|
||||
std::pair<
|
||||
bool, // is modified from ledger value
|
||||
ripple::Blob>>>>; // the value
|
||||
|
||||
enum TSHFlags : uint8_t
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user