index, rpc, test: Misc formatting fixes
What changed, and why it matters
This commit contains only cosmetic formatting fixes: removing a blank line at the top of a header file, deleting an accidental backslash at the end of a C++ source line, and adding a trailing comma in a Python test dictionary. None of these changes affect program behavior or security.
No security action needed. This is a routine formatting cleanup.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff shows three trivial style/formatting corrections. In src/index/txospenderindex.h, a leading blank line is removed. In src/rpc/mempool.cpp, a stray backslash (‘') at the end of a line is removed; the line is otherwise identical and the backslash was at end-of-statement, so it had no functional effect (it did not continue the line). In test/functional/rpc_misc.py, a trailing comma is added to the last entry of a dictionary literal. There are no logic, API, or data-flow changes.
Changed components
src/index/txospenderindex.hsrc/rpc/mempool.cpptest/functional/rpc_misc.pyInspect captured patch +2 / −3
diff --git a/src/index/txospenderindex.h b/src/index/txospenderindex.h
index dce1cec3..42e25bcd 100644
--- a/src/index/txospenderindex.h
+++ b/src/index/txospenderindex.h
@@ -1,4 +1,3 @@
-
// Copyright (c) The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
diff --git a/src/rpc/mempool.cpp b/src/rpc/mempool.cpp
index 34abc3c0..c480b5af 100644
--- a/src/rpc/mempool.cpp
+++ b/src/rpc/mempool.cpp
@@ -940,7 +940,7 @@ static RPCHelpMan gettxspendingprevout()
if (output_params.empty()) {
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter, outputs are missing");
}
- const UniValue options{request.params[1].isNull() ? UniValue::VOBJ : request.params[1]};\
+ const UniValue options{request.params[1].isNull() ? UniValue::VOBJ : request.params[1]};
RPCTypeCheckObj(options,
{
{"mempool_only", UniValueType(UniValue::VBOOL)},
diff --git a/test/functional/rpc_misc.py b/test/functional/rpc_misc.py
index 3acf7440..86f22f00 100755
--- a/test/functional/rpc_misc.py
+++ b/test/functional/rpc_misc.py
@@ -111,7 +111,7 @@ class RpcMiscTest(BitcoinTestFramework):
"txindex": values,
"basic block filter index": values,
"coinstatsindex": values,
- "txospenderindex": values
+ "txospenderindex": values,
}
)
# Specifying an index by name returns only the status of that index
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.