@@ -98,6 +98,10 @@ pub struct Spec {
98
98
#[ serde( skip_serializing_if = "Option::is_none" ) ]
99
99
pub prefunded_keys : Option < Vec < key:: secp256k1:: Info > > ,
100
100
101
+ /// For primary network.
102
+ #[ serde( default ) ]
103
+ pub staking_amount_in_avax : u64 ,
104
+
101
105
/// Represents the configuration for "avalanchego".
102
106
/// Set as if run in remote machines.
103
107
/// For instance, "config-file" must be the path valid
@@ -395,6 +399,7 @@ pub struct RegionMachineId {
395
399
pub struct DefaultSpecOption {
396
400
pub log_level : String ,
397
401
pub network_name : String ,
402
+ pub staking_amount_in_avax : u64 ,
398
403
399
404
pub arch_type : String ,
400
405
pub os_type : String ,
@@ -1071,6 +1076,12 @@ impl Spec {
1071
1076
1072
1077
prefunded_keys : Some ( prefunded_keys_info) ,
1073
1078
1079
+ staking_amount_in_avax : if opts. staking_amount_in_avax > 0 {
1080
+ opts. staking_amount_in_avax
1081
+ } else {
1082
+ 2000
1083
+ } ,
1084
+
1074
1085
avalanchego_config,
1075
1086
coreth_chain_config,
1076
1087
avalanchego_genesis_template,
@@ -1535,6 +1546,8 @@ avalanchego_config:
1535
1546
consensus-accepted-frontier-gossip-peer-size: 10
1536
1547
network-compression-type: gzip
1537
1548
1549
+ staking_amount_in_avax: 2000
1550
+
1538
1551
coreth_chain_config:
1539
1552
coreth-admin-api-enabled: true
1540
1553
offline-pruning-enabled: false
@@ -1639,6 +1652,8 @@ coreth_chain_config:
1639
1652
1640
1653
prefunded_keys : None ,
1641
1654
1655
+ staking_amount_in_avax : 2000 ,
1656
+
1642
1657
avalanchego_config,
1643
1658
coreth_chain_config : coreth_chain_config:: Config :: default ( ) ,
1644
1659
avalanchego_genesis_template : None ,
0 commit comments