Add NicknameSet to TransactionFormats.

This commit is contained in:
Arthur Britto
2012-06-04 15:25:01 -07:00
parent b186b45c76
commit 0f02695f21
3 changed files with 11 additions and 0 deletions

View File

@@ -72,6 +72,7 @@ enum SOE_Field
sfNextTransitStart, sfNextTransitStart,
sfNickname, sfNickname,
sfOfferCurrency, sfOfferCurrency,
sfOfferMin,
sfPaths, sfPaths,
sfPubKey, sfPubKey,
sfSendMax, sfSendMax,

View File

@@ -44,6 +44,15 @@ TransactionFormat InnerTxnFormats[]=
{ S_FIELD(Extensions), STI_TL, SOE_IFFLAG, 0x02000000 }, { S_FIELD(Extensions), STI_TL, SOE_IFFLAG, 0x02000000 },
{ sfInvalid, NULL, STI_DONE, SOE_NEVER, -1 } } { sfInvalid, NULL, STI_DONE, SOE_NEVER, -1 } }
}, },
{ "NicknameSet", ttNICKNAME_SET, {
{ S_FIELD(Flags), STI_UINT32, SOE_FLAGS, 0 },
{ S_FIELD(Nickname), STI_HASH256, SOE_IFFLAG, 8 },
{ S_FIELD(OfferMin), STI_AMOUNT, SOE_IFFLAG, 1 },
{ S_FIELD(Signature), STI_VL, SOE_IFFLAG, 2 },
{ S_FIELD(SourceTag), STI_UINT32, SOE_IFFLAG, 1 },
{ S_FIELD(Extensions), STI_TL, SOE_IFFLAG, 0x02000000 },
{ sfInvalid, NULL, STI_DONE, SOE_NEVER, -1 } }
},
{ "Offer", ttOFFER, { { "Offer", ttOFFER, {
{ S_FIELD(Flags), STI_UINT32, SOE_FLAGS, 0 }, { S_FIELD(Flags), STI_UINT32, SOE_FLAGS, 0 },
{ S_FIELD(AmountIn), STI_AMOUNT, SOE_REQUIRED, 0 }, { S_FIELD(AmountIn), STI_AMOUNT, SOE_REQUIRED, 0 },

View File

@@ -12,6 +12,7 @@ enum TransactionType
ttACCOUNT_SET = 3, ttACCOUNT_SET = 3,
ttPASSWORD_FUND = 4, ttPASSWORD_FUND = 4,
ttPASSWORD_SET = 5, ttPASSWORD_SET = 5,
ttNICKNAME_SET = 6,
ttCREDIT_SET = 20, ttCREDIT_SET = 20,
ttTRANSIT_SET = 21, ttTRANSIT_SET = 21,
ttINVOICE = 10, ttINVOICE = 10,