-
Notifications
You must be signed in to change notification settings - Fork 86
Block->ommers shows ommers of a given block. #104
base: master
Are you sure you want to change the base?
Conversation
@@ -117,6 +117,23 @@ export class EthqlBlock implements EthqlBlock { | |||
} | |||
} | |||
|
|||
export interface EthqlOmmerBlock |
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.
@akhila-raju – maybe you could elaborate on why it was necessary to introduce a separate class for ommer blocks?
Also why overwrite the miner property in this PR and not in #102?
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.
Sure - the reasons why I introduced a separate class for ommers is because ommers don't contain transactions:
- transactions shouldn't be a property on ommers if they don't exist
- transactionsCount will always return null for ommers
Rather than carry down a check for whether the block is an ommer block, I decided to create a new class to simplify things.
The miner property was already EthqlAccount, it wasn't overwritten - just copied and pasted for EthqlOmmerBlock :)
Resolves #101.