Apply suggestions from code review

Co-Authored-By: djrtwo <dannyjryan@gmail.com>
This commit is contained in:
Carl Beekhuizen 2019-03-06 08:55:39 -07:00 committed by GitHub
parent c9e06d31f3
commit b4779cd83d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -447,7 +447,7 @@ The following data structures are defined as [SimpleSerialize (SSZ)](https://git
# Sender index
'sender': 'uint64',
# Recipient index
'to': 'uint64',
'recipient': 'uint64',
# Amount in Gwei
'amount': 'uint64',
# Fee in Gwei for block proposer
@ -1984,7 +1984,7 @@ def process_transfer(state: BeaconState, transfer: Transfer) -> None:
)
# Process the transfer
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
```