Skip to content

Commit f2a6e8f

Browse files
committed
Post rebase fixes.
1 parent af756f3 commit f2a6e8f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

beacon_chain/consensus_object_pools/blob_quarantine.nim

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
import
1111
stew/bitops2,
12-
std/[sets, tables],
12+
std/[sets, tables, sequtils],
1313
results, metrics,
1414
../spec/[presets, helpers, column_map],
1515
../beacon_chain_db_quarantine
@@ -73,12 +73,14 @@ type
7373
OnDataColumnSidecarCallback* = proc(
7474
data: DataColumnSidecarInfoObject) {.gcsafe, raises: [].}
7575

76+
SomeSidecarRef = ref fulu.DataColumnSidecar | ref BlobSidecar
77+
7678
BlobQuarantine* =
7779
SidecarQuarantine[BlobSidecar, OnBlobSidecarCallback]
7880
ColumnQuarantine* =
7981
SidecarQuarantine[fulu.DataColumnSidecar, OnDataColumnSidecarCallback]
8082

81-
func indexLog[T](sidecars: openArray[ref T]): string =
83+
func indexLog[T: SomeSidecarRef](sidecars: openArray[ref T]): string =
8284
"[" & sidecars.mapIt($uint64(it[].index)).join(",") & "]"
8385

8486
func isEmpty[A](holder: SidecarHolder[A]): bool =

beacon_chain/nimbus_beacon_node.nim

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2287,8 +2287,7 @@ proc installMessageValidators(node: BeaconNode) =
22872287
if res == ValidationResult.Accept:
22882288
node.eventBus.blockGossipPeerQueue.emit(
22892289
EventBeaconBlockGossipPeerObject.init(signedBlock, src))
2290-
res
2291-
)
2290+
res)
22922291
# beacon_attestation_{subnet_id}
22932292
# https://github.com/ethereum/consensus-specs/blob/v1.4.0-beta.5/specs/phase0/p2p-interface.md#beacon_attestation_subnet_id
22942293
# https://github.com/ethereum/consensus-specs/blob/v1.6.0-beta.0/specs/gloas/p2p-interface.md#beacon_attestation_subnet_id

0 commit comments

Comments
 (0)