diff --git a/test/lint/check-rpc-mappings.py b/test/lint/check-rpc-mappings.py index 4b3719ca70..c9596dbc77 100755 --- a/test/lint/check-rpc-mappings.py +++ b/test/lint/check-rpc-mappings.py @@ -60,6 +60,12 @@ def process_commands(fname): in_rpcs = False elif '{' in line and '"' in line: m = re.search(r'{ *("[^"]*"), *("[^"]*"), *&([^,]*), *{([^}]*)} *},', line) + # that's a quick fix for composite command + # no proper implementation is needed so far as this linter would be removed soon with bitcoin#20012 + if not m: + m = re.search(r'{ *("[^"]*"), *("[^"]*"), *("[^"]*"), *&([^,]*), *{([^}]*)} *},', line) + if m: + continue assert m, 'No match to table expression: %s' % line name = parse_string(m.group(2)) args_str = m.group(4).strip()