removed printlns
This commit is contained in:
parent
010d319fdf
commit
773227d627
@ -139,8 +139,6 @@ pub fn verify_block_signature(
|
|||||||
&state.fork,
|
&state.fork,
|
||||||
);
|
);
|
||||||
|
|
||||||
println!("verify {:?}", &block);
|
|
||||||
|
|
||||||
verify!(
|
verify!(
|
||||||
block
|
block
|
||||||
.signature
|
.signature
|
||||||
|
@ -33,7 +33,6 @@ impl TestingBeaconBlockBuilder {
|
|||||||
/// Modifying the block after signing may invalidate the signature.
|
/// Modifying the block after signing may invalidate the signature.
|
||||||
pub fn sign(&mut self, sk: &SecretKey, fork: &Fork, spec: &ChainSpec) {
|
pub fn sign(&mut self, sk: &SecretKey, fork: &Fork, spec: &ChainSpec) {
|
||||||
let message = self.block.signed_root();
|
let message = self.block.signed_root();
|
||||||
println!("block set {:?}", self.block);
|
|
||||||
let epoch = self.block.slot.epoch(spec.slots_per_epoch);
|
let epoch = self.block.slot.epoch(spec.slots_per_epoch);
|
||||||
let domain = spec.get_domain(epoch, Domain::BeaconBlock, fork);
|
let domain = spec.get_domain(epoch, Domain::BeaconBlock, fork);
|
||||||
self.block.signature = Signature::new(&message, domain, sk);
|
self.block.signature = Signature::new(&message, domain, sk);
|
||||||
|
Loading…
Reference in New Issue
Block a user