mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
tsh tests / update setregularkey tsh
This commit is contained in:
@@ -44,7 +44,7 @@ namespace hook
|
||||
{ttESCROW_FINISH, tshROLLBACK },
|
||||
{ttACCOUNT_SET, tshNONE },
|
||||
{ttESCROW_CANCEL, tshCOLLECT },
|
||||
{ttREGULAR_KEY_SET, tshNONE },
|
||||
{ttREGULAR_KEY_SET, tshROLLBACK },
|
||||
{ttOFFER_CREATE, tshCOLLECT },
|
||||
{ttOFFER_CANCEL, tshNONE },
|
||||
{ttTICKET_CREATE, tshNONE },
|
||||
|
||||
@@ -73,7 +73,6 @@ namespace hook
|
||||
// self transactions
|
||||
case ttACCOUNT_SET:
|
||||
case ttOFFER_CANCEL:
|
||||
case ttREGULAR_KEY_SET:
|
||||
case ttTICKET_CREATE:
|
||||
case ttHOOK_SET:
|
||||
case ttOFFER_CREATE: // this is handled seperately
|
||||
@@ -81,6 +80,14 @@ namespace hook
|
||||
break;
|
||||
}
|
||||
|
||||
case ttREGULAR_KEY_SET:
|
||||
{
|
||||
if (!tx.isFieldPresent(sfRegularKey))
|
||||
return {};
|
||||
ADD_TSH(tx.getAccountID(sfRegularKey), canRollback);
|
||||
break;
|
||||
}
|
||||
|
||||
case ttDEPOSIT_PREAUTH:
|
||||
{
|
||||
if (!tx.isFieldPresent(sfAuthorize))
|
||||
|
||||
Reference in New Issue
Block a user