@@ -113,29 +113,29 @@ suite "Gossip validation " & preset():
113113 beaconTime = att_1_0.data.slot.start_beacon_time (cfg.timeParams)
114114
115115 check:
116- validateAttestation (pool, batchCrypto, att_1_0, beaconTime, subnet, true ).waitFor ().isOk
116+ validateAttestation (pool, batchCrypto, nil , att_1_0, beaconTime, subnet, true ).waitFor ().isOk
117117
118118 # Same validator again
119- validateAttestation (pool, batchCrypto, att_1_0, beaconTime, subnet, true ).waitFor ().error ()[0 ] ==
119+ validateAttestation (pool, batchCrypto, nil , att_1_0, beaconTime, subnet, true ).waitFor ().error ()[0 ] ==
120120 ValidationResult .Ignore
121121
122122 pool[].nextAttestationEpoch.setLen (0 ) # reset for test
123123 check:
124124 # Wrong subnet
125125 validateAttestation (
126- pool, batchCrypto, att_1_0, beaconTime, SubnetId (subnet.uint8 + 1 ), true ).waitFor ().isErr
126+ pool, batchCrypto, nil , att_1_0, beaconTime, SubnetId (subnet.uint8 + 1 ), true ).waitFor ().isErr
127127
128128 pool[].nextAttestationEpoch.setLen (0 ) # reset for test
129129 check:
130130 # Too far in the future
131131 validateAttestation (
132- pool, batchCrypto, att_1_0, beaconTime - 1 .seconds, subnet, true ).waitFor ().isErr
132+ pool, batchCrypto, nil , att_1_0, beaconTime - 1 .seconds, subnet, true ).waitFor ().isErr
133133
134134 pool[].nextAttestationEpoch.setLen (0 ) # reset for test
135135 check:
136136 # Too far in the past
137137 validateAttestation (
138- pool, batchCrypto, att_1_0, beaconTime -
138+ pool, batchCrypto, nil , att_1_0, beaconTime -
139139 cfg.timeParams.SLOT_DURATION * SLOTS_PER_EPOCH .int64 - 1 .seconds,
140140 subnet, true ).waitFor ().isErr
141141
@@ -146,7 +146,7 @@ suite "Gossip validation " & preset():
146146 check:
147147 # Invalid signature
148148 validateAttestation (
149- pool, batchCrypto, broken, beaconTime, subnet, true ).waitFor ().
149+ pool, batchCrypto, nil , broken, beaconTime, subnet, true ).waitFor ().
150150 error ()[0 ] == ValidationResult .Reject
151151
152152 block :
@@ -156,9 +156,9 @@ suite "Gossip validation " & preset():
156156 # One invalid, one valid (batched)
157157 let
158158 fut_1_0 = validateAttestation (
159- pool, batchCrypto, broken, beaconTime, subnet, true )
159+ pool, batchCrypto, nil , broken, beaconTime, subnet, true )
160160 fut_1_1 = validateAttestation (
161- pool, batchCrypto, att_1_1, beaconTime, subnet, true )
161+ pool, batchCrypto, nil , att_1_1, beaconTime, subnet, true )
162162
163163 check:
164164 fut_1_0.waitFor ().error ()[0 ] == ValidationResult .Reject
@@ -172,9 +172,9 @@ suite "Gossip validation " & preset():
172172 # One invalid, one valid (batched)
173173 let
174174 fut_1_0 = validateAttestation (
175- pool, batchCrypto, broken, beaconTime, subnet, true )
175+ pool, batchCrypto, nil , broken, beaconTime, subnet, true )
176176 fut_1_1 = validateAttestation (
177- pool, batchCrypto, att_1_1, beaconTime, subnet, true )
177+ pool, batchCrypto, nil , att_1_1, beaconTime, subnet, true )
178178
179179 check:
180180 fut_1_0.waitFor ().error ()[0 ] == ValidationResult .Reject
@@ -194,9 +194,9 @@ suite "Gossip validation " & preset():
194194 # the individual attestations are invalid but their aggregate validates!
195195 let
196196 fut_1_0 = validateAttestation (
197- pool, batchCrypto, broken_1_0, beaconTime, subnet, true )
197+ pool, batchCrypto, nil , broken_1_0, beaconTime, subnet, true )
198198 fut_1_1 = validateAttestation (
199- pool, batchCrypto, broken_1_1, beaconTime, subnet, true )
199+ pool, batchCrypto, nil , broken_1_1, beaconTime, subnet, true )
200200
201201 check:
202202 fut_1_0.waitFor ().error ()[0 ] == ValidationResult .Reject
0 commit comments