-
Notifications
You must be signed in to change notification settings - Fork 631
[CDEC-485] Move Block data types from core to chain package #3351
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - seems like there's just stylish-haskell and hlint complaints.
Pos.Core.Block.Main.Instances | ||
Pos.Core.Block.Main.Types | ||
Pos.Core.Block.Union.ComponentBlock | ||
Pos.Core.Block.Union.Types |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👋
, feedPM | ||
, feedPMC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^ 👍
chain/src/Pos/Chain/Block/JsonLog.hs
Outdated
, jlAdoptedBlock | ||
) where | ||
|
||
import Formatting (sformat) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a huge deal, but this should be more like:
import Universum
import Formatting (sformat)
@@ -54,7 +54,7 @@ instance Bi MainProof where | |||
decode <*> | |||
decode | |||
|
|||
instance SafeCopy SscProof => SafeCopy MainProof where |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this just a redundant constraint or something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The old code base used these to side step orphan instance problems.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 👍
@@ -54,7 +54,7 @@ instance Bi MainProof where | |||
decode <*> | |||
decode | |||
|
|||
instance SafeCopy SscProof => SafeCopy MainProof where |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The old code base used these to side step orphan instance problems.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Just need to appease the hlint and stylish-haskell gods.
Description
We want to reduce the size of the
core
package and put everything related to blocks and chains in thechain
package. This first PR clears the way for that and move thePos.Core.Block
modules across.Linked issue
CDEC-485
Type of change
Developer checklist
Testing checklist
QA Steps
Screenshots (if available)