@@ -11,10 +11,10 @@ use witnet_crypto::hash::calculate_sha256;
11
11
use crate :: {
12
12
chain:: {
13
13
tapi:: ActiveWips , DataRequestInfo , DataRequestOutput , DataRequestStage , DataRequestState ,
14
- Epoch , Hash , Hashable , PublicKeyHash , ValueTransferOutput ,
14
+ Environment , Epoch , Hash , Hashable , PublicKeyHash , ValueTransferOutput ,
15
15
} ,
16
16
error:: { DataRequestError , TransactionError } ,
17
- get_protocol_version_activation_epoch,
17
+ get_environment , get_protocol_version_activation_epoch,
18
18
proto:: versioning:: { ProtocolVersion , VersionedHashable } ,
19
19
radon_report:: { RadonReport , Stage , TypeLike } ,
20
20
transaction:: { CommitTransaction , DRTransaction , RevealTransaction , TallyTransaction } ,
@@ -579,7 +579,10 @@ pub fn data_request_has_too_many_witnesses(
579
579
if ProtocolVersion :: from_epoch_opt ( epoch) < ProtocolVersion :: V2_0 {
580
580
false
581
581
} else {
582
- usize:: from ( dr_output. witnesses ) > validator_count / 4
582
+ match get_environment ( ) {
583
+ Environment :: Mainnet => usize:: from ( dr_output. witnesses ) > validator_count / 4 ,
584
+ _ => usize:: from ( dr_output. witnesses ) > validator_count,
585
+ }
583
586
}
584
587
}
585
588
0 commit comments