Skip to content

Commit f701571

Browse files
authored
Merge pull request #444 from blinklabs-io/fix/ledger-block-type-map-comments
fix: correct comments for ledger block type maps
2 parents 10041db + 38daa73 commit f701571

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ledger/era.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ func GetEraById(eraId uint8) *Era {
5858
return &era
5959
}
6060

61-
// BlockHeaderToBlockTypeMap is a mapping of NtC chainsync block header types
62-
// to NtN block types (era ID)
61+
// BlockHeaderToBlockTypeMap is a mapping of NtN chainsync block header types
62+
// (era ID) to NtC block types
6363
var BlockHeaderToBlockTypeMap = map[uint]uint{
6464
BlockHeaderTypeShelley: BlockTypeShelley,
6565
BlockHeaderTypeAllegra: BlockTypeAllegra,
@@ -69,8 +69,8 @@ var BlockHeaderToBlockTypeMap = map[uint]uint{
6969
BlockHeaderTypeConway: BlockTypeConway,
7070
}
7171

72-
// BlockToBlockHeaderTypeMap is a mapping of NtN chainsync block types (era ID)
73-
// to NtC block header types
72+
// BlockToBlockHeaderTypeMap is a mapping of NtC chainsync block types
73+
// to NtN block header types (era ID)
7474
var BlockToBlockHeaderTypeMap = map[uint]uint{
7575
BlockTypeShelley: BlockHeaderTypeShelley,
7676
BlockTypeAllegra: BlockHeaderTypeAllegra,

0 commit comments

Comments
 (0)