Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
1[style]2# Align closing bracket with visual indentation.3align_closing_bracket_with_visual_indent=True5# Allow dictionary keys to exist on multiple lines. For example:6#7# x = {8# ('this is the first element of a tuple',9# 'this is the second element of a tuple'):10# value,11# }12allow_multiline_dictionary_keys=False14# Allow lambdas to be formatted on more than one line.15allow_multiline_lambdas=False17# Allow splits before the dictionary value.18allow_split_before_dict_value=True20# Number of blank lines surrounding top-level function and class21# definitions.22blank_lines_around_top_level_definition=224# Insert a blank line before a class-level docstring.25blank_line_before_class_docstring=False27# Insert a blank line before a module docstring.28blank_line_before_module_docstring=False30# Insert a blank line before a 'def' or 'class' immediately nested31# within another 'def' or 'class'. For example:32#33# class Foo:34# # <------ this blank line35# def method():36# ...37blank_line_before_nested_class_or_def=False39# Do not split consecutive brackets. Only relevant when40# dedent_closing_brackets is set. For example:41#42# call_func_that_takes_a_dict(43# {44# 'key1': 'value1',45# 'key2': 'value2',46# }47# )48#49# would reformat to:50#51# call_func_that_takes_a_dict({52# 'key1': 'value1',53# 'key2': 'value2',54# })55coalesce_brackets=False57# The column limit.58column_limit=16060# The style for continuation alignment. Possible values are:61#62# - SPACE: Use spaces for continuation alignment. This is default behavior.63# - FIXED: Use fixed number (CONTINUATION_INDENT_WIDTH) of columns64# (ie: CONTINUATION_INDENT_WIDTH/INDENT_WIDTH tabs) for continuation65# alignment.66# - LESS: Slightly left if cannot vertically align continuation lines with67# indent characters.68# - VALIGN-RIGHT: Vertically align continuation lines with indent69# characters. Slightly right (one more indent character) if cannot70# vertically align continuation lines with indent characters.71#72# For options FIXED, and VALIGN-RIGHT are only available when USE_TABS is73# enabled.74continuation_align_style=SPACE76# Indent width used for line continuations.77continuation_indent_width=479# Put closing brackets on a separate line, dedented, if the bracketed80# expression can't fit in a single line. Applies to all kinds of brackets,81# including function definitions and calls. For example:82#83# config = {84# 'key1': 'value1',85# 'key2': 'value2',86# } # <--- this bracket is dedented and on a separate line87#88# time_series = self.remote_client.query_entity_counters(89# entity='dev3246.region1',90# key='dns.query_latency_tcp',91# transform=Transformation.AVERAGE(window=timedelta(seconds=60)),92# start_ts=now()-timedelta(days=3),93# end_ts=now(),94# ) # <--- this bracket is dedented and on a separate line95dedent_closing_brackets=False97# Disable the heuristic which places each list element on a separate line98# if the list is comma-terminated.99disable_ending_comma_heuristic=False101# Place each dictionary entry onto its own line.102each_dict_entry_on_separate_line=True104# The regex for an i18n comment. The presence of this comment stops105# reformatting of that line, because the comments are required to be106# next to the string they translate.107i18n_comment=109# The i18n function call names. The presence of this function stops110# reformatting on that line, because the string it has cannot be moved111# away from the i18n comment.112i18n_function_call=114# Indent the dictionary value if it cannot fit on the same line as the115# dictionary key. For example:116#117# config = {118# 'key1':119# 'value1',120# 'key2': value1 +121# value2,122# }123indent_dictionary_value=False125# The number of columns to use for indentation.126indent_width=4128# Join short lines into one line. E.g., single line 'if' statements.129join_multiple_lines=True131# Do not include spaces around selected binary operators. For example:132#133# 1 + 2 * 3 - 4 / 5134#135# will be formatted as follows when configured with "*,/":136#137# 1 + 2*3 - 4/5138#139no_spaces_around_selected_binary_operators=141# Use spaces around default or named assigns.142spaces_around_default_or_named_assign=False144# Use spaces around the power operator.145spaces_around_power_operator=False147# The number of spaces required before a trailing comment.148spaces_before_comment=2150# Insert a space between the ending comma and closing bracket of a list,151# etc.152space_between_ending_comma_and_closing_bracket=True154# Split before arguments155split_all_comma_separated_values=False157# Split before arguments if the argument list is terminated by a158# comma.159split_arguments_when_comma_terminated=False161# Set to True to prefer splitting before '&', '|' or '^' rather than162# after.163split_before_bitwise_operator=True165# Split before the closing bracket if a list or dict literal doesn't fit on166# a single line.167split_before_closing_bracket=True169# Split before a dictionary or set generator (comp_for). For example, note170# the split before the 'for':171#172# foo = {173# variable: 'Hello world, have a nice day!'174# for variable in bar if variable != 42175# }176split_before_dict_set_generator=True178# Split before the '.' if we need to split a longer expression:179#180# foo = ('This is a really long string: {}, {}, {}, {}'.format(a, b, c, d))181#182# would reformat to something like:183#184# foo = ('This is a really long string: {}, {}, {}, {}'185# .format(a, b, c, d))186split_before_dot=False188# Split after the opening paren which surrounds an expression if it doesn't189# fit on a single line.190split_before_expression_after_opening_paren=False192# If an argument / parameter list is going to be split, then split before193# the first argument.194split_before_first_argument=False196# Set to True to prefer splitting before 'and' or 'or' rather than197# after.198split_before_logical_operator=True200# Split named assignments onto individual lines.201split_before_named_assigns=True203# Set to True to split list comprehensions and generators that have204# non-trivial expressions and multiple clauses before each of these205# clauses. For example:206#207# result = [208# a_long_var + 100 for a_long_var in xrange(1000)209# if a_long_var % 10]210#211# would reformat to something like:212#213# result = [214# a_long_var + 100215# for a_long_var in xrange(1000)216# if a_long_var % 10]217split_complex_comprehension=False219# The penalty for splitting right after the opening bracket.220split_penalty_after_opening_bracket=30222# The penalty for splitting the line after a unary operator.223split_penalty_after_unary_operator=10000225# The penalty for splitting right before an if expression.226split_penalty_before_if_expr=0228# The penalty of splitting the line around the '&', '|', and '^'229# operators.230split_penalty_bitwise_operator=300232# The penalty for splitting a list comprehension or generator233# expression.234split_penalty_comprehension=80236# The penalty for characters over the column limit.237split_penalty_excess_character=7000239# The penalty incurred by adding a line split to the unwrapped line. The240# more line splits added the higher the penalty.241split_penalty_for_added_line_split=30243# The penalty of splitting a list of "import as" names. For example:244#245# from a_very_long_or_indented_module_name_yada_yad import (long_argument_1,246# long_argument_2,247# long_argument_3)248#249# would reformat to something like:250#
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.