From fe3a0d68812d37bf47ca6a33374c9c648afe83b3 Mon Sep 17 00:00:00 2001 From: vbuterin Date: Sat, 24 Nov 2018 14:03:22 -0500 Subject: [PATCH] Only increment total_deposit_count for 32 ETH deposits from PoW chain --- specs/core/0_beacon-chain.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specs/core/0_beacon-chain.md b/specs/core/0_beacon-chain.md index 28fee7b20..446fc2683 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -587,7 +587,8 @@ 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])) - self.total_deposit_count += 1 + if msg.value == MIN_DEPOSIT_SIZE: + self.total_deposit_count += 1 if self.total_deposit_count == 16384: log.ChainStart(self.receipt_tree[1], timestamp_bytes8)