def send_islock(self, islock):
    hash = uint256_from_str(hash256(islock.serialize()))
    self.islocks[hash] = islock
    inv = msg_inv([CInv(30, hash)])
    self.send_message(inv)
def send_islock(self, islock):
    hash = uint256_from_str(hash256(islock.serialize()))
    self.islocks[hash] = islock
    inv = msg_inv([CInv(30, hash)])
    self.send_message(inv)