From cdaeb98d1d83fe9c9330cadf0188159af7ea0186 Mon Sep 17 00:00:00 2001 From: Brandon Goodell Date: Tue, 12 Dec 2017 15:33:05 -0700 Subject: [PATCH] udpate ffs --- source-code/Spectre/{RoBlocks.py => BlockHandler.py} | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) rename source-code/Spectre/{RoBlocks.py => BlockHandler.py} (97%) diff --git a/source-code/Spectre/RoBlocks.py b/source-code/Spectre/BlockHandler.py similarity index 97% rename from source-code/Spectre/RoBlocks.py rename to source-code/Spectre/BlockHandler.py index dc42aa7..80bdf1f 100644 --- a/source-code/Spectre/RoBlocks.py +++ b/source-code/Spectre/BlockHandler.py @@ -7,14 +7,14 @@ between blocks. Another handler will extract a coherent/robust list of non-conflict- - ing transactions from a reduced/robust RoBlocks object. + ing transactions from a reduced/robust BlockHandler object. ''' from Block import * -class RoBlocks(object): +class BlockHandler(object): def __init__(self): print("Initializing") - # Initialize a RoBlocks object. + # Initialize a BlockHandler object. self.data = None self.blocks = {} # Set of blocks (which track parents) self.family = {} # Doubly linked list tracks parent-and-child links @@ -214,7 +214,7 @@ class RoBlocks(object): def pruneLeaves(self): print("Pruning leaves") - out = RoBlocks() + out = BlockHandler() q = deque() for rootIdent in self.roots: q.append(rootIdent) @@ -227,8 +227,8 @@ class RoBlocks(object): return out class Test_RoBlock(unittest.TestCase): - def test_RoBlocks(self): - R = RoBlocks() + def test_BlockHandler(self): + R = BlockHandler() b = Block() b.data = "zirconium encrusted tweezers" b._recomputeIdent()