Skip to content

Commit 08d89bb

Browse files
authored
Merge pull request #4301 from jayz22/update-env
Update env to 20.0.2 Reviewed-by: dmkozh
2 parents 60263de + 367d2c3 commit 08d89bb

File tree

7 files changed

+38
-54
lines changed

7 files changed

+38
-54
lines changed

Cargo.lock

+23-23
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
Stellar-core is a replicated state machine that maintains a local copy of a cryptographic ledger and processes transactions against it, in consensus with a set of peers.
1212
It implements the [Stellar Consensus Protocol](https://github.com/stellar/stellar-core/blob/master/src/scp/readme.md), a _federated_ consensus protocol.
13-
It is written in C++14 and runs on Linux, OSX and Windows.
13+
It is written in C++17 and runs on Linux, OSX and Windows.
1414
Learn more by reading the [overview document](https://github.com/stellar/stellar-core/blob/master/docs/readme.md).
1515

1616
# Documentation

src/protocol-curr/xdr

src/protocol-next/xdr

src/rust/Cargo.toml

+6-6
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ itertools = "=0.11.0"
3333
# N.
3434

3535
[dependencies.soroban-env-host-curr]
36-
version = "=21.0.0"
36+
version = "=21.0.2"
3737
git = "https://github.com/stellar/rs-soroban-env"
3838
package = "soroban-env-host"
39-
rev = "cd534ed18dc44368b26e0c5089756cd1bcde0bc1"
39+
rev = "6ddc1d05380646f88447c4e78390784df2269737"
4040

4141
# This copy of the soroban host is _optional_ and only enabled during protocol
4242
# transitions. When transitioning from protocol N to N+1, the `curr` copy
@@ -63,14 +63,14 @@ package = "soroban-env-host"
6363
rev = "93120b6b32cd910fcc224cbf6aec1333f771a8bc"
6464

6565
[dependencies.soroban-test-wasms]
66-
version = "=21.0.0"
66+
version = "=21.0.2"
6767
git = "https://github.com/stellar/rs-soroban-env"
68-
rev = "cd534ed18dc44368b26e0c5089756cd1bcde0bc1"
68+
rev = "6ddc1d05380646f88447c4e78390784df2269737"
6969

7070
[dependencies.soroban-synth-wasm]
71-
version = "=21.0.0"
71+
version = "=21.0.2"
7272
git = "https://github.com/stellar/rs-soroban-env"
73-
rev = "cd534ed18dc44368b26e0c5089756cd1bcde0bc1"
73+
rev = "6ddc1d05380646f88447c4e78390784df2269737"
7474

7575
[dependencies.cargo-lock]
7676
version = "=9.0.0"

src/rust/src/host-dep-tree-curr.txt

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
soroban-env-host 21.0.0 git+https://github.com/stellar/rs-soroban-env?rev=cd534ed18dc44368b26e0c5089756cd1bcde0bc1#cd534ed18dc44368b26e0c5089756cd1bcde0bc1
1+
soroban-env-host 21.0.2 git+https://github.com/stellar/rs-soroban-env?rev=6ddc1d05380646f88447c4e78390784df2269737#6ddc1d05380646f88447c4e78390784df2269737
22
├── wasmparser 0.116.1 checksum:a58e28b80dd8340cb07b8242ae654756161f6fc8d0038123d679b7b99964fa50
33
│ ├── semver 1.0.17 checksum:bebd363326d05ec3e2f532ab7660680f3b02130d780c299bca73469d521bc0ed
44
│ │ └── serde 1.0.192 checksum:bca2a08484b285dcb282d0f67b26cadc0df8b19f8c12502c13d966bf9482f001
@@ -103,20 +103,20 @@ soroban-env-host 21.0.0 git+https://github.com/stellar/rs-soroban-env?rev=cd534e
103103
│ ├── wasmi_arena 0.4.0 git+https://github.com/stellar/wasmi?rev=0ed3f3dee30dc41ebe21972399e0a73a41944aa0#0ed3f3dee30dc41ebe21972399e0a73a41944aa0
104104
│ ├── spin 0.9.8 checksum:6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67
105105
│ └── smallvec 1.10.0 checksum:a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0
106-
├── soroban-env-common 21.0.0 git+https://github.com/stellar/rs-soroban-env?rev=cd534ed18dc44368b26e0c5089756cd1bcde0bc1#cd534ed18dc44368b26e0c5089756cd1bcde0bc1
106+
├── soroban-env-common 21.0.2 git+https://github.com/stellar/rs-soroban-env?rev=6ddc1d05380646f88447c4e78390784df2269737#6ddc1d05380646f88447c4e78390784df2269737
107107
│ ├── wasmparser 0.116.1 checksum:a58e28b80dd8340cb07b8242ae654756161f6fc8d0038123d679b7b99964fa50
108108
│ ├── tracy-client 0.15.2 checksum:434ecabbda9f67eeea1eab44d52f4a20538afa3e2c2770f2efc161142b25b608
109-
│ ├── stellar-xdr 21.0.0 checksum:193cef4375f498306b3b39d2182b8e1192904fc90dd2eec8b3f3007b87c427c7
109+
│ ├── stellar-xdr 21.0.1 checksum:88e716110d5e050e528820217f84d4667e166ced841ba48d074152d4ad4ab884
110110
│ │ ├── stellar-strkey 0.0.8 checksum:12d2bf45e114117ea91d820a846fd1afbe3ba7d717988fee094ce8227a3bf8bd
111111
│ │ ├── hex 0.4.3 checksum:7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70
112112
│ │ ├── escape-bytes 0.1.1 checksum:2bfcf67fea2815c2fc3b90873fae90957be12ff417335dfadc7f52927feb03b2
113113
│ │ ├── crate-git-revision 0.0.6 checksum:c521bf1f43d31ed2f73441775ed31935d77901cb3451e44b38a1c1612fcbaf98
114114
│ │ └── base64 0.13.1 checksum:9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8
115115
│ ├── static_assertions 1.1.0 checksum:a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f
116116
│ ├── soroban-wasmi 0.31.1-soroban.20.0.1 git+https://github.com/stellar/wasmi?rev=0ed3f3dee30dc41ebe21972399e0a73a41944aa0#0ed3f3dee30dc41ebe21972399e0a73a41944aa0
117-
│ ├── soroban-env-macros 21.0.0 git+https://github.com/stellar/rs-soroban-env?rev=cd534ed18dc44368b26e0c5089756cd1bcde0bc1#cd534ed18dc44368b26e0c5089756cd1bcde0bc1
117+
│ ├── soroban-env-macros 21.0.2 git+https://github.com/stellar/rs-soroban-env?rev=6ddc1d05380646f88447c4e78390784df2269737#6ddc1d05380646f88447c4e78390784df2269737
118118
│ │ ├── syn 2.0.39 checksum:23e78b90f2fcf45d3e842032ce32e3f2d1545ba6636271dcbf24fa306d87be7a
119-
│ │ ├── stellar-xdr 21.0.0 checksum:193cef4375f498306b3b39d2182b8e1192904fc90dd2eec8b3f3007b87c427c7
119+
│ │ ├── stellar-xdr 21.0.1 checksum:88e716110d5e050e528820217f84d4667e166ced841ba48d074152d4ad4ab884
120120
│ │ ├── serde_json 1.0.108 checksum:3d1c7e3eac408d115102c4c24ad393e0821bb3a5df4d506a80f85f7a742a526b
121121
│ │ ├── serde 1.0.192 checksum:bca2a08484b285dcb282d0f67b26cadc0df8b19f8c12502c13d966bf9482f001
122122
│ │ ├── quote 1.0.33 checksum:5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae
@@ -130,7 +130,7 @@ soroban-env-host 21.0.0 git+https://github.com/stellar/rs-soroban-env?rev=cd534e
130130
│ │ └── proc-macro2 1.0.69 checksum:134c189feb4956b20f6f547d2cf727d4c0fe06722b20a0eec87ed445a97f92da
131131
│ ├── ethnum 1.5.0 checksum:b90ca2580b73ab6a1f724b76ca11ab632df820fd6040c336200d2c1df7b3c82c
132132
│ └── crate-git-revision 0.0.6 checksum:c521bf1f43d31ed2f73441775ed31935d77901cb3451e44b38a1c1612fcbaf98
133-
├── soroban-builtin-sdk-macros 21.0.0 git+https://github.com/stellar/rs-soroban-env?rev=cd534ed18dc44368b26e0c5089756cd1bcde0bc1#cd534ed18dc44368b26e0c5089756cd1bcde0bc1
133+
├── soroban-builtin-sdk-macros 21.0.2 git+https://github.com/stellar/rs-soroban-env?rev=6ddc1d05380646f88447c4e78390784df2269737#6ddc1d05380646f88447c4e78390784df2269737
134134
│ ├── syn 2.0.39 checksum:23e78b90f2fcf45d3e842032ce32e3f2d1545ba6636271dcbf24fa306d87be7a
135135
│ ├── quote 1.0.33 checksum:5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae
136136
│ ├── proc-macro2 1.0.69 checksum:134c189feb4956b20f6f547d2cf727d4c0fe06722b20a0eec87ed445a97f92da

src/transactions/InvokeHostFunctionOpFrame.cpp

-16
Original file line numberDiff line numberDiff line change
@@ -73,22 +73,6 @@ getLedgerInfo(AbstractLedgerTxn& ltx, Application& app,
7373
auto cpu = sorobanConfig.cpuCostParams();
7474
auto mem = sorobanConfig.memCostParams();
7575

76-
// The host expects this vector to be the size of the # of cost types in the
77-
// xdr, but the v20 ledgers only have a subset due to the xdr for v21, so we
78-
// need to resize them before passing them to a host that supports v21. This is
79-
// not true for the prev build though because that one will be on the old xdr,
80-
// which is why we compile this resizing out here if we're NOT using prev.
81-
#ifndef ENABLE_PROTOCOL_UPGRADE_VIA_SOROBAN_ENV_HOST_PREV
82-
if (protocolVersionEquals(ltx.loadHeader().current().ledgerVersion,
83-
ProtocolVersion::V_20))
84-
{
85-
auto numCostTypes =
86-
xdr::xdr_traits<ContractCostType>::enum_values().size();
87-
cpu.resize(numCostTypes);
88-
mem.resize(numCostTypes);
89-
}
90-
#endif
91-
9276
info.cpu_cost_params = toCxxBuf(cpu);
9377
info.mem_cost_params = toCxxBuf(mem);
9478

0 commit comments

Comments
 (0)