Skip to content

Commit 76e0156

Browse files
committed
remove blockchain cache and override ports only if no custom ports are provided
1 parent a196f9a commit 76e0156

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

framework/.changeset/v0.7.2.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- Remove OTEL batches for faster metrics feedback
2+
- Fix default overrides for Aptos team

framework/components/blockchain/aptos.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ func defaultAptos(in *Input) {
2222
in.Image = "aptoslabs/tools:aptos-node-v1.27.2"
2323
}
2424
framework.L.Warn().Msg("Aptos node API can only be exposed on port 8080!")
25-
in.CustomPorts = append(in.CustomPorts, "8080:8080", "8081:8081")
25+
if in.CustomPorts == nil {
26+
in.CustomPorts = append(in.CustomPorts, "8080:8080", "8081:8081")
27+
}
2628
in.Port = "8080"
2729
}
2830

framework/components/blockchain/blockchain.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@ type Node struct {
5858

5959
// NewBlockchainNetwork this is an abstraction that can spin up various blockchain network simulators
6060
func NewBlockchainNetwork(in *Input) (*Output, error) {
61-
if in.Out != nil && in.Out.UseCache {
62-
return in.Out, nil
63-
}
6461
var out *Output
6562
var err error
6663
switch in.Type {
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
[blockchain_a]
2-
type = "aptos"
2+
type = "aptos"
3+
custom_ports = ["2020", "4050:4050", "8080:8080", "8081:8081"]
4+
docker_cmd_params = ["--skip-metadata-apply"]

0 commit comments

Comments
 (0)