From c8ff723514a9d3efeab4796d1ad3d0520bb95d98 Mon Sep 17 00:00:00 2001 From: terence tsao Date: Sun, 30 Dec 2018 16:06:33 -0800 Subject: [PATCH] Update 0_beacon-chain.md --- specs/core/0_beacon-chain.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specs/core/0_beacon-chain.md b/specs/core/0_beacon-chain.md index 03c11adfe..ace489f17 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -1529,9 +1529,9 @@ def verify_merkle_branch(leaf: Hash32, branch: [Hash32], depth: int, index: int, value = leaf for i in range(depth): if index % 2: - value = hash(branch[i], value) + value = hash(branch[i] + value) else: - value = hash(value, branch[i]) + value = hash(value + branch[i]) return value == root ```