Apply suggestions from code review
Co-Authored-By: djrtwo <dannyjryan@gmail.com>
This commit is contained in:
parent
c9e06d31f3
commit
b4779cd83d
|
@ -447,7 +447,7 @@ The following data structures are defined as [SimpleSerialize (SSZ)](https://git
|
||||||
# Sender index
|
# Sender index
|
||||||
'sender': 'uint64',
|
'sender': 'uint64',
|
||||||
# Recipient index
|
# Recipient index
|
||||||
'to': 'uint64',
|
'recipient': 'uint64',
|
||||||
# Amount in Gwei
|
# Amount in Gwei
|
||||||
'amount': 'uint64',
|
'amount': 'uint64',
|
||||||
# Fee in Gwei for block proposer
|
# Fee in Gwei for block proposer
|
||||||
|
@ -1984,7 +1984,7 @@ def process_transfer(state: BeaconState, transfer: Transfer) -> None:
|
||||||
)
|
)
|
||||||
# Process the transfer
|
# Process the transfer
|
||||||
state.validator_balances[transfer.sender] -= transfer.amount + transfer.fee
|
state.validator_balances[transfer.sender] -= transfer.amount + transfer.fee
|
||||||
state.validator_balances[transfer.to] += transfer.amount
|
state.validator_balances[transfer.recipient] += transfer.amount
|
||||||
state.validator_balances[get_beacon_proposer_index(state, state.slot)] += transfer.fee
|
state.validator_balances[get_beacon_proposer_index(state, state.slot)] += transfer.fee
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue