Skip to content

Commit 2db844c

Browse files
Fix parameter name for forkchoiceUpdatedV4 (#8811)
1 parent d668a4b commit 2db844c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

ethereum/executionclient/src/main/java/tech/pegasys/teku/ethereum/executionclient/schema/PayloadAttributesV4.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class PayloadAttributesV4 extends PayloadAttributesV3 {
3333

3434
@JsonSerialize(using = UInt64AsHexSerializer.class)
3535
@JsonDeserialize(using = UInt64AsHexDeserializer.class)
36-
public final UInt64 targetBlockCount;
36+
public final UInt64 targetBlobCount;
3737

3838
@JsonSerialize(using = UInt64AsHexSerializer.class)
3939
@JsonDeserialize(using = UInt64AsHexDeserializer.class)
@@ -45,13 +45,13 @@ public PayloadAttributesV4(
4545
final @JsonProperty("suggestedFeeRecipient") Bytes20 suggestedFeeRecipient,
4646
final @JsonProperty("withdrawals") List<WithdrawalV1> withdrawals,
4747
final @JsonProperty("parentBeaconBlockRoot") Bytes32 parentBeaconBlockRoot,
48-
final @JsonProperty("targetBlobCount") UInt64 targetBlockCount,
48+
final @JsonProperty("targetBlobCount") UInt64 targetBlobCount,
4949
final @JsonProperty("maximumBlobCount") UInt64 maximumBlobCount) {
5050
super(timestamp, prevRandao, suggestedFeeRecipient, withdrawals, parentBeaconBlockRoot);
5151

52-
checkNotNull(targetBlockCount, "targetBlockCount");
52+
checkNotNull(targetBlobCount, "targetBlobCount");
5353
checkNotNull(maximumBlobCount, "maximumBlobCount");
54-
this.targetBlockCount = targetBlockCount;
54+
this.targetBlobCount = targetBlobCount;
5555
this.maximumBlobCount = maximumBlobCount;
5656
}
5757

@@ -91,13 +91,13 @@ public boolean equals(final Object o) {
9191
return false;
9292
}
9393
final PayloadAttributesV4 that = (PayloadAttributesV4) o;
94-
return Objects.equals(targetBlockCount, that.targetBlockCount)
94+
return Objects.equals(targetBlobCount, that.targetBlobCount)
9595
&& Objects.equals(maximumBlobCount, that.maximumBlobCount);
9696
}
9797

9898
@Override
9999
public int hashCode() {
100-
return Objects.hash(super.hashCode(), targetBlockCount, maximumBlobCount);
100+
return Objects.hash(super.hashCode(), targetBlobCount, maximumBlobCount);
101101
}
102102

103103
@Override
@@ -108,7 +108,7 @@ public String toString() {
108108
.add("suggestedFeeRecipient", suggestedFeeRecipient)
109109
.add("withdrawals", withdrawals)
110110
.add("parentBeaconBlockRoot", parentBeaconBlockRoot)
111-
.add("targetBlockCount", targetBlockCount)
111+
.add("targetBlobCount", targetBlobCount)
112112
.add("maximumBlobCount", maximumBlobCount)
113113
.toString();
114114
}

ethereum/executionclient/src/test/java/tech/pegasys/teku/ethereum/executionclient/schema/PayloadAttributesV4Test.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public void buildFromInternalPayload_HasCorrectValues() {
9494
assertThat(payloadBuildingAttributes.getParentBeaconBlockRoot())
9595
.isEqualTo(payloadAttributesV4.parentBeaconBlockRoot);
9696
assertThat(payloadBuildingAttributes.getTargetBlobCount())
97-
.hasValue(payloadAttributesV4.targetBlockCount);
97+
.hasValue(payloadAttributesV4.targetBlobCount);
9898
assertThat(payloadBuildingAttributes.getMaximumBlobCount())
9999
.hasValue(payloadAttributesV4.maximumBlobCount);
100100
}

0 commit comments

Comments
 (0)