@@ -54,8 +54,8 @@ func TestProcessIncludedAttestationTwoTracked(t *testing.T) {
5454 AggregationBits : bitfield.Bitlist {0b11 , 0b1 },
5555 }
5656 s .processIncludedAttestation (t .Context (), state , att )
57- wanted1 := "\" Attestation included\" balanceChange=0 correctHead=true correctSource=true correctTarget=true head=0x68656c6c6f2d inclusionSlot=2 newBalance=32000000000 prefix= monitor slot=1 source=0x68656c6c6f2d target=0x68656c6c6f2d validatorIndex=2"
58- wanted2 := "\" Attestation included\" balanceChange=100000000 correctHead=true correctSource=true correctTarget=true head=0x68656c6c6f2d inclusionSlot=2 newBalance=32000000000 prefix= monitor slot=1 source=0x68656c6c6f2d target=0x68656c6c6f2d validatorIndex=12"
57+ wanted1 := "\" Attestation included\" balanceChange=0 correctHead=true correctSource=true correctTarget=true head=0x68656c6c6f2d inclusionSlot=2 newBalance=32000000000 package=beacon-chain/ monitor slot=1 source=0x68656c6c6f2d target=0x68656c6c6f2d validatorIndex=2"
58+ wanted2 := "\" Attestation included\" balanceChange=100000000 correctHead=true correctSource=true correctTarget=true head=0x68656c6c6f2d inclusionSlot=2 newBalance=32000000000 package=beacon-chain/ monitor slot=1 source=0x68656c6c6f2d target=0x68656c6c6f2d validatorIndex=12"
5959 require .LogsContain (t , hook , wanted1 )
6060 require .LogsContain (t , hook , wanted2 )
6161}
@@ -123,8 +123,8 @@ func TestProcessUnaggregatedAttestationStateCached(t *testing.T) {
123123 }
124124 require .NoError (t , s .config .StateGen .SaveState (ctx , root , state ))
125125 s .processUnaggregatedAttestation (t .Context (), att )
126- wanted1 := "\" Processed unaggregated attestation\" head=0x68656c6c6f2d prefix= monitor slot=1 source=0x68656c6c6f2d target=0x68656c6c6f2d validatorIndex=2"
127- wanted2 := "\" Processed unaggregated attestation\" head=0x68656c6c6f2d prefix= monitor slot=1 source=0x68656c6c6f2d target=0x68656c6c6f2d validatorIndex=12"
126+ wanted1 := "\" Processed unaggregated attestation\" head=0x68656c6c6f2d package=beacon-chain/ monitor slot=1 source=0x68656c6c6f2d target=0x68656c6c6f2d validatorIndex=2"
127+ wanted2 := "\" Processed unaggregated attestation\" head=0x68656c6c6f2d package=beacon-chain/ monitor slot=1 source=0x68656c6c6f2d target=0x68656c6c6f2d validatorIndex=12"
128128 require .LogsContain (t , hook , wanted1 )
129129 require .LogsContain (t , hook , wanted2 )
130130}
@@ -161,7 +161,7 @@ func TestProcessAggregatedAttestationStateNotCached(t *testing.T) {
161161 },
162162 }
163163 s .processAggregatedAttestation (ctx , att )
164- require .LogsContain (t , hook , "\" Processed attestation aggregation\" aggregatorIndex=2 beaconBlockRoot=0x000000000000 prefix= monitor slot=1 sourceRoot=0x68656c6c6f2d targetRoot=0x68656c6c6f2d" )
164+ require .LogsContain (t , hook , "\" Processed attestation aggregation\" aggregatorIndex=2 beaconBlockRoot=0x000000000000 package=beacon-chain/ monitor slot=1 sourceRoot=0x68656c6c6f2d targetRoot=0x68656c6c6f2d" )
165165 require .LogsContain (t , hook , "Skipping aggregated attestation due to state not found in cache" )
166166 logrus .SetLevel (logrus .InfoLevel )
167167}
@@ -199,9 +199,9 @@ func TestProcessAggregatedAttestationStateCached(t *testing.T) {
199199
200200 require .NoError (t , s .config .StateGen .SaveState (ctx , root , state ))
201201 s .processAggregatedAttestation (ctx , att )
202- require .LogsContain (t , hook , "\" Processed attestation aggregation\" aggregatorIndex=2 beaconBlockRoot=0x68656c6c6f2d prefix= monitor slot=1 sourceRoot=0x68656c6c6f2d targetRoot=0x68656c6c6f2d" )
203- require .LogsContain (t , hook , "\" Processed aggregated attestation\" head=0x68656c6c6f2d prefix= monitor slot=1 source=0x68656c6c6f2d target=0x68656c6c6f2d validatorIndex=2" )
204- require .LogsDoNotContain (t , hook , "\" Processed aggregated attestation\" head=0x68656c6c6f2d prefix= monitor slot=1 source=0x68656c6c6f2d target=0x68656c6c6f2d validatorIndex=12" )
202+ require .LogsContain (t , hook , "\" Processed attestation aggregation\" aggregatorIndex=2 beaconBlockRoot=0x68656c6c6f2d package=beacon-chain/ monitor slot=1 sourceRoot=0x68656c6c6f2d targetRoot=0x68656c6c6f2d" )
203+ require .LogsContain (t , hook , "\" Processed aggregated attestation\" head=0x68656c6c6f2d package=beacon-chain/ monitor slot=1 source=0x68656c6c6f2d target=0x68656c6c6f2d validatorIndex=2" )
204+ require .LogsDoNotContain (t , hook , "\" Processed aggregated attestation\" head=0x68656c6c6f2d package=beacon-chain/ monitor slot=1 source=0x68656c6c6f2d target=0x68656c6c6f2d validatorIndex=12" )
205205}
206206
207207func TestProcessAttestations (t * testing.T ) {
@@ -239,8 +239,8 @@ func TestProcessAttestations(t *testing.T) {
239239 wrappedBlock , err := blocks .NewBeaconBlock (block )
240240 require .NoError (t , err )
241241 s .processAttestations (ctx , state , wrappedBlock )
242- wanted1 := "\" Attestation included\" balanceChange=0 correctHead=true correctSource=true correctTarget=true head=0x68656c6c6f2d inclusionSlot=2 newBalance=32000000000 prefix= monitor slot=1 source=0x68656c6c6f2d target=0x68656c6c6f2d validatorIndex=2"
243- wanted2 := "\" Attestation included\" balanceChange=100000000 correctHead=true correctSource=true correctTarget=true head=0x68656c6c6f2d inclusionSlot=2 newBalance=32000000000 prefix= monitor slot=1 source=0x68656c6c6f2d target=0x68656c6c6f2d validatorIndex=12"
242+ wanted1 := "\" Attestation included\" balanceChange=0 correctHead=true correctSource=true correctTarget=true head=0x68656c6c6f2d inclusionSlot=2 newBalance=32000000000 package=beacon-chain/ monitor slot=1 source=0x68656c6c6f2d target=0x68656c6c6f2d validatorIndex=2"
243+ wanted2 := "\" Attestation included\" balanceChange=100000000 correctHead=true correctSource=true correctTarget=true head=0x68656c6c6f2d inclusionSlot=2 newBalance=32000000000 package=beacon-chain/ monitor slot=1 source=0x68656c6c6f2d target=0x68656c6c6f2d validatorIndex=12"
244244 require .LogsContain (t , hook , wanted1 )
245245 require .LogsContain (t , hook , wanted2 )
246246
0 commit comments