src: fix formatting of copyright comments
What changed, and why it matters
This commit only fixes the formatting of copyright comments across many source files. It removes blank lines between the copyright line and the license text, adds missing copyright lines, fixes minor whitespace issues, and removes an unused debug macro. There are no changes to program logic, security behavior, or functionality.
No security action needed. This is a non-functional style/copyright formatting cleanup.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff is purely cosmetic: it normalizes comment blocks (removing blank lines after the copyright line, adding ‘//’ continuation lines where missing, removing trailing whitespace, and deleting a commented-out ‘#define DBG’). One file has a ‘#pragma once’ changed to ‘#pragma once’. No executable code, APIs, or security-relevant behavior is modified.
Changed components
Inspect captured patch +15 / −58
diff --git a/src/blockchain_utilities/blockchain_prune.cpp b/src/blockchain_utilities/blockchain_prune.cpp
index 9210ce0..04217c9 100644
--- a/src/blockchain_utilities/blockchain_prune.cpp
+++ b/src/blockchain_utilities/blockchain_prune.cpp
@@ -1,5 +1,4 @@
// Copyright (c) 2018-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/common/aligned.h b/src/common/aligned.h
index b687c58..0741ac5 100644
--- a/src/common/aligned.h
+++ b/src/common/aligned.h
@@ -1,5 +1,4 @@
// Copyright (c) 2018-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/common/combinator.cpp b/src/common/combinator.cpp
index c26c313..10aceb6 100644
--- a/src/common/combinator.cpp
+++ b/src/common/combinator.cpp
@@ -1,5 +1,4 @@
// Copyright (c) 2018-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/common/combinator.h b/src/common/combinator.h
index d08ac52..7f80729 100644
--- a/src/common/combinator.h
+++ b/src/common/combinator.h
@@ -1,5 +1,4 @@
// Copyright (c) 2018-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/common/error.cpp b/src/common/error.cpp
index 66dadd5..0c4eb55 100644
--- a/src/common/error.cpp
+++ b/src/common/error.cpp
@@ -1,5 +1,5 @@
// Copyright (c) 2018-2024, The Monero Project
-
+//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
diff --git a/src/common/error.h b/src/common/error.h
index 930b47d..bf06580 100644
--- a/src/common/error.h
+++ b/src/common/error.h
@@ -1,5 +1,5 @@
// Copyright (c) 2018-2024, The Monero Project
-
+//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
diff --git a/src/common/expect.cpp b/src/common/expect.cpp
index c86e23e..f14410b 100644
--- a/src/common/expect.cpp
+++ b/src/common/expect.cpp
@@ -1,3 +1,4 @@
+// Copyright (c) 2018-2024, The Monero Project
//
// All rights reserved.
//
diff --git a/src/common/expect.h b/src/common/expect.h
index aba1914..1215dea 100644
--- a/src/common/expect.h
+++ b/src/common/expect.h
@@ -1,5 +1,4 @@
// Copyright (c) 2018-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/common/notify.cpp b/src/common/notify.cpp
index 6d24b4d..5560fd8 100644
--- a/src/common/notify.cpp
+++ b/src/common/notify.cpp
@@ -1,5 +1,4 @@
// Copyright (c) 2018-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/common/notify.h b/src/common/notify.h
index 95b74ad..74b9e34 100644
--- a/src/common/notify.h
+++ b/src/common/notify.h
@@ -1,5 +1,4 @@
// Copyright (c) 2018-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/common/pruning.cpp b/src/common/pruning.cpp
index bb959f5..b8318ba 100644
--- a/src/common/pruning.cpp
+++ b/src/common/pruning.cpp
@@ -1,5 +1,4 @@
// Copyright (c) 2018-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/common/pruning.h b/src/common/pruning.h
index c6ecb1e..d534421 100644
--- a/src/common/pruning.h
+++ b/src/common/pruning.h
@@ -1,5 +1,4 @@
// Copyright (c) 2018-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/common/spawn.cpp b/src/common/spawn.cpp
index de8e70b..684fedc 100644
--- a/src/common/spawn.cpp
+++ b/src/common/spawn.cpp
@@ -1,5 +1,4 @@
// Copyright (c) 2018-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/common/spawn.h b/src/common/spawn.h
index 24e06df..007ec29 100644
--- a/src/common/spawn.h
+++ b/src/common/spawn.h
@@ -1,5 +1,4 @@
// Copyright (c) 2018-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/common/utf8.h b/src/common/utf8.h
index 9a48be6..4c65fc6 100644
--- a/src/common/utf8.h
+++ b/src/common/utf8.h
@@ -1,5 +1,4 @@
// Copyright (c) 2019-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/crypto/duration.h b/src/crypto/duration.h
index 15c1add..a238b0f 100644
--- a/src/crypto/duration.h
+++ b/src/crypto/duration.h
@@ -1,5 +1,4 @@
// Copyright (c) 2020-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/crypto/wallet/crypto.h b/src/crypto/wallet/crypto.h
index 6d8ae9a..829d279 100644
--- a/src/crypto/wallet/crypto.h
+++ b/src/crypto/wallet/crypto.h
@@ -1,5 +1,4 @@
// Copyright (c) 2020-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/crypto/wallet/empty.h.in b/src/crypto/wallet/empty.h.in
index 0a69f06..be3d6c9 100644
--- a/src/crypto/wallet/empty.h.in
+++ b/src/crypto/wallet/empty.h.in
@@ -1,5 +1,4 @@
// Copyright (c) 2020-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/cryptonote_basic/connection_context.cpp b/src/cryptonote_basic/connection_context.cpp
index 1045714..c942b38 100644
--- a/src/cryptonote_basic/connection_context.cpp
+++ b/src/cryptonote_basic/connection_context.cpp
@@ -1,5 +1,4 @@
// Copyright (c) 2020-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/cryptonote_basic/events.h b/src/cryptonote_basic/events.h
index 62d0011..3dc1560 100644
--- a/src/cryptonote_basic/events.h
+++ b/src/cryptonote_basic/events.h
@@ -1,5 +1,4 @@
// Copyright (c) 2020-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/cryptonote_basic/fwd.h b/src/cryptonote_basic/fwd.h
index 9c618f5..2ecdb7d 100644
--- a/src/cryptonote_basic/fwd.h
+++ b/src/cryptonote_basic/fwd.h
@@ -1,5 +1,4 @@
// Copyright (c) 2020-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/cryptonote_basic/merge_mining.cpp b/src/cryptonote_basic/merge_mining.cpp
index 56d7a23..82cf664 100644
--- a/src/cryptonote_basic/merge_mining.cpp
+++ b/src/cryptonote_basic/merge_mining.cpp
@@ -1,5 +1,4 @@
// Copyright (c) 2020-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/cryptonote_basic/merge_mining.h b/src/cryptonote_basic/merge_mining.h
index 455b5b6..ec82cd0 100644
--- a/src/cryptonote_basic/merge_mining.h
+++ b/src/cryptonote_basic/merge_mining.h
@@ -1,5 +1,4 @@
// Copyright (c) 2020-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/lmdb/database.cpp b/src/lmdb/database.cpp
index 3203bd0..5afbe98 100644
--- a/src/lmdb/database.cpp
+++ b/src/lmdb/database.cpp
@@ -1,4 +1,5 @@
// Copyright (c) 2014-2024, The Monero Project
+//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
diff --git a/src/lmdb/database.h b/src/lmdb/database.h
index 571f59b..aeb0b8e 100644
--- a/src/lmdb/database.h
+++ b/src/lmdb/database.h
@@ -1,5 +1,5 @@
// Copyright (c) 2018-2024, The Monero Project
-
+//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
diff --git a/src/lmdb/error.cpp b/src/lmdb/error.cpp
index dff291f..fd4ac05 100644
--- a/src/lmdb/error.cpp
+++ b/src/lmdb/error.cpp
@@ -1,4 +1,5 @@
// Copyright (c) 2014-2024, The Monero Project
+//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
diff --git a/src/lmdb/error.h b/src/lmdb/error.h
index 33fef89..6b4aa83 100644
--- a/src/lmdb/error.h
+++ b/src/lmdb/error.h
@@ -1,4 +1,5 @@
// Copyright (c) 2014-2024, The Monero Project
+//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
diff --git a/src/lmdb/key_stream.h b/src/lmdb/key_stream.h
index dc7dc0d..24621e9 100644
--- a/src/lmdb/key_stream.h
+++ b/src/lmdb/key_stream.h
@@ -1,5 +1,5 @@
// Copyright (c) 2018-2024, The Monero Project
-
+//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
diff --git a/src/lmdb/table.cpp b/src/lmdb/table.cpp
index 3fff799..a405563 100644
--- a/src/lmdb/table.cpp
+++ b/src/lmdb/table.cpp
@@ -1,5 +1,5 @@
// Copyright (c) 2018-2024, The Monero Project
-
+//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
diff --git a/src/lmdb/transaction.h b/src/lmdb/transaction.h
index 94d7916..25b4b17 100644
--- a/src/lmdb/transaction.h
+++ b/src/lmdb/transaction.h
@@ -1,5 +1,5 @@
// Copyright (c) 2018-2024, The Monero Project
-
+//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
diff --git a/src/lmdb/util.h b/src/lmdb/util.h
index 0823535..5ab99bf 100644
--- a/src/lmdb/util.h
+++ b/src/lmdb/util.h
@@ -1,5 +1,5 @@
// Copyright (c) 2018-2024, The Monero Project
-
+//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
diff --git a/src/lmdb/value_stream.cpp b/src/lmdb/value_stream.cpp
index fad5378..0c2b664 100644
--- a/src/lmdb/value_stream.cpp
+++ b/src/lmdb/value_stream.cpp
@@ -1,5 +1,5 @@
// Copyright (c) 2018-2024, The Monero Project
-
+//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
diff --git a/src/lmdb/value_stream.h b/src/lmdb/value_stream.h
index a09c10e..6adf897 100644
--- a/src/lmdb/value_stream.h
+++ b/src/lmdb/value_stream.h
@@ -1,5 +1,5 @@
// Copyright (c) 2018-2024, The Monero Project
-
+//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
diff --git a/src/net/CMakeLists.txt b/src/net/CMakeLists.txt
index 204420a..da5d8fb 100644
--- a/src/net/CMakeLists.txt
+++ b/src/net/CMakeLists.txt
@@ -1,5 +1,4 @@
# Copyright (c) 2018-2024, The Monero Project
-
#
# All rights reserved.
#
@@ -33,4 +32,3 @@ monero_find_all_headers(net_headers "${CMAKE_CURRENT_SOURCE_DIR}")
monero_add_library(net ${net_sources} ${net_headers})
target_link_libraries(net common epee cncrypto PkgConfig::libzmq ${Boost_ASIO_LIBRARY})
-
diff --git a/src/net/error.cpp b/src/net/error.cpp
index 41f0ffd..57948ec 100644
--- a/src/net/error.cpp
+++ b/src/net/error.cpp
@@ -1,5 +1,4 @@
// Copyright (c) 2018-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/net/error.h b/src/net/error.h
index 8e87db6..3cf0c4a 100644
--- a/src/net/error.h
+++ b/src/net/error.h
@@ -1,5 +1,4 @@
// Copyright (c) 2018-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/net/fwd.h b/src/net/fwd.h
index 2fff162..3aa3843 100644
--- a/src/net/fwd.h
+++ b/src/net/fwd.h
@@ -1,5 +1,4 @@
// Copyright (c) 2018-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/net/http.cpp b/src/net/http.cpp
index 5e6425d..2a850be 100644
--- a/src/net/http.cpp
+++ b/src/net/http.cpp
@@ -1,5 +1,4 @@
// Copyright (c) 2020-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/net/http.h b/src/net/http.h
index 3635e6a..e87ca17 100644
--- a/src/net/http.h
+++ b/src/net/http.h
@@ -1,5 +1,4 @@
// Copyright (c) 2020-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/net/parse.cpp b/src/net/parse.cpp
index f92f4ee..604511a 100644
--- a/src/net/parse.cpp
+++ b/src/net/parse.cpp
@@ -1,5 +1,4 @@
// Copyright (c) 2018-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/net/parse.h b/src/net/parse.h
index c2a0046..054e38e 100644
--- a/src/net/parse.h
+++ b/src/net/parse.h
@@ -1,5 +1,4 @@
// Copyright (c) 2018-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/net/resolve.cpp b/src/net/resolve.cpp
index 4d83571..e9ba815 100644
--- a/src/net/resolve.cpp
+++ b/src/net/resolve.cpp
@@ -1,5 +1,4 @@
// Copyright (c) 2020-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/net/resolve.h b/src/net/resolve.h
index d08e07e..b39a731 100644
--- a/src/net/resolve.h
+++ b/src/net/resolve.h
@@ -1,5 +1,4 @@
// Copyright (c) 2020-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/net/tor_address.cpp b/src/net/tor_address.cpp
index 0697bc1..7e909ee 100644
--- a/src/net/tor_address.cpp
+++ b/src/net/tor_address.cpp
@@ -1,5 +1,4 @@
// Copyright (c) 2018-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/net/tor_address.h b/src/net/tor_address.h
index c01e98a..8db06f4 100644
--- a/src/net/tor_address.h
+++ b/src/net/tor_address.h
@@ -1,5 +1,4 @@
// Copyright (c) 2018-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/p2p/net_peerlist.cpp b/src/p2p/net_peerlist.cpp
index 1ab07cd..494c8bd 100644
--- a/src/p2p/net_peerlist.cpp
+++ b/src/p2p/net_peerlist.cpp
@@ -1,5 +1,4 @@
// Copyright (c) 2018-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/ringct/multiexp.cc b/src/ringct/multiexp.cc
index fc24eed..51b31ed 100644
--- a/src/ringct/multiexp.cc
+++ b/src/ringct/multiexp.cc
@@ -1,5 +1,4 @@
// Copyright (c) 2017-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/ringct/multiexp.h b/src/ringct/multiexp.h
index 2259fcd..bf76eb7 100644
--- a/src/ringct/multiexp.h
+++ b/src/ringct/multiexp.h
@@ -1,5 +1,4 @@
// Copyright (c) 2017-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/ringct/rctOps.h b/src/ringct/rctOps.h
index 88aad0e..0bdff6d 100644
--- a/src/ringct/rctOps.h
+++ b/src/ringct/rctOps.h
@@ -1,4 +1,3 @@
-//#define DBG
// Copyright (c) 2016-2026, Monero Research Labs
//
// Author: Shen Noether <shen.noether@gmx.com>
diff --git a/src/rpc/bootstrap_daemon.h b/src/rpc/bootstrap_daemon.h
index 1e44771..7f38f6b 100644
--- a/src/rpc/bootstrap_daemon.h
+++ b/src/rpc/bootstrap_daemon.h
@@ -1,4 +1,4 @@
-#pragma once
+#pragma once
#include <functional>
#include <map>
diff --git a/src/rpc/bootstrap_node_selector.cpp b/src/rpc/bootstrap_node_selector.cpp
index fab671d..9f2f9a8 100644
--- a/src/rpc/bootstrap_node_selector.cpp
+++ b/src/rpc/bootstrap_node_selector.cpp
@@ -1,5 +1,4 @@
// Copyright (c) 2020-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/rpc/bootstrap_node_selector.h b/src/rpc/bootstrap_node_selector.h
index 5931ca9..431e93d 100644
--- a/src/rpc/bootstrap_node_selector.h
+++ b/src/rpc/bootstrap_node_selector.h
@@ -1,5 +1,4 @@
// Copyright (c) 2020-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/rpc/rpc_handler.cpp b/src/rpc/rpc_handler.cpp
index d528ffe..d2b7732 100644
--- a/src/rpc/rpc_handler.cpp
+++ b/src/rpc/rpc_handler.cpp
@@ -1,4 +1,3 @@
-
#include <algorithm>
#include <boost/thread/locks.hpp>
#include <boost/thread/mutex.hpp>
diff --git a/src/rpc/zmq_pub.h b/src/rpc/zmq_pub.h
index ba730e6..a9130a4 100644
--- a/src/rpc/zmq_pub.h
+++ b/src/rpc/zmq_pub.h
@@ -1,8 +1,7 @@
// Copyright (c) 2020-2024, The Monero Project
-
//
// All rights reserved.
- //
+//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
diff --git a/src/wallet/message_store.cpp b/src/wallet/message_store.cpp
index f720485..9ee8222 100644
--- a/src/wallet/message_store.cpp
+++ b/src/wallet/message_store.cpp
@@ -1,5 +1,4 @@
// Copyright (c) 2018-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/wallet/message_store.h b/src/wallet/message_store.h
index 6f4b1f5..6a8d12b 100644
--- a/src/wallet/message_store.h
+++ b/src/wallet/message_store.h
@@ -1,5 +1,4 @@
// Copyright (c) 2018-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/wallet/message_transporter.cpp b/src/wallet/message_transporter.cpp
index 3259854..5a6b60d 100644
--- a/src/wallet/message_transporter.cpp
+++ b/src/wallet/message_transporter.cpp
@@ -1,5 +1,4 @@
// Copyright (c) 2018-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/wallet/message_transporter.h b/src/wallet/message_transporter.h
index 6d818f4..023eea8 100644
--- a/src/wallet/message_transporter.h
+++ b/src/wallet/message_transporter.h
@@ -1,5 +1,4 @@
// Copyright (c) 2018-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/wallet/ringdb.cpp b/src/wallet/ringdb.cpp
index 8802f73..e494c1f 100644
--- a/src/wallet/ringdb.cpp
+++ b/src/wallet/ringdb.cpp
@@ -1,5 +1,4 @@
// Copyright (c) 2018-2024, The Monero Project
-
//
// All rights reserved.
//
diff --git a/src/wallet/ringdb.h b/src/wallet/ringdb.h
index 13412cd..8b89b25 100644
--- a/src/wallet/ringdb.h
+++ b/src/wallet/ringdb.h
@@ -1,5 +1,4 @@
// Copyright (c) 2018-2024, The Monero Project
-
//
// All rights reserved.
//
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.