'effect of tx on address'

def get_tx_delta(self, tx_hash, address):

    if (tx_hash in self.pruned_txo.values()):
        return None
    delta = 0
    d = self.txi.get(tx_hash, {}).get(address, [])
    for (n, v) in d:
        delta -= v
    d = self.txo.get(tx_hash, {}).get(address, [])
    for (n, v, cb) in d:
        delta += v
    return delta
