mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-09 12:31:23 +00:00
37 lines
702 B
Rust
37 lines
702 B
Rust
use std::sync::Arc;
|
|
|
|
use super::helpers::{
|
|
TestStore,
|
|
setup_attestation_validation_test,
|
|
};
|
|
use super::state::attestation_record::{
|
|
AttestationRecord,
|
|
AttestationValidationContext,
|
|
AttestationValidationError,
|
|
};
|
|
use super::state::block::validation::AttesterMap;
|
|
use super::bls::{
|
|
AggregateSignature,
|
|
Keypair,
|
|
};
|
|
use super::db::{
|
|
MemoryDB,
|
|
};
|
|
use super::db::stores::{
|
|
BlockStore,
|
|
ValidatorStore,
|
|
};
|
|
use super::utils::types::{
|
|
Hash256,
|
|
Bitfield,
|
|
};
|
|
|
|
#[test]
|
|
fn test_attestation_validation_valid() {
|
|
let (a, c, _stores) = setup_attestation_validation_test(10, 2);
|
|
|
|
let result = c.validate_attestation(&a);
|
|
|
|
assert!(result.unwrap().is_some());
|
|
}
|