Skip to content

Commit b25e2c0

Browse files
committed
fix: bb peer command didn't affect bootstrap config
The bootstrap nodes will filter out their address from the list of bootstrap nodes. When no bootstrap nodes are configured, an error will be raised. For this the 'peer' command in the bb scripts should not edit the config files of bootstrap nodes differently than non-bootstrap nodes.
1 parent 51b45b8 commit b25e2c0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

play/bb.edn

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,7 @@
377377
bootstr-cfgs (get cfgs-by-is-btsrp true)
378378
non-bootstr-cfgs (get cfgs-by-is-btsrp false)
379379
peers (flatten (map (fn [cfg] (get cfg :ext-addrs)) bootstr-cfgs))]
380-
(doseq [cfg bootstr-cfgs]
381-
(toml-edit-file (get cfg :cfg-file) {"CustomBootstrapAddresses" []}))
382-
(doseq [cfg non-bootstr-cfgs]
380+
(doseq [cfg cfgs]
383381
(toml-edit-file (get cfg :cfg-file) {"CustomBootstrapAddresses" peers})))}
384382

385383
init:testchain

0 commit comments

Comments
 (0)