Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
qiweiii committed Aug 1, 2024
1 parent ec089c1 commit 97d0326
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Blockchain/Sources/Blockchain/Safrole.swift
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ extension Safrole {
}

let epochMark = isEpochChange ? EpochMarker(
entropy: entropy,
validators: ConfigFixedSizeArray(config: config, array: newCurrentValidators.map(\.bandersnatch))
entropy: newEntropyPool.1,
validators: ConfigFixedSizeArray(config: config, array: newNextValidators.map(\.bandersnatch))
) : nil

let ticketsMark: ConfigFixedSizeArray<Ticket, ProtocolConfig.EpochLength>? =
Expand Down
2 changes: 0 additions & 2 deletions Utils/Sources/Utils/Bandersnatch.swift
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ public class Verifier {
throw BandersnatchError.createVerifierFailed
}
ringRoot = Data144(Data(output))!

print(ringRoot)
}

deinit {
Expand Down
2 changes: 1 addition & 1 deletion Utils/Sources/bandersnatch/src/bandersnatch_vrfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ impl Verifier {
.verify(input, output, aux_data, &signature.proof)
.is_err()
{
println!("Ring signature verification failure");
println!("Ietf signature verification failure");
return Err(());
}
println!("Ietf signature verified");
Expand Down

0 comments on commit 97d0326

Please sign in to comment.