mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-23 15:10:34 +00:00
fix: VaultVersion
This commit is contained in:
@@ -324,7 +324,6 @@ constexpr std::uint8_t kVaultMaximumIouScale = 18;
|
||||
*/
|
||||
enum class VaultVersion : uint8_t {
|
||||
Legacy = 0,
|
||||
Invalid,
|
||||
CashBasis,
|
||||
};
|
||||
|
||||
|
||||
@@ -149,10 +149,13 @@ getVaultVersion(SLE::const_ref vault)
|
||||
{
|
||||
case 0:
|
||||
return VaultVersion::Legacy;
|
||||
case 2:
|
||||
case 1:
|
||||
return VaultVersion::CashBasis;
|
||||
default:
|
||||
return VaultVersion::Invalid;
|
||||
// LCOV_EXCL_START
|
||||
UNREACHABLE("xrpl::getVaultVersion : invalid vault version");
|
||||
return VaultVersion::Legacy;
|
||||
// LCOV_EXCL_STOP
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user