mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-29 23:45:51 +00:00
Rename maxVaultDataLength to maxDataPayloadLength
This commit is contained in:
@@ -115,8 +115,8 @@ std::size_t constexpr maxMPTokenMetadataLength = 1024;
|
|||||||
/** The maximum amount of MPTokenIssuance */
|
/** The maximum amount of MPTokenIssuance */
|
||||||
std::uint64_t constexpr maxMPTokenAmount = 0x7FFF'FFFF'FFFF'FFFFull;
|
std::uint64_t constexpr maxMPTokenAmount = 0x7FFF'FFFF'FFFF'FFFFull;
|
||||||
|
|
||||||
/** The maximum length of MPTokenMetadata */
|
/** The maximum length of Data payload */
|
||||||
std::size_t constexpr maxVaultDataLength = 256;
|
std::size_t constexpr maxDataPayloadLength = 256;
|
||||||
|
|
||||||
/** Vault withdrawal policies */
|
/** Vault withdrawal policies */
|
||||||
std::uint8_t constexpr vaultStrategyFirstComeFirstServe = 1;
|
std::uint8_t constexpr vaultStrategyFirstComeFirstServe = 1;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
/*
|
/*
|
||||||
This file is part of rippled: https://github.com/ripple/rippled
|
This file is part of rippled: https://github.com/ripple/rippled
|
||||||
Copyright (c) 2023 Ripple Labs Inc.
|
Copyright (c) 2025 Ripple Labs Inc.
|
||||||
|
|
||||||
Permission to use, copy, modify, and/or distribute this software for any
|
Permission to use, copy, modify, and/or distribute this software for any
|
||||||
purpose with or without fee is hereby granted, provided that the above
|
purpose with or without fee is hereby granted, provided that the above
|
||||||
@@ -48,7 +48,7 @@ VaultCreate::preflight(PreflightContext const& ctx)
|
|||||||
|
|
||||||
if (auto const data = ctx.tx[~sfData])
|
if (auto const data = ctx.tx[~sfData])
|
||||||
{
|
{
|
||||||
if (data->empty() || data->length() > maxVaultDataLength)
|
if (data->empty() || data->length() > maxDataPayloadLength)
|
||||||
return temMALFORMED;
|
return temMALFORMED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
/*
|
/*
|
||||||
This file is part of rippled: https://github.com/ripple/rippled
|
This file is part of rippled: https://github.com/ripple/rippled
|
||||||
Copyright (c) 2023 Ripple Labs Inc.
|
Copyright (c) 2025 Ripple Labs Inc.
|
||||||
|
|
||||||
Permission to use, copy, modify, and/or distribute this software for any
|
Permission to use, copy, modify, and/or distribute this software for any
|
||||||
purpose with or without fee is hereby granted, provided that the above
|
purpose with or without fee is hereby granted, provided that the above
|
||||||
@@ -43,7 +43,7 @@ VaultSet::preflight(PreflightContext const& ctx)
|
|||||||
return temINVALID_FLAG;
|
return temINVALID_FLAG;
|
||||||
if (auto const data = ctx.tx[~sfData])
|
if (auto const data = ctx.tx[~sfData])
|
||||||
{
|
{
|
||||||
if (data->empty() || data->length() > maxVaultDataLength)
|
if (data->empty() || data->length() > maxDataPayloadLength)
|
||||||
return temMALFORMED;
|
return temMALFORMED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user