@@ -206,6 +206,10 @@ pub enum IotaCommand {
206
206
/// Defaults to `200000000000`(200 IOTA).
207
207
#[ arg( long) ]
208
208
faucet_amount : Option < u64 > ,
209
+ /// Set the amount of objects the faucet will send for each request.
210
+ /// Defaults to 5.
211
+ #[ arg( long) ]
212
+ faucet_object_count : Option < usize > ,
209
213
#[ cfg( feature = "indexer" ) ]
210
214
#[ command( flatten) ]
211
215
indexer_feature_args : IndexerFeatureArgs ,
@@ -392,6 +396,7 @@ impl IotaCommand {
392
396
force_regenesis,
393
397
with_faucet,
394
398
faucet_amount,
399
+ faucet_object_count,
395
400
#[ cfg( feature = "indexer") ]
396
401
indexer_feature_args,
397
402
fullnode_rpc_port,
@@ -408,6 +413,7 @@ impl IotaCommand {
408
413
config_dir. clone ( ) ,
409
414
with_faucet,
410
415
faucet_amount,
416
+ faucet_object_count,
411
417
#[ cfg( feature = "indexer" ) ]
412
418
indexer_feature_args,
413
419
force_regenesis,
@@ -640,6 +646,7 @@ async fn start(
640
646
config_dir : Option < PathBuf > ,
641
647
with_faucet : Option < String > ,
642
648
faucet_amount : Option < u64 > ,
649
+ faucet_object_count : Option < usize > ,
643
650
#[ cfg( feature = "indexer" ) ] indexer_feature_args : IndexerFeatureArgs ,
644
651
force_regenesis : bool ,
645
652
epoch_duration_ms : Option < u64 > ,
@@ -911,7 +918,7 @@ async fn start(
911
918
let config = FaucetConfig {
912
919
host_ip,
913
920
port : faucet_address. port ( ) ,
914
- num_coins : DEFAULT_FAUCET_NUM_COINS ,
921
+ num_coins : faucet_object_count . unwrap_or ( DEFAULT_FAUCET_NUM_COINS ) ,
915
922
amount : faucet_amount. unwrap_or ( DEFAULT_FAUCET_NANOS_AMOUNT ) ,
916
923
..Default :: default ( )
917
924
} ;
0 commit comments