Skip to content

Commit e336cf2

Browse files
committed
Remove trailing whitespaces from all source files
Applied automatic trailing whitespace removal across the codebase using the new fix-trailing-whitespace Makefile target. This ensures consistent formatting and prevents future trailing whitespace commits. Files affected: - Rust source files (.rs) - Configuration files (.toml, .yml, .yaml) - Documentation files (.md) - Frontend files (.js, .ts, .tsx) - Various other project files This is a formatting-only change with no functional modifications.
1 parent c1339e7 commit e336cf2

27 files changed

+205
-110
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
[![Changelog][changelog-badge]][changelog] [![Apache licensed]][Apache link]
1212

1313
_The **Open Mina Node** is a fast and secure implementation of the Mina protocol
14-
in **Rust**._
14+
in **Rust**._
1515
_Currently in **public beta**, join our
1616
[Discord community](https://discord.com/channels/484437221055922177/1290662938734231552)
1717
to help test future releases._

core/src/substate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub type SubstateResult<T> = Result<T, String>;
1313
/// .ready()
1414
/// .ok_or_else(|| "P2P state unavailable. P2P layer is not ready".to_owned())
1515
/// }
16-
///
16+
///
1717
/// fn substate_mut(&mut self) -> SubstateResult<&mut P2pState> {
1818
/// self.p2p
1919
/// .ready_mut()

docker-compose.archive.devnet.compare.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,15 @@ services:
113113
--insecure-rest-server
114114
--rest-port 5000
115115
--enable-peer-exchange true
116-
--peer /dns4/primary-tcp-proxy.hz.minaprotocol.network/tcp/40101/p2p/12D3KooWNGY3guz8pYHrVEqs8se4MSnnmpgguyQYDazMbVCyrMnS
117-
--peer /dns4/primary-tcp-proxy.hz.minaprotocol.network/tcp/40102/p2p/12D3KooWSqZ4qtysb8Du4yVpcc5SYc3gsRuNqgMomggw6hekATWg
118-
--peer /dns4/primary-tcp-proxy.hz.minaprotocol.network/tcp/40103/p2p/12D3KooWSHiGavQpamDPEc6rPaqT4PoS1Lr9aDfrfg5dKM2V6x3H
119-
--peer /dns4/primary-tcp-proxy.hz.minaprotocol.network/tcp/40104/p2p/12D3KooWA3yPrTaLXsggVSCG4mr7c33YNdz5DSs87LszRUVt9vLT
120-
--peer /dns4/primary-tcp-proxy.hz.minaprotocol.network/tcp/40105/p2p/12D3KooWCLcUWCdU4VstETztxE3feQyS57dVDdzBhmkj5tiCaha8
121-
--peer /dns4/primary-tcp-proxy.hz.minaprotocol.network/tcp/40106/p2p/12D3KooWNZWqEoCuhMrc9tTMxtEsfxmeFhjh2agUcmzJFNKxQnNA
122-
--peer /dns4/primary-tcp-proxy.hz.minaprotocol.network/tcp/40107/p2p/12D3KooWAMSP94SM3icSeAXeBmPUuZ5JvwrZ5w87fpRHVeJkdboe
123-
--peer /dns4/primary-tcp-proxy.hz.minaprotocol.network/tcp/40108/p2p/12D3KooWL5gPf5CrARVPhBi6KsDHmB1gsJKZ4vWrcLweWyMjpB5e
124-
--peer /dns4/primary-tcp-proxy.hz.minaprotocol.network/tcp/40109/p2p/12D3KooWT1nNJLGE8jWcshPSq3FmSXmmNn2MzfmvJcWYZ1HrtHnZ
116+
--peer /dns4/primary-tcp-proxy.hz.minaprotocol.network/tcp/40101/p2p/12D3KooWNGY3guz8pYHrVEqs8se4MSnnmpgguyQYDazMbVCyrMnS
117+
--peer /dns4/primary-tcp-proxy.hz.minaprotocol.network/tcp/40102/p2p/12D3KooWSqZ4qtysb8Du4yVpcc5SYc3gsRuNqgMomggw6hekATWg
118+
--peer /dns4/primary-tcp-proxy.hz.minaprotocol.network/tcp/40103/p2p/12D3KooWSHiGavQpamDPEc6rPaqT4PoS1Lr9aDfrfg5dKM2V6x3H
119+
--peer /dns4/primary-tcp-proxy.hz.minaprotocol.network/tcp/40104/p2p/12D3KooWA3yPrTaLXsggVSCG4mr7c33YNdz5DSs87LszRUVt9vLT
120+
--peer /dns4/primary-tcp-proxy.hz.minaprotocol.network/tcp/40105/p2p/12D3KooWCLcUWCdU4VstETztxE3feQyS57dVDdzBhmkj5tiCaha8
121+
--peer /dns4/primary-tcp-proxy.hz.minaprotocol.network/tcp/40106/p2p/12D3KooWNZWqEoCuhMrc9tTMxtEsfxmeFhjh2agUcmzJFNKxQnNA
122+
--peer /dns4/primary-tcp-proxy.hz.minaprotocol.network/tcp/40107/p2p/12D3KooWAMSP94SM3icSeAXeBmPUuZ5JvwrZ5w87fpRHVeJkdboe
123+
--peer /dns4/primary-tcp-proxy.hz.minaprotocol.network/tcp/40108/p2p/12D3KooWL5gPf5CrARVPhBi6KsDHmB1gsJKZ4vWrcLweWyMjpB5e
124+
--peer /dns4/primary-tcp-proxy.hz.minaprotocol.network/tcp/40109/p2p/12D3KooWT1nNJLGE8jWcshPSq3FmSXmmNn2MzfmvJcWYZ1HrtHnZ
125125
# volumes:
126126
# # - /tmp/ocaml-node-keys:/keys
127127
ports:

docs/alpha-testing-guide.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Ensure you have **Docker** installed:
1313
## 2. Download & Start the Node
1414

1515
1. **Download the Latest Release**:
16+
1617
- Visit the
1718
[Open Mina Releases](https://github.com/openmina/openmina/releases).
1819
- Download the latest `openmina-vX.Y.Z-docker-compose.zip`.

docs/block-producer-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Run Block Producing Node on Devnet
22

33
This guide is intended for setting up block producer nodes on **Mina Devnet**
4-
only.
4+
only.
55
Do not use this guide for Mina Mainnet until necessary security audits are
66
complete.
77

docs/local-demo-guide.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@ your operating system, follow these steps:
66
## Setup Option 1: Download Docker Compose Files from the Release
77

88
1. **Download the Docker Compose files:**
9+
910
- Go to the [Releases page](https://github.com/openmina/openmina/releases) of
1011
this repository.
1112
- Download the latest `openmina-vX.Y.Z-docker-compose.zip` (or `.tar.gz`)
1213
file corresponding to the release version (available since v0.8.0).
1314

1415
2. **Extract the files:**
16+
1517
- Unzip or untar the downloaded file:
1618
```bash
1719
unzip openmina-vX.Y.Z-docker-compose.zip

frontend/public/o1js/dist/o1js-wrapper.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
6464
/************************************************************************/
6565
/******/ // The module cache
6666
/******/ var __webpack_module_cache__ = {};
67-
/******/
67+
/******/
6868
/******/ // The require function
6969
/******/ function __webpack_require__(moduleId) {
7070
/******/ // Check if module is in cache
@@ -78,14 +78,14 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
7878
/******/ // no module.loaded needed
7979
/******/ exports: {}
8080
/******/ };
81-
/******/
81+
/******/
8282
/******/ // Execute the module function
8383
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
84-
/******/
84+
/******/
8585
/******/ // Return the exports of the module
8686
/******/ return module.exports;
8787
/******/ }
88-
/******/
88+
/******/
8989
/************************************************************************/
9090
/******/ /* webpack/runtime/define property getters */
9191
/******/ (() => {
@@ -98,12 +98,12 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
9898
/******/ }
9999
/******/ };
100100
/******/ })();
101-
/******/
101+
/******/
102102
/******/ /* webpack/runtime/hasOwnProperty shorthand */
103103
/******/ (() => {
104104
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
105105
/******/ })();
106-
/******/
106+
/******/
107107
/******/ /* webpack/runtime/make namespace object */
108108
/******/ (() => {
109109
/******/ // define __esModule on exports
@@ -114,14 +114,14 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
114114
/******/ Object.defineProperty(exports, '__esModule', { value: true });
115115
/******/ };
116116
/******/ })();
117-
/******/
117+
/******/
118118
/************************************************************************/
119-
/******/
119+
/******/
120120
/******/ // startup
121121
/******/ // Load entry module and return exports
122122
/******/ // This entry module can't be inlined because the eval devtool is used.
123123
/******/ var __webpack_exports__ = __webpack_require__("./bootstrap.js");
124-
/******/
124+
/******/
125125
/******/ return __webpack_exports__;
126126
/******/ })()
127127
;

frontend/src/assets/o1js/dist/o1js-wrapper.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
6464
/************************************************************************/
6565
/******/ // The module cache
6666
/******/ var __webpack_module_cache__ = {};
67-
/******/
67+
/******/
6868
/******/ // The require function
6969
/******/ function __webpack_require__(moduleId) {
7070
/******/ // Check if module is in cache
@@ -78,14 +78,14 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
7878
/******/ // no module.loaded needed
7979
/******/ exports: {}
8080
/******/ };
81-
/******/
81+
/******/
8282
/******/ // Execute the module function
8383
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
84-
/******/
84+
/******/
8585
/******/ // Return the exports of the module
8686
/******/ return module.exports;
8787
/******/ }
88-
/******/
88+
/******/
8989
/************************************************************************/
9090
/******/ /* webpack/runtime/define property getters */
9191
/******/ (() => {
@@ -98,12 +98,12 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
9898
/******/ }
9999
/******/ };
100100
/******/ })();
101-
/******/
101+
/******/
102102
/******/ /* webpack/runtime/hasOwnProperty shorthand */
103103
/******/ (() => {
104104
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
105105
/******/ })();
106-
/******/
106+
/******/
107107
/******/ /* webpack/runtime/make namespace object */
108108
/******/ (() => {
109109
/******/ // define __esModule on exports
@@ -114,14 +114,14 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
114114
/******/ Object.defineProperty(exports, '__esModule', { value: true });
115115
/******/ };
116116
/******/ })();
117-
/******/
117+
/******/
118118
/************************************************************************/
119-
/******/
119+
/******/
120120
/******/ // startup
121121
/******/ // Load entry module and return exports
122122
/******/ // This entry module can't be inlined because the eval devtool is used.
123123
/******/ var __webpack_exports__ = __webpack_require__("./bootstrap.js");
124-
/******/
124+
/******/
125125
/******/ return __webpack_exports__;
126126
/******/ })()
127127
;

tools/fuzzing/src/coverage/covmap.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub struct Header {
1111
}
1212

1313
impl Header {
14-
#[coverage(off)]
14+
#[coverage(off)]
1515
pub fn read(cursor: &mut Cursor<&Vec<u8>>) -> Self {
1616
let header = Self {
1717
zero: read_int(cursor),
@@ -29,7 +29,7 @@ impl Header {
2929
pub struct Filenames(pub Vec<String>);
3030

3131
impl Filenames {
32-
#[coverage(off)]
32+
#[coverage(off)]
3333
pub fn read(cursor: &mut Cursor<&Vec<u8>>) -> Self {
3434
let num_filenames = u64::read_leb128(cursor);
3535
let uncompressed_len = usize::read_leb128(cursor);
@@ -61,7 +61,7 @@ impl Filenames {
6161
Self(filenames)
6262
}
6363

64-
#[coverage(off)]
64+
#[coverage(off)]
6565
fn read_filename(cursor: &mut Cursor<&Vec<u8>>) -> String {
6666
let string_len = usize::read_leb128(cursor);
6767
let mut output = vec![0; string_len];
@@ -79,7 +79,7 @@ pub struct CovMap {
7979
}
8080

8181
impl CovMap {
82-
#[coverage(off)]
82+
#[coverage(off)]
8383
pub fn read(cursor: &mut Cursor<&Vec<u8>>) -> Self {
8484
let header = Header::read(cursor);
8585
let pos = cursor.position() as usize;

tools/heartbeats-processor/src/local_db.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -681,8 +681,8 @@ pub async fn get_max_scores(pool: &SqlitePool) -> Result<MaxScores> {
681681

682682
let current = sqlx::query_as::<_, (i64,)>(
683683
r#"
684-
SELECT COUNT(*) as count
685-
FROM time_windows
684+
SELECT COUNT(*) as count
685+
FROM time_windows
686686
WHERE end_time <= strftime('%s', 'now')
687687
AND disabled = FALSE
688688
"#,
@@ -824,9 +824,9 @@ pub async fn ensure_initial_windows(pool: &SqlitePool, config: &Config) -> Resul
824824

825825
let affected = sqlx::query!(
826826
r#"
827-
UPDATE time_windows
828-
SET disabled = TRUE
829-
WHERE (start_time < ?1 OR end_time > ?2)
827+
UPDATE time_windows
828+
SET disabled = TRUE
829+
WHERE (start_time < ?1 OR end_time > ?2)
830830
AND disabled = FALSE
831831
"#,
832832
start_ts,

0 commit comments

Comments
 (0)