mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-25 16:10:57 +00:00
fix: VaultVersion
This commit is contained in:
@@ -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