mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Bug fixes.
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
|
||||
#include "TransactionFormats.h"
|
||||
|
||||
#define TF_BASE \
|
||||
{ sfTransactionType, SOE_REQUIRED }, \
|
||||
{ sfFlags, SOE_REQUIRED }, \
|
||||
{ sfSignature, SOE_OPTIONAL },
|
||||
|
||||
TransactionFormat InnerTxnFormats[]=
|
||||
{
|
||||
{ "AccountSet", ttACCOUNT_SET, {
|
||||
{ "AccountSet", ttACCOUNT_SET, { TF_BASE
|
||||
{ sfFlags, SOE_REQUIRED },
|
||||
{ sfSourceTag, SOE_OPTIONAL },
|
||||
{ sfEmailHash, SOE_OPTIONAL },
|
||||
@@ -15,7 +20,7 @@ TransactionFormat InnerTxnFormats[]=
|
||||
{ sfPublishSize, SOE_OPTIONAL },
|
||||
{ sfInvalid, SOE_END } }
|
||||
},
|
||||
{ "Claim", ttCLAIM, {
|
||||
{ "Claim", ttCLAIM, { TF_BASE
|
||||
{ sfFlags, SOE_REQUIRED },
|
||||
{ sfGenerator, SOE_REQUIRED },
|
||||
{ sfPublicKey, SOE_REQUIRED },
|
||||
@@ -23,7 +28,7 @@ TransactionFormat InnerTxnFormats[]=
|
||||
{ sfSourceTag, SOE_OPTIONAL },
|
||||
{ sfInvalid, SOE_END } }
|
||||
},
|
||||
{ "CreditSet", ttCREDIT_SET, {
|
||||
{ "CreditSet", ttCREDIT_SET, { TF_BASE
|
||||
{ sfFlags, SOE_REQUIRED },
|
||||
{ sfDestination, SOE_REQUIRED },
|
||||
{ sfSourceTag, SOE_OPTIONAL },
|
||||
@@ -33,7 +38,7 @@ TransactionFormat InnerTxnFormats[]=
|
||||
{ sfInvalid, SOE_END } }
|
||||
},
|
||||
/*
|
||||
{ "Invoice", ttINVOICE, {
|
||||
{ "Invoice", ttINVOICE, { TF_BASE
|
||||
{ sfFlags, SOE_REQUIRED },
|
||||
{ sfTarget, SOE_REQUIRED },
|
||||
{ sfAmount, SOE_REQUIRED },
|
||||
@@ -43,7 +48,7 @@ TransactionFormat InnerTxnFormats[]=
|
||||
{ sfInvalid, SOE_END } }
|
||||
},
|
||||
*/
|
||||
{ "NicknameSet", ttNICKNAME_SET, {
|
||||
{ "NicknameSet", ttNICKNAME_SET, { TF_BASE
|
||||
{ sfFlags, SOE_REQUIRED },
|
||||
{ sfNickname, SOE_REQUIRED },
|
||||
{ sfMinimumOffer, SOE_OPTIONAL },
|
||||
@@ -51,7 +56,7 @@ TransactionFormat InnerTxnFormats[]=
|
||||
{ sfSourceTag, SOE_OPTIONAL },
|
||||
{ sfInvalid, SOE_END } }
|
||||
},
|
||||
{ "OfferCreate", ttOFFER_CREATE, {
|
||||
{ "OfferCreate", ttOFFER_CREATE, { TF_BASE
|
||||
{ sfFlags, SOE_REQUIRED},
|
||||
{ sfTakerPays, SOE_REQUIRED },
|
||||
{ sfTakerGets, SOE_REQUIRED },
|
||||
@@ -59,19 +64,19 @@ TransactionFormat InnerTxnFormats[]=
|
||||
{ sfExpiration, SOE_OPTIONAL },
|
||||
{ sfInvalid, SOE_END } }
|
||||
},
|
||||
{ "OfferCancel", ttOFFER_CANCEL, {
|
||||
{ "OfferCancel", ttOFFER_CANCEL, { TF_BASE
|
||||
{ sfFlags, SOE_REQUIRED },
|
||||
{ sfOfferSequence, SOE_REQUIRED },
|
||||
{ sfSourceTag, SOE_OPTIONAL },
|
||||
{ sfInvalid, SOE_END } }
|
||||
},
|
||||
{ "PasswordFund", ttPASSWORD_FUND, {
|
||||
{ "PasswordFund", ttPASSWORD_FUND, { TF_BASE
|
||||
{ sfFlags, SOE_REQUIRED },
|
||||
{ sfDestination, SOE_REQUIRED },
|
||||
{ sfSourceTag, SOE_OPTIONAL },
|
||||
{ sfInvalid, SOE_END } }
|
||||
},
|
||||
{ "PasswordSet", ttPASSWORD_SET, {
|
||||
{ "PasswordSet", ttPASSWORD_SET, { TF_BASE
|
||||
{ sfFlags, SOE_REQUIRED },
|
||||
{ sfAuthorizedKey, SOE_REQUIRED },
|
||||
{ sfGenerator, SOE_REQUIRED },
|
||||
@@ -80,7 +85,7 @@ TransactionFormat InnerTxnFormats[]=
|
||||
{ sfSourceTag, SOE_OPTIONAL },
|
||||
{ sfInvalid, SOE_END } }
|
||||
},
|
||||
{ "Payment", ttPAYMENT, {
|
||||
{ "Payment", ttPAYMENT, { TF_BASE
|
||||
{ sfFlags, SOE_REQUIRED },
|
||||
{ sfDestination, SOE_REQUIRED },
|
||||
{ sfAmount, SOE_REQUIRED },
|
||||
@@ -90,7 +95,7 @@ TransactionFormat InnerTxnFormats[]=
|
||||
{ sfInvoiceID, SOE_OPTIONAL },
|
||||
{ sfInvalid, SOE_END } }
|
||||
},
|
||||
{ "WalletAdd", ttWALLET_ADD, {
|
||||
{ "WalletAdd", ttWALLET_ADD, { TF_BASE
|
||||
{ sfFlags, SOE_REQUIRED },
|
||||
{ sfAmount, SOE_REQUIRED },
|
||||
{ sfAuthorizedKey, SOE_REQUIRED },
|
||||
@@ -99,7 +104,7 @@ TransactionFormat InnerTxnFormats[]=
|
||||
{ sfSourceTag, SOE_OPTIONAL },
|
||||
{ sfInvalid, SOE_END } }
|
||||
},
|
||||
{ "Contract", ttCONTRACT, {
|
||||
{ "Contract", ttCONTRACT, { TF_BASE
|
||||
{ sfFlags, SOE_REQUIRED },
|
||||
{ sfExpiration, SOE_REQUIRED },
|
||||
{ sfBondAmount, SOE_REQUIRED },
|
||||
@@ -111,7 +116,7 @@ TransactionFormat InnerTxnFormats[]=
|
||||
{ sfExpireCode, SOE_OPTIONAL },
|
||||
{ sfInvalid, SOE_END } }
|
||||
},
|
||||
{ "RemoveContract", ttCONTRACT_REMOVE, {
|
||||
{ "RemoveContract", ttCONTRACT_REMOVE, { TF_BASE
|
||||
{ sfFlags, SOE_REQUIRED },
|
||||
{ sfTarget, SOE_REQUIRED },
|
||||
{ sfInvalid, SOE_END } }
|
||||
|
||||
Reference in New Issue
Block a user