From 0ba478b29610be88776a2fa09d060c67f78b8cdd Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Fri, 1 Jun 2012 17:58:57 -0700 Subject: [PATCH] Define WalletAdd transaction format. --- src/TransactionFormats.cpp | 10 ++++++++++ src/TransactionFormats.h | 5 +++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/TransactionFormats.cpp b/src/TransactionFormats.cpp index 10d435f26c..3aaaa40c1e 100644 --- a/src/TransactionFormats.cpp +++ b/src/TransactionFormats.cpp @@ -69,6 +69,16 @@ TransactionFormat InnerTxnFormats[]= { S_FIELD(Extensions), STI_TL, SOE_IFFLAG, 0x02000000 }, { sfInvalid, NULL, STI_DONE, SOE_NEVER, -1 } } }, + { "WalletAdd", ttWALLET_ADD, { + { S_FIELD(Flags), STI_UINT32, SOE_FLAGS, 0 }, + { S_FIELD(Amount), STI_AMOUNT, SOE_REQUIRED, 0 }, + { S_FIELD(AuthorizedKey), STI_ACCOUNT, SOE_REQUIRED, 0 }, + { S_FIELD(PubKey), STI_VL, SOE_REQUIRED, 0 }, + { S_FIELD(Signature), STI_VL, SOE_REQUIRED, 0 }, + { S_FIELD(SourceTag), STI_UINT32, SOE_IFFLAG, 1 }, + { S_FIELD(Extensions), STI_TL, SOE_IFFLAG, 0x02000000 }, + { sfInvalid, NULL, STI_DONE, SOE_NEVER, -1 } } + }, { NULL, ttINVALID } }; diff --git a/src/TransactionFormats.h b/src/TransactionFormats.h index 95a4c01dca..2808a51b8f 100644 --- a/src/TransactionFormats.h +++ b/src/TransactionFormats.h @@ -8,8 +8,9 @@ enum TransactionType ttINVALID = -1, ttPAYMENT = 0, ttCLAIM = 1, - ttINVOICE = 2, - ttOFFER = 3, + ttWALLET_ADD = 2, + ttINVOICE = 3, + ttOFFER = 4, ttCREDIT_SET = 20, ttTRANSIT_SET = 21, };