Skip to content

Commit 69e20bc

Browse files
authored
TON: enable embedded http server (#2087)
* fix: enable http server, remove default TVM version * chore: changeset
1 parent e244868 commit 69e20bc

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

framework/.changeset/v0.10.20.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Update TON/MyLocalTON 3.7 Default Settings

framework/components/blockchain/ton.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,12 @@ func newTon(in *Input) (*Output, error) {
6565
networkName := network.Name
6666

6767
baseEnv := map[string]string{
68-
"GENESIS": "true",
69-
"NAME": "genesis",
70-
"LITE_PORT": ports.LiteServer,
71-
"CUSTOM_PARAMETERS": "--state-ttl 315360000 --archive-ttl 315360000",
72-
"VERSION_CAPABILITIES": "11",
68+
"GENESIS": "true",
69+
"NAME": "genesis",
70+
"LITE_PORT": ports.LiteServer,
71+
"CUSTOM_PARAMETERS": "--state-ttl 315360000 --archive-ttl 315360000",
72+
"EMBEDDED_FILE_HTTP_SERVER": "true",
73+
"EMBEDDED_FILE_HTTP_SERVER_PORT": in.Port,
7374
}
7475

7576
// merge with additional environment variables from input
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
[blockchain_a]
22
type = "ton"
3-
image = "ghcr.io/neodix42/mylocalton-docker:dev"
3+
image = "ghcr.io/neodix42/mylocalton-docker:v3.7"
44
port = "8000"
55

66
[blockchain_a.custom_env]
7-
VERSION_CAPABILITIES = "11"
7+
EMBEDDED_FILE_HTTP_SERVER = "true"
8+
EMBEDDED_FILE_HTTP_SERVER_PORT = "8000"

framework/examples/myproject/smoke_ton_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ func TestTonSmoke(t *testing.T) {
2828
defer bc.Container.Terminate(t.Context())
2929

3030
var client ton.APIClientWrapped
31+
3132
t.Run("setup:connect", func(t *testing.T) {
3233
connectionPool := liteclient.NewConnectionPool()
3334
cfg, cferr := liteclient.GetConfigFromUrl(t.Context(), fmt.Sprintf("http://%s/localhost.global.config.json", bc.Nodes[0].ExternalHTTPUrl))

0 commit comments

Comments
 (0)