From 487f82f1108e47e16e93853eec7c0dde4d1a4a6c Mon Sep 17 00:00:00 2001 From: 4tochka Date: Mon, 2 Apr 2018 00:31:45 +0400 Subject: [PATCH] block template class --- pybtc/tools.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pybtc/tools.py b/pybtc/tools.py index 83b7cde..74213f1 100644 --- a/pybtc/tools.py +++ b/pybtc/tools.py @@ -500,12 +500,10 @@ def merkleroot(tx_hash_list): return new_hash_list[0] def merkle_branches(tx_hash_list): - if not tx_hash_list: - return [] tx_hash_list = list(tx_hash_list) branches = [] if len(tx_hash_list) == 1: - return tx_hash_list + return [] tx_hash_list.pop(0) while True: branches.append(tx_hash_list.pop(0))