mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-12 19:54:34 +00:00
Only increment total_deposit_count for 32 ETH deposits from PoW chain
This commit is contained in:
parent
91848b87eb
commit
fe3a0d6881
@ -587,7 +587,8 @@ def deposit(deposit_params: bytes[2048]):
|
|||||||
for i in range(POW_CONTRACT_MERKLE_TREE_DEPTH):
|
for i in range(POW_CONTRACT_MERKLE_TREE_DEPTH):
|
||||||
index //= 2
|
index //= 2
|
||||||
self.receipt_tree[index] = sha3(concat(self.receipt_tree[index * 2], self.receipt_tree[index * 2 + 1]))
|
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:
|
if self.total_deposit_count == 16384:
|
||||||
log.ChainStart(self.receipt_tree[1], timestamp_bytes8)
|
log.ChainStart(self.receipt_tree[1], timestamp_bytes8)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user