def read_addr_payload(stream): r = {} # read varint count = read_varint(stream) # read_address varint times. Return as list. r["addresses"] = [read_address(stream) for _ in range(count)] return r
def read_addr_payload(stream): r = {} count = read_varint(stream) r['addresses'] = [read_address(stream) for _ in range(count)] return r