Skip to content
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

Update EIP-698: fix comment #8472

Merged
merged 1 commit into from
Apr 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion EIPS/eip-698.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
---

Check warning on line 1 in EIPS/eip-698.md

View workflow job for this annotation

GitHub Actions / EIP Walidator

preamble is missing header(s): `description`

warning[preamble-req]: preamble is missing header(s): `description` --> EIPS/eip-698.md | | = help: see https://ethereum.github.io/eipw/preamble-req/
eip: 698
title: OPCODE 0x46 BLOCKREWARD
author: Cody Burns <[email protected]>

Check warning on line 4 in EIPS/eip-698.md

View workflow job for this annotation

GitHub Actions / EIP Walidator

preamble header `author` must contain at least one GitHub username

warning[preamble-author]: preamble header `author` must contain at least one GitHub username --> EIPS/eip-698.md | 4 | author: Cody Burns <[email protected]> | = help: see https://ethereum.github.io/eipw/preamble-author/
discussions-to: https://github.com/ethereum/EIPs/issues/698

Check warning on line 5 in EIPS/eip-698.md

View workflow job for this annotation

GitHub Actions / EIP Walidator

preamble header `discussions-to` should point to a thread on ethereum-magicians.org

warning[preamble-re-discussions-to]: preamble header `discussions-to` should point to a thread on ethereum-magicians.org --> EIPS/eip-698.md:5:16 | 5 | discussions-to: https://github.com/ethereum/EIPs/issues/698 | -------------------------------------------- required pattern was not matched | = info: the pattern in question: `^https://ethereum-magicians.org/t/[^/]+/[0-9]+$` = help: see https://ethereum.github.io/eipw/preamble-re-discussions-to/
status: Stagnant
type: Standards Track
category: Core
created: 2017-08-28
---

Check warning on line 11 in EIPS/eip-698.md

View workflow job for this annotation

GitHub Actions / EIP Walidator

body is missing section(s): `Security Considerations`

warning[markdown-req-section]: body is missing section(s): `Security Considerations` --> EIPS/eip-698.md | | = help: must be at the second level (`## Heading`) = help: see https://ethereum.github.io/eipw/markdown-req-section/
## Simple Summary

Check warning on line 12 in EIPS/eip-698.md

View workflow job for this annotation

GitHub Actions / EIP Walidator

body has extra section(s)

warning[markdown-order-section]: body has extra section(s) --> EIPS/eip-698.md | 12 | ## Simple Summary | ::: EIPS/eip-698.md | 74 | ## Implementation | ::: EIPS/eip-698.md | 77 | ## Further reading | = help: see https://ethereum.github.io/eipw/markdown-order-section/

This EIP adds an additional opcode to the EVM which will return a finalized blocks reward value.

## Abstract

In the EVM, the 0x40 opcodes are reserved for `Block Information`. Currently reserved opcodes are:
* `0X40 BLOCKHASH`

Check failure on line 19 in EIPS/eip-698.md

View workflow job for this annotation

GitHub Actions / Markdown Linter

Lists should be surrounded by blank lines [Context: "* `0X40 BLOCKHASH`"]

EIPS/eip-698.md:19 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "* `0X40 BLOCKHASH`"]
* `0X41 COINBASE`
* `0X42 TIMESTAMP`
* `0X43 NUMBER`
Expand All @@ -28,7 +28,7 @@
## Motivation


Per EIP-649 ( #669 ) periodic block reward reductions/variance are now planned in the roadmap, however, this EIP is consensus system agnostic and is most useful in decentralized pool operations and for any contract that benefits from knowing a block reward payout(i.e. Merge mined tokens)

Check warning on line 31 in EIPS/eip-698.md

View workflow job for this annotation

GitHub Actions / EIP Walidator

the first match of the given pattern must be a link

warning[markdown-link-first]: the first match of the given pattern must be a link --> EIPS/eip-698.md | 31 | Per EIP-649 ( #669 ) periodic block reward reductions/variance are now planned in the roadmap, however, this EIP is consensus system agnostic and is most useful in decentralized pool operations and for any contract that benefits from knowing a block reward payout(i.e. Merge mined tokens) | = info: the pattern in question: `(?i)(?:eip|erc)-[0-9]+` = help: see https://ethereum.github.io/eipw/markdown-link-first/

## Specification

Expand All @@ -36,7 +36,7 @@

* Value: `0x46`
* Mnemonic: `BLOCKREWARD`
* δ:` 0` nothing removed from stack

Check failure on line 39 in EIPS/eip-698.md

View workflow job for this annotation

GitHub Actions / Markdown Linter

Spaces inside code span elements [Context: "` 0`"]

EIPS/eip-698.md:39:5 MD038/no-space-in-code Spaces inside code span elements [Context: "` 0`"]
* α:`1` block reward added to stack
* Description: `Get the block's reward emission`
* GasCost: `G<sub>base</sub>`
Expand All @@ -48,7 +48,7 @@

### Contract Mining Pools

For distributed consensus systems(staking pools and mining pools) ad hoc groups combine resources in order to reduce variance in payouts. Broadly, pool operations function by allowing a collective of miners / stakers to verify their contribution to solving PoW or staking share by periodically submitting solutions which are is representative of the miners probability of finding a true block.
For distributed consensus systems(staking pools and mining pools) ad hoc groups combine resources in order to reduce variance in payouts. Broadly, pool operations function by allowing a collective of miners / stakers to verify their contribution to solving PoW or staking share by periodically submitting solutions which are representative of the miners probability of finding a true block.

In all these schemes `B` stands for a block reward minus pool fee and `p` is a probability of finding a block in a share attempt ( `p=1/D`, where `D` is current block difficulty).

Expand Down Expand Up @@ -76,7 +76,7 @@

## Further reading

[Mining Pools](https://en.wikipedia.org/wiki/Mining_pool)

Check warning on line 79 in EIPS/eip-698.md

View workflow job for this annotation

GitHub Actions / EIP Walidator

non-relative link or image

warning[markdown-rel-links]: non-relative link or image --> EIPS/eip-698.md | 79 | [Mining Pools](https://en.wikipedia.org/wiki/Mining_pool) | = help: see https://ethereum.github.io/eipw/markdown-rel-links/

The Yellow Paper Appendix H. Virtual Machine Specification section H.2

Expand Down
Loading