// We only smoke test this on a single error variant.
We only smoke test this on a single error variant.
We only smoke test this on a single error variant .
fn should_forward_error_from_csp() {
        let transcript = NiDkgTranscript {
            committee: receivers(&[NODE_3, NODE_1, NODE_2]),
            registry_version: REG_V1,
            ..dummy_transcript()
        };
        let invalid_arg_error = invalid_arg_error();
        let csp = csp_with_load_threshold_signing_key_returning(Err(
            CspDkgLoadPrivateKeyError::InvalidTranscriptError(invalid_arg_error.clone()),
        ));
        let error = load_transcript(
            &NODE_3,
            &LockableThresholdSigDataStore::new(),
            &csp,
            &transcript,
            &no_op_logger(),
        )
        .unwrap_err();
        assert_eq!(
            error,
            DkgLoadTranscriptError::InvalidTranscript(invalid_arg_error)
        );
    }
fn should_forward_error_from_csp ( ) { let transcript = NiDkgTranscript { committee : receivers ( & [ NODE_3 , NODE_1 , NODE_2 ] ) , registry_version : REG_V1 , .. dummy_transcript ( ) } ; let invalid_arg_error = invalid_arg_error ( ) ; let csp = csp_with_load_threshold_signing_key_returning ( Err ( CspDkgLoadPrivateKeyError :: InvalidTranscriptError ( invalid_arg_error . clone ( ) ) , ) ) ; let error = load_transcript ( & NODE_3 , & LockableThresholdSigDataStore :: new ( ) , & csp , & transcript , & no_op_logger ( ) , ) . unwrap_err ( ) ; assert_eq ! ( error DkgLoadTranscriptError InvalidTranscript ( invalid_arg_error ) ) ; }
We only smoke test this on a single error variant.
We only smoke test this on a single error variant .