From 7ccaeed4a8576a21f6990a5bbac7d04103b3f4b1 Mon Sep 17 00:00:00 2001 From: Etan Kissling Date: Tue, 14 Sep 2021 15:22:45 +0200 Subject: [PATCH] remove forked message accessor The template `message` extracts fork specific data from a forked block. However, its current implementation does not compile due to each fork returning a different type, i.e., the generated `case` code attempts to return different types from each branch. As the template is unused, it is safely removed for now. --- beacon_chain/spec/forks.nim | 3 --- 1 file changed, 3 deletions(-) diff --git a/beacon_chain/spec/forks.nim b/beacon_chain/spec/forks.nim index 87b0c0114..304661143 100644 --- a/beacon_chain/spec/forks.nim +++ b/beacon_chain/spec/forks.nim @@ -322,9 +322,6 @@ template root*(x: ForkedSignedBeaconBlock | ForkedTrustedSignedBeaconBlock): Eth template slot*(x: ForkedSignedBeaconBlock | ForkedTrustedSignedBeaconBlock): Slot = getForkedBlockField(x, slot) -template message*(x: ForkedSignedBeaconBlock | ForkedTrustedSignedBeaconBlock): auto = - withBlck(x): blck.message - template shortLog*(x: ForkedBeaconBlock): auto = withBlck(x): shortLog(blck)