diff --git a/beacon_chain/genesis/src/beacon_block.rs b/beacon_chain/genesis/src/beacon_block.rs index 5c2124ccc..3fefff6a0 100644 --- a/beacon_chain/genesis/src/beacon_block.rs +++ b/beacon_chain/genesis/src/beacon_block.rs @@ -84,6 +84,6 @@ mod tests { for item in raw_sig_bytes.iter() { assert!(*item == 0); } - assert_eq!(genesis_block.signature, Signature::empty_sig()); + assert_eq!(genesis_block.signature, Signature::empty_signature()); } } diff --git a/beacon_chain/spec/src/foundation.rs b/beacon_chain/spec/src/foundation.rs index 5583957b2..2e3f92df6 100644 --- a/beacon_chain/spec/src/foundation.rs +++ b/beacon_chain/spec/src/foundation.rs @@ -42,7 +42,7 @@ impl ChainSpec { genesis_start_shard: 0, far_future_slot: u64::max_value(), zero_hash: Hash256::zero(), - empty_signature: Signature::empty_sig(), + empty_signature: Signature::empty_signature(), bls_withdrawal_prefix_byte: 0x00, /* * Time parameters diff --git a/beacon_chain/utils/bls/src/signature.rs b/beacon_chain/utils/bls/src/signature.rs index bd363e34a..07fc2baff 100644 --- a/beacon_chain/utils/bls/src/signature.rs +++ b/beacon_chain/utils/bls/src/signature.rs @@ -37,7 +37,7 @@ impl Signature { } /// Returns a new empty signature. - pub fn empty_sig() -> Self { + pub fn empty_signature() -> Self { let empty: Vec = vec![0; 97]; Signature(RawSignature::from_bytes(&empty).unwrap()) } @@ -76,8 +76,8 @@ mod tests { } #[test] - pub fn test_empty_sig() { - let sig = Signature::empty_sig(); + pub fn test_empty_signature() { + let sig = Signature::empty_signature(); let sig_as_bytes: Vec = sig.as_raw().as_bytes();