Skip to content

Commit

Permalink
updated yellow paper
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Feb 6, 2024
1 parent 7677118 commit 1dd3ec5
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion yarn-project/sequencer-client/src/sequencer/sequencer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class Sequencer {
private pollingIntervalMs: number = 1000;
private maxTxsPerBlock = 32;
private minTxsPerBLock = 1;
// TODO(benesjan): The following values should not default to zero.
// TODO: zero values should not be allowed for the following 2 values in PROD
private coinbase = EthAddress.ZERO;
private feeRecipient = AztecAddress.ZERO;
private lastPublishedBlock = 0;
Expand Down
7 changes: 4 additions & 3 deletions yellow-paper/docs/rollup-circuits/base-rollup.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ class GlobalVariables {
timestamp: Fr
version: Fr
chain_id: Fr
coinbase: Address
coinbase: EthAddress
fee_recipient: Address
}
class Header {
Expand Down Expand Up @@ -311,8 +312,8 @@ def kernel_checks(
assert kernel.proof.verify(kernel.public_inputs)

tx_context = kernel.public_inputs.constants.tx_context
assert tx_context.chainid == constants.globalVariables.chainid
assert tx_context.version == constants.globalVariables.version
assert tx_context.chain_id == constants.global_variables.chain_id
assert tx_context.version == constants.global_variables.version

assert len(kernel.public_inputs.end.private_call_stack) == 0
assert len(kernel.public_inputs.end.public_call_stack) == 0
Expand Down
3 changes: 2 additions & 1 deletion yellow-paper/docs/rollup-circuits/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ class GlobalVariables {
timestamp: Fr
version: Fr
chain_id: Fr
coinbase: Address
coinbase: EthAddress
fee_recipient: Address
}
class Header {
Expand Down
3 changes: 2 additions & 1 deletion yellow-paper/docs/rollup-circuits/merge-rollup.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ class GlobalVariables {
timestamp: Fr
version: Fr
chain_id: Fr
coinbase: Address
coinbase: EthAddress
fee_recipient: Address
}
class ConstantRollupData {
Expand Down
4 changes: 2 additions & 2 deletions yellow-paper/docs/rollup-circuits/root-rollup.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ class GlobalVariables {
timestamp: Fr
version: Fr
chain_id: Fr
coinbase: Address
}
coinbase: EthAddress
fee_recipient: Address}
class Header {
last_archive: Snapshot
Expand Down
3 changes: 2 additions & 1 deletion yellow-paper/docs/state/archive.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ class GlobalVariables {
timestamp: Fr
version: Fr
chain_id: Fr
coinbase: Address
coinbase: EthAddress
fee_recipient: Address
}
class Header {
Expand Down
3 changes: 2 additions & 1 deletion yellow-paper/docs/state/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ class GlobalVariables {
timestamp: Fr
version: Fr
chain_id: Fr
coinbase: Address
coinbase: EthAddress
fee_recipient: Address
}
class Header {
Expand Down

0 comments on commit 1dd3ec5

Please sign in to comment.