Rename maxVaultDataLength to maxDataPayloadLength

This commit is contained in:
Bronek Kozicki
2025-03-07 11:17:45 +00:00
parent fc2e1a2b5a
commit 4dc2025378
3 changed files with 6 additions and 6 deletions

View File

@@ -115,8 +115,8 @@ std::size_t constexpr maxMPTokenMetadataLength = 1024;
/** The maximum amount of MPTokenIssuance */
std::uint64_t constexpr maxMPTokenAmount = 0x7FFF'FFFF'FFFF'FFFFull;
/** The maximum length of MPTokenMetadata */
std::size_t constexpr maxVaultDataLength = 256;
/** The maximum length of Data payload */
std::size_t constexpr maxDataPayloadLength = 256;
/** Vault withdrawal policies */
std::uint8_t constexpr vaultStrategyFirstComeFirstServe = 1;

View File

@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
/*
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
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 (data->empty() || data->length() > maxVaultDataLength)
if (data->empty() || data->length() > maxDataPayloadLength)
return temMALFORMED;
}

View File

@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
/*
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
purpose with or without fee is hereby granted, provided that the above
@@ -43,7 +43,7 @@ VaultSet::preflight(PreflightContext const& ctx)
return temINVALID_FLAG;
if (auto const data = ctx.tx[~sfData])
{
if (data->empty() || data->length() > maxVaultDataLength)
if (data->empty() || data->length() > maxDataPayloadLength)
return temMALFORMED;
}