From 13b8359de6ec2d062bf39ee0e9c08b6b473c9b49 Mon Sep 17 00:00:00 2001 From: Richard Holland Date: Sat, 1 Aug 2020 10:23:31 +0200 Subject: [PATCH] Reserve transaction type and error codes for event hooking: Event hooks will allow accounts to introduce configurable behavior in response to send and receive events. --- src/ripple/protocol/TER.h | 1 + src/ripple/protocol/TxFormats.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/ripple/protocol/TER.h b/src/ripple/protocol/TER.h index c43a5ad53..41f271ed7 100644 --- a/src/ripple/protocol/TER.h +++ b/src/ripple/protocol/TER.h @@ -277,6 +277,7 @@ enum TECcodes : TERUnderlyingType { tecKILLED = 150, tecHAS_OBLIGATIONS = 151, tecTOO_SOON = 152, + tecHOOK_ERROR [[maybe_unused]] = 153 }; //------------------------------------------------------------------------------ diff --git a/src/ripple/protocol/TxFormats.h b/src/ripple/protocol/TxFormats.h index a9d4d94f1..7ccac5ac7 100644 --- a/src/ripple/protocol/TxFormats.h +++ b/src/ripple/protocol/TxFormats.h @@ -56,6 +56,8 @@ enum TxType { ttTRUST_SET = 20, ttACCOUNT_DELETE = 21, + ttHOOK_SET [[maybe_unused]] = 22, + ttAMENDMENT = 100, ttFEE = 101, ttUNL_MODIFY = 102,