Skip to content

Commit

Permalink
Update Core to protocol 22.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmkozh committed Sep 16, 2024
1 parent 0340194 commit 8a42a94
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
2 changes: 2 additions & 0 deletions Builds/VisualStudio/stellar-core.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,7 @@ exit /b 0
<ClCompile Include="..\..\src\ledger\LedgerHeaderUtils.cpp" />
<ClCompile Include="..\..\src\ledger\LedgerManagerImpl.cpp" />
<ClCompile Include="..\..\src\ledger\LedgerRange.cpp" />
<ClCompile Include="..\..\src\ledger\LedgerStateSnapshot.cpp" />
<ClCompile Include="..\..\src\ledger\LedgerTxn.cpp" />
<ClCompile Include="..\..\src\ledger\LedgerTxnAccountSQL.cpp" />
<ClCompile Include="..\..\src\ledger\LedgerTxnClaimableBalanceSQL.cpp" />
Expand Down Expand Up @@ -1041,6 +1042,7 @@ exit /b 0
<ClInclude Include="..\..\src\ledger\LedgerManager.h" />
<ClInclude Include="..\..\src\ledger\LedgerManagerImpl.h" />
<ClInclude Include="..\..\src\ledger\LedgerRange.h" />
<ClInclude Include="..\..\src\ledger\LedgerStateSnapshot.h" />
<ClInclude Include="..\..\src\ledger\LedgerTxn.h" />
<ClInclude Include="..\..\src\ledger\LedgerTxnEntry.h" />
<ClInclude Include="..\..\src\ledger\LedgerTxnHeader.h" />
Expand Down
6 changes: 6 additions & 0 deletions Builds/VisualStudio/stellar-core.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -1377,6 +1377,9 @@
<ClCompile Include="..\..\src\main\QueryServer.cpp">
<Filter>main</Filter>
</ClCompile>
<ClCompile Include="..\..\src\ledger\LedgerStateSnapshot.cpp">
<Filter>ledger</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\lib\util\cpptoml.h">
Expand Down Expand Up @@ -2402,6 +2405,9 @@
<ClInclude Include="..\..\src\main\QueryServer.h">
<Filter>main</Filter>
</ClInclude>
<ClInclude Include="..\..\src\ledger\LedgerStateSnapshot.h">
<Filter>ledger</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<None Include="..\..\AUTHORS" />
Expand Down
2 changes: 1 addition & 1 deletion src/herder/test/HerderTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5554,7 +5554,7 @@ TEST_CASE("SCP message capture from previous ledger", "[herder]")
simulation->addConnection(validatorCKey.getPublicKey(),
validatorBKey.getPublicKey());
simulation->crankUntil(
[&]() { return C->getLedgerManager().getLastClosedLedgerNum() == 3; },
[&]() { return C->getLedgerManager().getLastClosedLedgerNum() >= 3; },
4 * Herder::EXP_LEDGER_TIMESPAN_SECONDS, false);

// C should have 3 EXTERNALIZEs in its scphistory table for ledger 2. This
Expand Down
2 changes: 1 addition & 1 deletion src/main/Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

namespace stellar
{
const uint32 Config::CURRENT_LEDGER_PROTOCOL_VERSION = 21
const uint32 Config::CURRENT_LEDGER_PROTOCOL_VERSION = 22
#ifdef ENABLE_NEXT_PROTOCOL_VERSION_UNSAFE_FOR_PRODUCTION
+ 1
#endif
Expand Down
2 changes: 0 additions & 2 deletions src/transactions/test/InvokeHostFunctionTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4331,7 +4331,6 @@ TEST_CASE("Vm instantiation tightening", "[tx][soroban]")
}
}

#ifdef ENABLE_NEXT_PROTOCOL_VERSION_UNSAFE_FOR_PRODUCTION
TEST_CASE("contract constructor support", "[tx][soroban]")
{
Config cfg = getTestConfig();
Expand Down Expand Up @@ -4432,4 +4431,3 @@ TEST_CASE("contract constructor support", "[tx][soroban]")
REQUIRE(invocation.getReturnValue().u32() == 303);
}
}
#endif
2 changes: 0 additions & 2 deletions src/transactions/test/TxEnvelopeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2493,7 +2493,6 @@ TEST_CASE("soroban txs not allowed before protocol upgrade",
REQUIRE(tx->getResult().result.code() == txMALFORMED);
}

#ifdef ENABLE_NEXT_PROTOCOL_VERSION_UNSAFE_FOR_PRODUCTION
TEST_CASE("XDR protocol compatibility validation", "[tx][envelope]")
{
auto validateTx = [](ProtocolVersion protocolVersion) {
Expand Down Expand Up @@ -2525,7 +2524,6 @@ TEST_CASE("XDR protocol compatibility validation", "[tx][envelope]")
REQUIRE(res->isSuccess());
}
}
#endif

TEST_CASE_VERSIONS("Soroban extension for non-Soroban tx",
"[tx][envelope][soroban]")
Expand Down

0 comments on commit 8a42a94

Please sign in to comment.