Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNineteen committed Dec 17, 2023
1 parent d35adb9 commit 8985b32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/gossip/fuzz.zig
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ pub fn randomCrdsValue(rng: std.rand.Random, maybe_should_pass_sig_verification:
// will have random id
// var value = try CrdsValue.random(rng, &keypair);
var value = try CrdsValue.randomWithIndex(rng, &keypair, 0);
value.data.LegacyContactInfo = LegacyContactInfo.default(Pubkey.fromPublicKey(&keypair.public_key, false));
value.data.LegacyContactInfo = LegacyContactInfo.default(Pubkey.fromPublicKey(&keypair.public_key));
try value.sign(&keypair);

const should_pass_sig_verification = maybe_should_pass_sig_verification orelse rng.boolean();
Expand Down Expand Up @@ -157,7 +157,7 @@ pub fn randomPullRequest(allocator: std.mem.Allocator, rng: std.rand.Random, key
defer bloom.deinit();

var crds_value = try CrdsValue.initSigned(crds.CrdsData{
.LegacyContactInfo = LegacyContactInfo.default(Pubkey.fromPublicKey(&keypair.public_key, false)),
.LegacyContactInfo = LegacyContactInfo.default(Pubkey.fromPublicKey(&keypair.public_key)),
}, keypair);

var filter = CrdsFilter{
Expand Down
2 changes: 1 addition & 1 deletion src/gossip/gossip_service.zig
Original file line number Diff line number Diff line change
Expand Up @@ -2520,7 +2520,7 @@ pub const BenchmarkGossipServiceGeneral = struct {
var address = SocketAddr.initIpv4(.{ 127, 0, 0, 1 }, 8888);
var endpoint = address.toEndpoint();

var pubkey = Pubkey.fromPublicKey(&keypair.public_key, false);
var pubkey = Pubkey.fromPublicKey(&keypair.public_key);
var contact_info = LegacyContactInfo.default(pubkey);
contact_info.shred_version = 19;
contact_info.gossip = address;
Expand Down

0 comments on commit 8985b32

Please sign in to comment.