Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
},
.spec_test_version = .{
.type = .string,
.default = "v1.6.0-beta.2",
.default = "v1.7.0-alpha.10",
.description = "Consensus spec tests version tag.",
},
.spec_test_out_dir = .{
Expand Down
8 changes: 5 additions & 3 deletions src/state_transition/block/process_deposit_request.zig
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ const PendingDeposit = types.electra.PendingDeposit.Type;
const c = @import("constants");

pub fn processDepositRequest(comptime fork: ForkSeq, state: *BeaconState(fork), deposit_request: *const DepositRequest) !void {
const deposit_requests_start_index = try state.depositRequestsStartIndex();
if (deposit_requests_start_index == c.UNSET_DEPOSIT_REQUESTS_START_INDEX) {
try state.setDepositRequestsStartIndex(deposit_request.index);
if (comptime fork == .electra) {
const deposit_requests_start_index = try state.depositRequestsStartIndex();
if (deposit_requests_start_index == c.UNSET_DEPOSIT_REQUESTS_START_INDEX) {
try state.setDepositRequestsStartIndex(deposit_request.index);
}
}

const pending_deposit = PendingDeposit{
Expand Down
2 changes: 1 addition & 1 deletion test/spec/version.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
// This file exists as a cache key for the spec tests in CI.
// Do not commit changes by hand.

v1.6.0-beta.2
v1.7.0-alpha.10
Loading