diff --git a/BEPs/BEP322.md b/BEPs/BEP322.md index 9224e5db..defaf082 100644 --- a/BEPs/BEP322.md +++ b/BEPs/BEP322.md @@ -117,12 +117,12 @@ After setup, during each block production interval, the overall workflow for pro 7) the proposer will notify the builder if something is wrong (e.g., timeout to retrieve transitions from the builder, or the proposed block is invalid). -8) the proposer will seal a block using the transactions from the winning builder, if there is no profitable bid +8) the proposer will append a transaction to record builder fee to its builder smart contract. This step is optional. + +9) the proposer will seal a block using the transactions from the winning builder. If there is no profitable bid compared to local or the transactions do not return in time, the proposer can still seal a block using local transactions. -9) the proposer will append a transaction to record builder fee to its builder smart contract. This step is optional. - ![workflow](./assets/bep-322/workflow_2round.png) In BSC, the time for producing a block is only 3 seconds. To reduce the latency, the following option is also supported @@ -520,12 +520,11 @@ HTTP status code is 200 ##### 3.4.2.2 Record Builder Fee After accepting a bid, a validator needs to append one accounting transaction to -record builder fee to its builder smart contract. Then builders can claim -their fee from the smart contract. +book-keep builder fee to its builder smart contract. ```solidity // for a validator to record builder fee - function record(uint256 blockHeight, address builderAddress, uint256 fee) external; + function bookkeep(uint256 blockHeight, address builderAddress, uint256 fee) external; ``` For `record` transaction, diff --git a/BEPs/assets/bep-322/workflow_1round.png b/BEPs/assets/bep-322/workflow_1round.png index cebd76d5..66f0754b 100644 Binary files a/BEPs/assets/bep-322/workflow_1round.png and b/BEPs/assets/bep-322/workflow_1round.png differ diff --git a/BEPs/assets/bep-322/workflow_2round.png b/BEPs/assets/bep-322/workflow_2round.png index a0e318df..d8037b3f 100644 Binary files a/BEPs/assets/bep-322/workflow_2round.png and b/BEPs/assets/bep-322/workflow_2round.png differ