File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/beacon-node/src/chain/rewards Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export async function computeBlockRewards(
2727) : Promise < BlockRewards > {
2828 const fork = preState . config . getForkName ( block . slot ) ;
2929 const { attestations : cachedAttestationsReward = 0 , syncAggregate : cachedSyncAggregateReward = 0 } =
30- postState ?. proposerRewards || { } ;
30+ postState ?. proposerRewards ?? { } ;
3131 let blockAttestationReward = cachedAttestationsReward ;
3232 let syncAggregateReward = cachedSyncAggregateReward ;
3333
@@ -65,7 +65,7 @@ function computeBlockAttestationRewardPhase0(
6565 _block : phase0 . BeaconBlock ,
6666 _preState : CachedBeaconStatePhase0
6767) : SubRewardValue {
68- throw new Error ( "Unsupported fork! Block attestation reward calculation is not yet available in phase0" ) ;
68+ throw new Error ( "Unsupported fork! Block attestation reward calculation is not available in phase0" ) ;
6969}
7070
7171/**
You can’t perform that action at this time.
0 commit comments