Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-606: Review 2 #429

Closed
wants to merge 23 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
60d46da
GH-781: New Testnet Polygon Amoy (#431)
bertllll Apr 3, 2024
f43dcbe
v0.8.0 (#435)
kauri-hero Apr 10, 2024
6047a13
GH-783 Fix tests failing on non standard environment (#432)
czarte Apr 24, 2024
55851fc
GH-791: Small fixes to stabilize tests in setup_reporter.rs (#443)
bertllll May 21, 2024
40480d1
GH-797: Update min-hops command docs in User Interface (#447)
utkarshg6 May 29, 2024
2007ccd
GH-728: Finish the password-change logic (#355)
utkarshg6 May 29, 2024
25e9a4f
feat: added dependabot.yml (#342)
FinsaasGH Jul 1, 2024
6fcc1cd
GH-813: Correctly parse max block range error message (#531)
masqrauder Sep 29, 2024
a4fb720
GH-500: Adding Base chains (#510)
bertllll Oct 2, 2024
91f3b8c
update readme and tag v0.8.1 (#532)
kauri-hero Oct 3, 2024
f5572f3
GH-524: Disable `entry_dns` (#526)
utkarshg6 Oct 8, 2024
7693d00
GH-539: Don't Panic! (#540)
utkarshg6 Oct 15, 2024
8ad336d
New Version: v0.8.2 (#542)
utkarshg6 Oct 15, 2024
ed7ca69
GH-606: Initialize start_block to none to use latest block
masqrauder Jan 15, 2024
c61be52
GH-606: Apply PR feedback changes
masqrauder Mar 16, 2024
aa54ff0
GH-606: Apply PR feedback changes
masqrauder Apr 21, 2024
2a0e285
GH-606: Apply PR feedback changes
masqrauder Jun 16, 2024
c965035
GH-606: Apply PR review 4 feedback changes
masqrauder Jun 23, 2024
f7938de
GH-606: Squashing commits
masqrauder Jul 11, 2024
89e7171
GH-600: set_start_block only called in accountant/scanners/mod.rs
masqrauder Oct 10, 2024
382f0de
GH-606: PR Feedback - parameterize a test
masqrauder Oct 20, 2024
7c9b69d
GH-606: Address PR feedback
masqrauder Oct 22, 2024
a9c7faf
GH-606: Implement parameterized test without crate macro
masqrauder Oct 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 106 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
# Basic `dependabot.yml` file with
# minimum configuration for two package managers

version: 2
updates:
# Enable version updates for node
- package-ecosystem: "cargo"
directory: "/node"
# Check the cargo registry for updates every day (weekdays)
schedule:
interval: "daily"
time: '14:00'
timezone: 'Etc/UTC'
allow:
- dependency-name: "*"
dependency-type: "direct"
ignore:
- dependency-name: "automap"
- dependency-name: "masq_lib"
- dependency-name: "actix"
- dependency-name: "tokio"
- dependency-name: "clap"
- dependency-name: "sodiumoxide"
- dependency-name: "web3"
- dependency-name: "websocket"
groups:
patch:
update-types:
- "patch"
minor:
update-types:
- "minor"
target-branch: 'master'
open-pull-requests-limit: 2

# Enable version updates for masq
- package-ecosystem: "cargo"
directory: "/masq"
# Check the cargo registry for updates every day (weekdays)
schedule:
interval: "daily"
time: '14:00'
timezone: 'Etc/UTC'
allow:
- dependency-name: "*"
dependency-type: "direct"
ignore:
- dependency-name: "masq_lib"
- dependency-name: "clap"
- dependency-name: "websocket"
groups:
patch:
update-types:
- "patch"
minor:
update-types:
- "minor"
target-branch: 'master'
open-pull-requests-limit: 2

# Enable version updates for masq_lib
- package-ecosystem: "cargo"
directory: "/masq_lib"
# Check the cargo registry for updates every day (weekdays)
schedule:
interval: "daily"
time: '14:00'
timezone: 'Etc/UTC'
allow:
- dependency-name: "*"
dependency-type: "direct"
ignore:
- dependency-name: "clap"
- dependency-name: "websocket"
groups:
patch:
update-types:
- "patch"
minor:
update-types:
- "minor"
target-branch: 'master'
open-pull-requests-limit: 2

# Enable version updates for automap
- package-ecosystem: "cargo"
directory: "/automap"
# Check the cargo registry for updates every day (weekdays)
schedule:
interval: "daily"
time: '14:00'
timezone: 'Etc/UTC'
allow:
- dependency-name: "*"
dependency-type: "direct"
ignore:
- dependency-name: "masq_lib"
groups:
patch:
update-types:
- "patch"
minor:
update-types:
- "minor"
target-branch: 'master'
open-pull-requests-limit: 2
17 changes: 10 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# MASQ Node ![masq-logo](images/masq-logo-sm.png)

<div align="center">

![ci-matrix](https://github.com/MASQ-Project/Node/workflows/ci-matrix/badge.svg)
[![GitHub Release](https://img.shields.io/github/v/release/MASQ-Project/Node?display_name=release&color=green)](https://github.com/MASQ-Project/Node/releases/latest)
[![Discord](https://badgen.net/badge/icon/discord?icon=discord&label)](https://discord.gg/masq)

</div>

MASQ Node combines the benefits of VPN and Tor technology, to create superior next-generation privacy software, where
users are rewarded for supporting an uncensored, global Web. Users gain privacy and anonymity, while helping promote
Expand Down Expand Up @@ -33,8 +39,7 @@ stage - MASQ Network and it's developers are not responsible for any activity, o
## Source
The MASQ project was forked from Substratum's Node project in order to carry on development after Substratum ceased
operations in October of 2019. In 2021, Substratum's Node repositories were removed from GitHub, so the fork link
with MASQ was broken, but all credit for the original idea, the original design, and the first two years of MASQ's
development belongs to Substratum.
with MASQ was broken, but all credit for the original idea and the original design belongs to Substratum (and properly attributed through GPLv3 license)

## Running the MASQ Node

Expand All @@ -43,7 +48,7 @@ A [Knowledge Base](https://docs.masq.ai/masq) and testing resources are being re
levels of technical ability.

There you can find further information, guides and configuration examples for running MASQ Node from:
- MASQ app - v0.2 (formerly called "GEMINI")
- [MASQ Browser](https://masqbrowser.com)
- CLI
- Docker image

Expand All @@ -66,7 +71,7 @@ To help navigate the codebase, here are the README.md links for all documented c

### Downloading Official Releases

We haven't set up any official releases yet; but when we do, instructions will appear here.
Releases will appear on our GitHub page - click on the badge above for the latest stable beta build, or go to our [Releases page](https://github.com/MASQ-Project/Node/releases/latest)

### Downloading the Latest Build

Expand Down Expand Up @@ -446,6 +451,4 @@ recommend using a 64-bit version to build.

We do plan to release binaries that will run on 32-bit Windows, but they will likely be built on 64-bit Windows.

Copyright (c) 2019-2022, MASQ Network

Copyright (c) 2017-2019, Substratum LLC and/or its affiliates. All rights reserved.
Copyright (c) 2019-2024, MASQ Network
17 changes: 15 additions & 2 deletions USER-INTERFACE-INTERFACE.md
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ There are following three connection stages:

1. NotConnected: No external neighbor is connected to us.
2. ConnectedToNeighbor: External node(s) are connected to us.
3. ThreeHopsRouteFound: You can relay data over the network.
3. RouteFound: You can relay data over the network.

The Node can only be on one of these connection stages during any moment of the Node's lifetime.

Expand Down Expand Up @@ -1095,6 +1095,18 @@ even for parameters whose values are natively of other types.
##### Description:
If the value of the respective parameter was successfully changed, this is a simple acknowledgment that the change is complete.

The following commands can be configured using the `setConfiguration`:


| Name | Parameter | Possible Values |
|------------------|-----------------|------------------|
| Gas Price | `--gas-price` | > 0 |
| Start Block | `--start-block` | > 0 |
| Min Hops | `--min-hops` | [1, 6] |


Note: The descriptions for the above commands can be found [here](#permitted-names).

#### `setup`
##### Direction: Request
##### Correspondent: Daemon
Expand Down Expand Up @@ -1131,10 +1143,11 @@ be cleared.
* `db-password` - Password to unlock the sensitive values in the database.
* `dns-servers` - Comma-separated list of DNS servers to use.
* `earning-wallet` - Wallet into which earnings should be deposited.
* `gas-price` - Transaction fee to offer on the blockchain.
* `gas-price` - The fee per unit of computational effort in blockchain transactions, measured in gwei.
* `ip` - The public IP address of the Node.
* `log-level` - The lowest level of logs that should be recorded. `off`, `error`, `warn`, `info`, `debug`, `trace`
* `mapping-protocol` - The management protocol to try first with the router. `pcp`, `pmp`, `igdp`
* `min-hops`: The minimum number of hops required for the package to reach the Exit Node.
* `neighborhood-mode` - `zero-hop`, `originate-only`, `consume-only`, `standard`
* `neighbors` - Comma-separated list of Node descriptors for neighbors to contact on startup
* `real-user` - Non-Windows platforms only, only where required: <uid>:<gid>:<home directory>
Expand Down
4 changes: 2 additions & 2 deletions automap/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion automap/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "automap"
version = "0.8.0"
version = "0.8.2"
authors = ["Dan Wiebe <dnwiebe@gmail.com>", "MASQ"]
license = "GPL-3.0-only"
description = "Library full of code to make routers map ports through firewalls"
Expand Down
4 changes: 2 additions & 2 deletions dns_utility/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dns_utility/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dns_utility"
version = "0.8.0"
version = "0.8.2"
license = "GPL-3.0-only"
authors = ["Dan Wiebe <dnwiebe@gmail.com>", "MASQ"]
copyright = "Copyright (c) 2019, MASQ (https://masq.ai) and/or its affiliates. All rights reserved."
Expand Down
2 changes: 1 addition & 1 deletion masq/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "masq"
version = "0.8.0"
version = "0.8.2"
authors = ["Dan Wiebe <dnwiebe@gmail.com>", "MASQ"]
license = "GPL-3.0-only"
description = "Reference implementation of user interface for MASQ Node"
Expand Down
17 changes: 10 additions & 7 deletions masq/src/commands/configuration_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@ impl ConfigurationCommand {
dump_parameter_line(
stream,
"Start block:",
&configuration.start_block.to_string(),
&configuration
.start_block_opt
.map(|m| m.separate_with_commas())
.unwrap_or_else(|| "[Latest]".to_string()),
);
Self::dump_value_list(stream, "Past neighbors:", &configuration.past_neighbors);
let payment_thresholds = Self::preprocess_combined_parameters({
Expand Down Expand Up @@ -333,7 +336,7 @@ mod tests {
exit_byte_rate: 129000000,
exit_service_rate: 160000000,
},
start_block: 3456,
start_block_opt: None,
scan_intervals: UiScanIntervals {
pending_payable_sec: 150500,
payable_sec: 155000,
Expand Down Expand Up @@ -378,7 +381,7 @@ mod tests {
|Max block count: [Unlimited]\n\
|Neighborhood mode: standard\n\
|Port mapping protocol: PCP\n\
|Start block: 3456\n\
|Start block: [Latest]\n\
|Past neighbors: neighbor 1\n\
| neighbor 2\n\
|Payment thresholds: \n\
Expand Down Expand Up @@ -410,7 +413,7 @@ mod tests {
blockchain_service_url_opt: Some("https://infura.io/ID".to_string()),
current_schema_version: "schema version".to_string(),
clandestine_port: 1234,
chain_name: "mumbai".to_string(),
chain_name: "amoy".to_string(),
gas_price: 2345,
max_block_count_opt: Some(100_000),
neighborhood_mode: "zero-hop".to_string(),
Expand All @@ -433,7 +436,7 @@ mod tests {
exit_byte_rate: 20,
exit_service_rate: 30,
},
start_block: 3456,
start_block_opt: Some(1234567890u64),
scan_intervals: UiScanIntervals {
pending_payable_sec: 1000,
payable_sec: 1000,
Expand Down Expand Up @@ -467,7 +470,7 @@ mod tests {
"\
|NAME VALUE\n\
|Blockchain service URL: https://infura.io/ID\n\
|Chain: mumbai\n\
|Chain: amoy\n\
|Clandestine port: 1234\n\
|Consuming wallet private key: [?]\n\
|Current schema version: schema version\n\
Expand All @@ -476,7 +479,7 @@ mod tests {
|Max block count: 100,000\n\
|Neighborhood mode: zero-hop\n\
|Port mapping protocol: PCP\n\
|Start block: 3456\n\
|Start block: 1,234,567,890\n\
|Past neighbors: [?]\n\
|Payment thresholds: \n\
| Debt threshold: 2,500 gwei\n\
Expand Down
Loading
Loading