Update specs/core/0_beacon-chain.md

Co-Authored-By: vbuterin <v@buterin.com>
This commit is contained in:
Hsiao-Wei Wang 2018-11-25 06:11:40 -05:00 committed by GitHub
parent 50e8e1a918
commit 4310b0c7d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -588,7 +588,7 @@ def deposit(deposit_params: bytes[2048]):
for i in range(POW_CONTRACT_MERKLE_TREE_DEPTH):
index //= 2
self.receipt_tree[index] = sha3(concat(self.receipt_tree[index * 2], self.receipt_tree[index * 2 + 1]))
if msg.value >= MIN_DEPOSIT_SIZE:
if msg.value >= as_wei_value(DEPOSIT_SIZE, "ether"):
self.total_deposit_count += 1
if self.total_deposit_count == DEPOSITS_FOR_CHAIN_START:
log.ChainStart(self.receipt_tree[1], timestamp_bytes8)