File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
convex-gui/src/main/java/convex/gui/peer Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 20
20
import convex .core .Coin ;
21
21
import convex .core .crypto .AKeyPair ;
22
22
import convex .core .exceptions .TODOException ;
23
+ import convex .core .init .Init ;
23
24
import convex .core .util .Utils ;
24
25
import convex .gui .components .ActionButton ;
25
26
import convex .gui .components .ActionPanel ;
@@ -70,7 +71,11 @@ public ServerListPanel(PeerGUI manager) {
70
71
ConvexLocal convex =manager .getDefaultConvex ();
71
72
manager .launchExtraPeer (convex );
72
73
});
73
- btnLaunch .setToolTipText ("Launch an extra peer for the network. Allocates some stake from genesis account" );
74
+ btnLaunch .setToolTipText ("Launch an extra peer when running a local network. Allocates some stake from genesis peer controller account." );
75
+ if (!Init .GENESIS_PEER_ADDRESS .equals (manager .getDefaultConvex ().getAddress ())) {
76
+ // Disable if we are not the genesis peer
77
+ btnLaunch .setEnabled (false );
78
+ }
74
79
toolBar .add (btnLaunch );
75
80
76
81
// TODO: We probably want to restore this, but semantics not obvious
You can’t perform that action at this time.
0 commit comments