(self, block_hash: int)
Callback that kindles a block, pulses future connections and
        stops the pulse of past connections.
Callback that kindles a block, pulses future connections and
        stops the pulse of past connections.
Callback that kindles a block pulses future connections and stops the pulse of past connections .
def on_block_executed(self, block_hash: int):
        """ Callback that kindles a block, pulses future connections and
        stops the pulse of past connections. """
        block_idx = list(map(id, self.block_div.children)).index(block_hash)
        block = self.block_div.children[block_idx]
        block.kindle()
        logger.debug('Kindling block {}'.format(block.__class__.__name__))

        # Python list comprehensions can be nested forwards, but also backwards
        # http://rhodesmill.org/brandon/2009/nested-comprehensions/
        [connection.pulse() for out_pin in block.output_pins
                            for connection in out_pin.destinations]
        [in_pin.origin.stop_pulse() for in_pin in block.input_pins]
def on_block_executed ( self , block_hash : int ) : block_idx = list ( map ( id , self . block_div . children ) ) . index ( block_hash ) block = self . block_div . children [ block_idx ] block . kindle ( ) logger . debug ( 'Kindling block {}' . format ( block . __class__ . __name__ ) ) # Python list comprehensions can be nested forwards, but also backwards # http://rhodesmill.org/brandon/2009/nested-comprehensions/ [ connection . pulse ( ) for out_pin in block . output_pins for connection in out_pin . destinations ] [ in_pin . origin . stop_pulse ( ) for in_pin in block . input_pins ]