-
Notifications
You must be signed in to change notification settings - Fork 38
[GH-#83] Added fee to transactions #101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
||
@spec add_fees_to_block_state(list(), map()) :: map() | ||
def add_fees_to_block_state(txs, block_state) do | ||
pubkey = elem(Keys.pubkey(), 1) |
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.
Why is the pubkey accessed here?
end | ||
|
||
@spec add_fees_to_block_state(list(), map()) :: map() | ||
def add_fees_to_block_state(txs, block_state) do |
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.
What does this function do?
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.
it adds the sum of the fees to the given account in the block state
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.
can you add a test where the miner collects all the fees from the transactions included in the block?
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.
please fix test
I think the |
closes #83