Skip to content

Commit eef2389

Browse files
committed
feat(config): wire --bzz-token-address through bee config
1 parent 9065bc8 commit eef2389

5 files changed

Lines changed: 5 additions & 0 deletions

File tree

config/config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ bee-configs:
9595
blockchain-rpc-endpoint: "ws://geth-swap.bee-playground.svc.swarm1.local:8546"
9696
bootnode-mode: false
9797
bootnodes: ""
98+
bzz-token-address: "0x6aab14fe9cccd64a502d23842d916eb5321c26e7"
9899
cache-capacity: 1000000
99100
chequebook-enable: true
100101
cors-allowed-origins: ""

config/local.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ bee-configs:
153153
blockchain-rpc-endpoint: "ws://geth-swap:8546"
154154
bootnode-mode: false
155155
bootnodes: ""
156+
bzz-token-address: "0x6aab14fe9cccd64a502d23842d916eb5321c26e7"
156157
cache-capacity: 20000
157158
chequebook-enable: true
158159
cors-allowed-origins: ""

pkg/config/bee.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ type BeeConfig struct {
2525
BlockTime *uint64 `yaml:"block-time"`
2626
BootnodeMode *bool `yaml:"bootnode-mode"`
2727
Bootnodes *string `yaml:"bootnodes"`
28+
BzzTokenAddress *string `yaml:"bzz-token-address"`
2829
CacheCapacity *uint64 `yaml:"cache-capacity"`
2930
ChequebookEnable *bool `yaml:"chequebook-enable"`
3031
CORSAllowedOrigins *string `yaml:"cors-allowed-origins"`

pkg/orchestration/k8s/helpers.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ block-time: {{ .BlockTime }}
2424
blockchain-rpc-endpoint: {{.BlockchainRPCEndpoint}}
2525
bootnode-mode: {{.BootnodeMode}}
2626
bootnode: {{.Bootnodes}}
27+
bzz-token-address: {{.BzzTokenAddress}}
2728
cache-capacity: {{.CacheCapacity}}
2829
chequebook-enable: {{.ChequebookEnable}}
2930
cors-allowed-origins: {{.CORSAllowedOrigins}}

pkg/orchestration/node.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ type Config struct {
8484
BlockTime uint64 // chain block time
8585
BootnodeMode bool // cause the node to always accept incoming connections
8686
Bootnodes string // initial nodes to connect to
87+
BzzTokenAddress string // bzz token contract address
8788
CacheCapacity uint64 // cache capacity in chunks, multiply by 4096 (MaxChunkSize) to get approximate capacity in bytes
8889
ChequebookEnable bool // enable chequebook
8990
CORSAllowedOrigins string // origins with CORS headers enabled

0 commit comments

Comments
 (0)