author int64 658 755k | date stringdate 2012-06-12 08:34:29 2024-07-22 14:51:21 | timezone int64 -46,800 43.2k | hash stringlengths 40 40 | message stringlengths 5 490 | mods listlengths 1 16 | language stringclasses 20
values | license stringclasses 3
values | repo stringlengths 5 68 | original_message stringlengths 12 491 |
|---|---|---|---|---|---|---|---|---|---|
20,244 | 05.04.2019 15:34:27 | 14,400 | 06e0438c1fa62c72b06b6c6a4cf2fa237bc1a69e | Update for early beta 4 | [
{
"change_type": "MODIFY",
"old_path": "Cargo.lock",
"new_path": "Cargo.lock",
"diff": "@@ -155,7 +155,7 @@ dependencies = [\nname = \"althea_rs\"\nversion = \"0.1.10\"\ndependencies = [\n- \"rita 0.3.17\",\n+ \"rita 0.3.18\",\n]\n[[package]]\n@@ -2014,7 +2014,7 @@ dependencies = [\n[[package]]\nnam... | Rust | Apache License 2.0 | althea-net/althea_rs | Update for early beta 4 |
20,244 | 08.04.2019 06:51:02 | 14,400 | 712d3f4f20a8e6eee725b3faad806f46b3d2be7e | Up base value for exit bandwidth class
This change seems to mostly have had the affect of limiting everyone
to 100mbps but not really much effect on getting users there. | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_exit/database/mod.rs",
"new_path": "rita/src/rita_exit/database/mod.rs",
"diff": "@@ -497,9 +497,9 @@ pub fn enforce_exit_clients(\n&ip,\n)\n} else {\n- // set to 100mbps garunteed bandwidth and 1gbps\n+ // set to 500mbps garunteed bandwidth and ... | Rust | Apache License 2.0 | althea-net/althea_rs | Up base value for exit bandwidth class
This change seems to mostly have had the affect of limiting everyone
to 100mbps but not really much effect on getting users there. |
20,244 | 09.04.2019 09:06:13 | 14,400 | 92cde3b94b7f616e713a2b7435cdb64c45a2f902 | Oracalize low balance warnings | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_common/oracle/mod.rs",
"new_path": "rita/src/rita_common/oracle/mod.rs",
"diff": "@@ -257,6 +257,7 @@ struct PriceUpdate {\nclient: u32,\ngateway: u32,\nmax: u32,\n+ warning: u128,\n}\n/// This is a very simple and early version of an automated p... | Rust | Apache License 2.0 | althea-net/althea_rs | Oracalize low balance warnings |
20,244 | 09.04.2019 07:43:33 | 14,400 | 258a73f08d7c6c648ef1b842dd97a306eac305ab | Fix typo in debtkeeper module comment | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_common/debt_keeper/mod.rs",
"new_path": "rita/src/rita_common/debt_keeper/mod.rs",
"diff": "//! While traffic watcher keeps an eye on how much traffic flows and what that is worth debtkeeper\n-//! maintains the long term memory of who owes whow w... | Rust | Apache License 2.0 | althea-net/althea_rs | Fix typo in debtkeeper module comment |
20,244 | 16.04.2019 07:30:46 | 14,400 | e4f01735b1a94a07d2ec3229893df5dc67ae4bad | Remove exit discount
Shouldn't be needed anymore | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_exit/traffic_watcher/mod.rs",
"new_path": "rita/src/rita_exit/traffic_watcher/mod.rs",
"diff": "@@ -325,12 +325,9 @@ pub fn watch<T: Read + Write>(\nlet mut traffic_vec = Vec::new();\nfor (from, amount) in debts {\n- // Provides a 10% discount to... | Rust | Apache License 2.0 | althea-net/althea_rs | Remove exit discount
Shouldn't be needed anymore |
20,244 | 16.04.2019 07:50:12 | 14,400 | 1553a98e7f2dc6c7f14ee6c5fdba73f8cdc8f379 | Fix some nits in rita_exit | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_exit/database/geoip.rs",
"new_path": "rita/src/rita_exit/database/geoip.rs",
"diff": "@@ -55,7 +55,7 @@ pub fn get_gateway_ip_bulk(mesh_ip_list: Vec<IpAddr>) -> Result<Vec<IpPair>, Err\nif ip.prefix() == 128 && route.installed && IpAddr::V6(ip.ip... | Rust | Apache License 2.0 | althea-net/althea_rs | Fix some nits in rita_exit |
20,244 | 16.04.2019 09:26:25 | 14,400 | ddcf4b8e2983d7e78e7c8c1f0c22f3cd243e3f19 | Clean up for Client traffic watcher
fprtt was computed and generally not being used awkwardly in the middle
of the client billing, that's been lifted out into it's own function
in rita_loop as well as the route finding operation. | [
{
"change_type": "MODIFY",
"old_path": "babel_monitor/src/lib.rs",
"new_path": "babel_monitor/src/lib.rs",
"diff": "@@ -442,6 +442,29 @@ impl<T: Read + Write> Babel<T> {\n}\nOk(false)\n}\n+\n+ /// Returns the installed route to a given destination\n+ pub fn get_installed_route(\n+ &mut self,\n+ mesh... | Rust | Apache License 2.0 | althea-net/althea_rs | Clean up for Client traffic watcher
fprtt was computed and generally not being used awkwardly in the middle
of the client billing, that's been lifted out into it's own function
in rita_loop as well as the route finding operation. |
20,244 | 16.04.2019 12:00:55 | 14,400 | 6c782a294c7f9f5c4685b9f825d7fcd25f3fe329 | Remove local throttling stuff
We've decided to drop the feature for now | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_client/exit_manager/mod.rs",
"new_path": "rita/src/rita_client/exit_manager/mod.rs",
"diff": "@@ -421,18 +421,6 @@ impl Handler<Tick> for ExitManager {\n}\n}\n- // Self limit bandwidth consumption if we have a low balance\n- // let free_tier_thro... | Rust | Apache License 2.0 | althea-net/althea_rs | Remove local throttling stuff
We've decided to drop the feature for now |
20,244 | 16.04.2019 16:52:29 | 14,400 | 93371331884cb4109cd1ffd8d7ab2b9d13900a56 | Add comment about trust dns actor kill | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_common/rita_loop/mod.rs",
"new_path": "rita/src/rita_common/rita_loop/mod.rs",
"diff": "@@ -208,7 +208,6 @@ impl Handler<Tick> for RitaLoop {\n}\n/// Manages gateway functionaltiy and maintains the was_gateway parameter\n-/// for Rita loop\nfn ma... | Rust | Apache License 2.0 | althea-net/althea_rs | Add comment about trust dns actor kill |
20,244 | 17.04.2019 13:13:15 | 14,400 | c2221bc92326966894147d48196504b5114b88cd | Breaking version update for billing changes
Older versions will not bill interoperably so this is a breaking
change | [
{
"change_type": "MODIFY",
"old_path": "Cargo.lock",
"new_path": "Cargo.lock",
"diff": "@@ -155,7 +155,7 @@ dependencies = [\nname = \"althea_rs\"\nversion = \"0.1.10\"\ndependencies = [\n- \"rita 0.3.18\",\n+ \"rita 0.4.0\",\n]\n[[package]]\n@@ -2014,7 +2014,7 @@ dependencies = [\n[[package]]\nname... | Rust | Apache License 2.0 | althea-net/althea_rs | Breaking version update for billing changes
Older versions will not bill interoperably so this is a breaking
change |
20,244 | 19.04.2019 09:51:39 | 14,400 | fcf3eddc97e73c554f87bfa0c23d96ec38c421eb | Timeout for peer dns resolution
This was causing the entire actor system to block waiting for DNS
resolution | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_common/tunnel_manager/mod.rs",
"new_path": "rita/src/rita_common/tunnel_manager/mod.rs",
"diff": "//! up tunnels if they respond, likewise if someone calls us their hello goes through network_endpoints\n//! then into TunnelManager to open a tunne... | Rust | Apache License 2.0 | althea-net/althea_rs | Timeout for peer dns resolution
This was causing the entire actor system to block waiting for DNS
resolution |
20,244 | 19.04.2019 12:26:59 | 14,400 | 6bf2407bf6ad803c98650daa73b8506113f57a69 | Add timeouts to all major arbiter spawns | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_client/exit_manager/mod.rs",
"new_path": "rita/src/rita_client/exit_manager/mod.rs",
"diff": "@@ -408,6 +408,7 @@ impl Handler<Tick> for ExitManager {\nexit_id,\nexit_price,\n})\n+ .timeout(Duration::from_secs(4))\n.then(|res| match res {\nOk(val... | Rust | Apache License 2.0 | althea-net/althea_rs | Add timeouts to all major arbiter spawns |
20,244 | 19.04.2019 13:19:06 | 14,400 | 0b0083f57b89bb8d73ef31921b05abb598b00d39 | Add log message for was_gateway
This logic is bugging me, I'm going to roll this out and see
if anyone ever actually executes this code. | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_common/rita_loop/mod.rs",
"new_path": "rita/src/rita_common/rita_loop/mod.rs",
"diff": "@@ -232,10 +232,13 @@ fn manage_gateway(mut was_gateway: bool) -> bool {\nif SETTING.get_network().is_gateway {\nif was_gateway {\n+ // TODO I don't think thi... | Rust | Apache License 2.0 | althea-net/althea_rs | Add log message for was_gateway
This logic is bugging me, I'm going to roll this out and see
if anyone ever actually executes this code. |
20,244 | 19.04.2019 18:54:23 | 14,400 | f4fb8a2d58791df2a9c672b6231ccd6f61859135 | Babel does not allow uintmax for local fees
This adds some recovery code for this error case as well as prevents
a fee that high from being set in the first place | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_common/dashboard/babel.rs",
"new_path": "rita/src/rita_common/dashboard/babel.rs",
"diff": "@@ -31,6 +31,11 @@ pub fn set_local_fee(path: Path<u32>) -> Result<HttpResponse, Error> {\ndebug!(\"/local_fee/{} POST hit\", new_fee);\nlet mut ret = Has... | Rust | Apache License 2.0 | althea-net/althea_rs | Babel does not allow uintmax for local fees
This adds some recovery code for this error case as well as prevents
a fee that high from being set in the first place |
20,244 | 20.04.2019 09:07:44 | 14,400 | 74e193e7521a5ee39b7cbc2de9f510e350d415cc | Don't override the entry value during parsing
Using the variable 'entry' twice in the match statements here defeated
the point of some of this logging. I'm seeing a parsing error from production
logs but I can't figure out what value from babel is actually causing it. | [
{
"change_type": "MODIFY",
"old_path": "babel_monitor/src/lib.rs",
"new_path": "babel_monitor/src/lib.rs",
"diff": "@@ -304,20 +304,20 @@ impl<T: Read + Write> Babel<T> {\nfound_route = true;\nlet route = Route {\nid: match find_babel_val(\"route\", entry) {\n- Ok(entry) => entry,\n+ Ok(value) => va... | Rust | Apache License 2.0 | althea-net/althea_rs | Don't override the entry value during parsing
Using the variable 'entry' twice in the match statements here defeated
the point of some of this logging. I'm seeing a parsing error from production
logs but I can't figure out what value from babel is actually causing it. |
20,244 | 20.04.2019 16:24:27 | 14,400 | b2ba4a438d4881a0ddbe59966e191a97d82e2673 | Port toggling requires a rita restart
When we toggle ports like this our old listen handle gets lost
easier to restart than to figure out how to re-aquire it | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_client/dashboard/interfaces.rs",
"new_path": "rita/src/rita_client/dashboard/interfaces.rs",
"diff": "@@ -343,7 +343,15 @@ pub fn ethernet_transform_mode(\n// We edited disk contents, force global sync\nKI.fs_sync()?;\n- trace!(\"Successsfully tr... | Rust | Apache License 2.0 | althea-net/althea_rs | Port toggling requires a rita restart
When we toggle ports like this our old listen handle gets lost
easier to restart than to figure out how to re-aquire it |
20,244 | 22.04.2019 07:10:58 | 14,400 | fd55366560ac010c6128979a661b2cae1b1a742e | System alloc is now the default
So all of this is no longer required | [
{
"change_type": "MODIFY",
"old_path": "rita/Cargo.toml",
"new_path": "rita/Cargo.toml",
"diff": "@@ -67,4 +67,3 @@ phonenumber = \"0.2\"\n[features]\ndefault = []\ndevelopment = []\n-system_alloc = []\n"
},
{
"change_type": "MODIFY",
"old_path": "rita/src/client.rs",
"new_path": "ri... | Rust | Apache License 2.0 | althea-net/althea_rs | System alloc is now the default
So all of this is no longer required |
20,244 | 24.04.2019 11:10:59 | 14,400 | 1081868c6550b49d48b6dd5db3be67cc0a0ae92d | Better logging for hello's and tunnels
Just saw some strange tunnel behavior on the prod exit, changing log
messages to get a better look at it next time. | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_common/network_endpoints/mod.rs",
"new_path": "rita/src/rita_common/network_endpoints/mod.rs",
"diff": "@@ -88,8 +88,8 @@ pub fn hello_response(\n.parse::<SocketAddr>()\n.unwrap();\n- trace!(\"Got Hello from {:?}\", req.1.connection_info().remote... | Rust | Apache License 2.0 | althea-net/althea_rs | Better logging for hello's and tunnels
Just saw some strange tunnel behavior on the prod exit, changing log
messages to get a better look at it next time. |
20,244 | 25.04.2019 14:37:46 | 14,400 | 43aeba09265ed23aa4acd16555afe8c2ca2ab00a | Use opt level z
Also adds a travis check to make sure it doesn't sneak back in | [
{
"change_type": "MODIFY",
"old_path": ".travis.yml",
"new_path": ".travis.yml",
"diff": "@@ -43,6 +43,8 @@ matrix:\nscript:\n- rustup component add rustfmt-preview\n- cargo fmt --all -- --check\n+ # to stop opt level 3 from sneaking in\n+ - \"grep -q 'opt-level = \\\"z\\\"' Cargo.toml\"\n- script: ... | Rust | Apache License 2.0 | althea-net/althea_rs | Use opt level z
Also adds a travis check to make sure it doesn't sneak back in |
20,244 | 25.04.2019 18:04:23 | 14,400 | abee931e9cabc4484f4004baa6984bcb5b152953 | Bump for Beta 4 rc5 | [
{
"change_type": "MODIFY",
"old_path": "Cargo.lock",
"new_path": "Cargo.lock",
"diff": "@@ -173,7 +173,7 @@ dependencies = [\nname = \"althea_rs\"\nversion = \"0.1.10\"\ndependencies = [\n- \"rita 0.4.0\",\n+ \"rita 0.4.1\",\n]\n[[package]]\n@@ -2062,7 +2062,7 @@ dependencies = [\n[[package]]\nname ... | Rust | Apache License 2.0 | althea-net/althea_rs | Bump for Beta 4 rc5 |
20,244 | 26.04.2019 10:01:57 | 14,400 | 64de363abe7e9b1f1886353de16ffd44e5445b7c | Enable cron on startup
This is a temporary change to make sure that anyone updated will
be rescued from the last updates cron issues | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "althea_kernel_interface/src/check_cron.rs",
"diff": "+use super::KernelInterface;\n+use failure::Error;\n+use std::process::{Command, Stdio};\n+\n+impl dyn KernelInterface {\n+ /// Checks if the cron service is running and starts it if it's not\... | Rust | Apache License 2.0 | althea-net/althea_rs | Enable cron on startup
This is a temporary change to make sure that anyone updated will
be rescued from the last updates cron issues |
20,244 | 26.04.2019 10:02:51 | 14,400 | f82749d692e991ec19fb2bf143c9680f8e9c6720 | Bump for Beta 4 rc6 | [
{
"change_type": "MODIFY",
"old_path": "Cargo.lock",
"new_path": "Cargo.lock",
"diff": "@@ -173,7 +173,7 @@ dependencies = [\nname = \"althea_rs\"\nversion = \"0.1.10\"\ndependencies = [\n- \"rita 0.4.1\",\n+ \"rita 0.4.2\",\n]\n[[package]]\n@@ -2062,7 +2062,7 @@ dependencies = [\n[[package]]\nname ... | Rust | Apache License 2.0 | althea-net/althea_rs | Bump for Beta 4 rc6 |
20,244 | 26.04.2019 10:56:50 | 14,400 | fb0c3ad248d983080b40e5534ea7de2d2fb03f31 | Add Cargo geiger and audit to CI | [
{
"change_type": "MODIFY",
"old_path": ".travis.yml",
"new_path": ".travis.yml",
"diff": "@@ -8,7 +8,7 @@ before_install:\n- sudo add-apt-repository universe\n- sudo apt-get -qq update\n- sudo apt-get install -y libsqlite3-dev postgresql-client-11 postgresql-server-dev-11 libpq-dev iperf3 python3-pi... | Rust | Apache License 2.0 | althea-net/althea_rs | Add Cargo geiger and audit to CI |
20,244 | 28.04.2019 17:12:34 | 14,400 | 8f4ef2159e481605e1a7d8b430bde5305f119d57 | Add timeout to the main rita loop
In this case I'm concerned about the syncronous actions on the exit
extending beyond the desired time period. Since the database connector
doesn't apparently have the concept of a timeout. | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_exit/rita_loop/mod.rs",
"new_path": "rita/src/rita_exit/rita_loop/mod.rs",
"diff": "@@ -18,6 +18,7 @@ use actix::prelude::{\nuse diesel::query_dsl::RunQueryDsl;\nuse exit_db::models;\nuse failure::Error;\n+use futures::future::Future;\nuse settin... | Rust | Apache License 2.0 | althea-net/althea_rs | Add timeout to the main rita loop
In this case I'm concerned about the syncronous actions on the exit
extending beyond the desired time period. Since the database connector
doesn't apparently have the concept of a timeout. |
20,244 | 29.04.2019 13:46:21 | 14,400 | 98daaef10076623c5b49f121eb1c20547d6bf266 | Update babel monitor to correct fee error
'fee' is a correct hex value for a route id, therefore we would
fail to parse values in the case that the route id contained 'fee'
becuase contains() was used rather than == | [
{
"change_type": "MODIFY",
"old_path": "babel_monitor/src/lib.rs",
"new_path": "babel_monitor/src/lib.rs",
"diff": "@@ -39,7 +39,7 @@ use crate::BabelMonitorError::*;\nfn find_babel_val(val: &str, line: &str) -> Result<String, Error> {\nlet mut iter = line.split(\" \");\nwhile let Some(entry) = iter... | Rust | Apache License 2.0 | althea-net/althea_rs | Update babel monitor to correct fee error
'fee' is a correct hex value for a route id, therefore we would
fail to parse values in the case that the route id contained 'fee'
becuase contains() was used rather than == |
20,244 | 30.04.2019 11:25:23 | 14,400 | 50091c5fa8d0658258aa35989d1694baa5030901 | Better logging for payments and oracle | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_common/oracle/mod.rs",
"new_path": "rita/src/rita_common/oracle/mod.rs",
"diff": "@@ -84,7 +84,7 @@ impl Handler<Update> for Oracle {\nlet oracle_enabled = payment_settings.price_oracle_enabled;\ndrop(payment_settings);\n- trace!(\"About to make ... | Rust | Apache License 2.0 | althea-net/althea_rs | Better logging for payments and oracle |
20,244 | 30.04.2019 11:48:51 | 14,400 | 4acce4604121aff3bb806744444afc35f0cef181 | Only modify the nonce when the error message calls for it | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_common/payment_controller/mod.rs",
"new_path": "rita/src/rita_common/payment_controller/mod.rs",
"diff": "@@ -203,9 +203,13 @@ impl PaymentController {\nErr(e) => {\nwarn!(\"Failed to send bandwidth payment {:?}\", e);\n- // once again this may n... | Rust | Apache License 2.0 | althea-net/althea_rs | Only modify the nonce when the error message calls for it |
20,244 | 30.04.2019 12:24:16 | 14,400 | 5ce037c4214a2c11a179b4d4edd1801650fd13b4 | Log the full node used when a payment fails | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_common/payment_controller/mod.rs",
"new_path": "rita/src/rita_common/payment_controller/mod.rs",
"diff": "@@ -202,7 +202,10 @@ impl PaymentController {\n}\nErr(e) => {\n- warn!(\"Failed to send bandwidth payment {:?}\", e);\n+ warn!(\n+ \"Failed ... | Rust | Apache License 2.0 | althea-net/althea_rs | Log the full node used when a payment fails |
20,244 | 30.04.2019 12:38:25 | 14,400 | 5e9f2d2c2c77eedfa340e73c9384c58069c914cd | Log even more info about successful payments
My specific goal of this is to be able to compare the total of
failed payments to successful payments over a period | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_common/payment_controller/mod.rs",
"new_path": "rita/src/rita_common/payment_controller/mod.rs",
"diff": "@@ -184,8 +184,8 @@ impl PaymentController {\n// return emtpy result, we're using messages anyways\nOk(msg) => {\ninfo!(\n- \"Payment with t... | Rust | Apache License 2.0 | althea-net/althea_rs | Log even more info about successful payments
My specific goal of this is to be able to compare the total of
failed payments to successful payments over a period |
20,244 | 01.05.2019 13:19:50 | 14,400 | 67dfed1826a002a0df00b1a0eb0220441febd533 | Dramatically simplify DebtKeeper | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_client/dashboard/neighbors.rs",
"new_path": "rita/src/rita_client/dashboard/neighbors.rs",
"diff": "@@ -146,7 +146,7 @@ fn merge_debts_and_neighbors(\n) {\nfor neighbor in neighbors {\nlet id = neighbor.identity.global;\n- debts.entry(id).or_inse... | Rust | Apache License 2.0 | althea-net/althea_rs | Dramatically simplify DebtKeeper |
20,244 | 01.05.2019 15:02:00 | 14,400 | 05dc12bb41e4222d9ffee88fa39196d284f34743 | Reduce log spam on the exits | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_common/debt_keeper/mod.rs",
"new_path": "rita/src/rita_common/debt_keeper/mod.rs",
"diff": "@@ -226,9 +226,10 @@ impl DebtKeeper {\n.to_int256()\n.ok_or_else(|| format_err!(\"Unable to convert amount to 256 bit signed integer\"))?;\nlet debt_data... | Rust | Apache License 2.0 | althea-net/althea_rs | Reduce log spam on the exits |
20,244 | 06.05.2019 11:10:36 | 14,400 | 190824d359cadbe198670ffb7649d2b5512505b8 | Send credits directly to DebtKeeper
Credit for payment was proxied for no good reason through payment_controller | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_common/payment_controller/mod.rs",
"new_path": "rita/src/rita_common/payment_controller/mod.rs",
"diff": "//! so long as we have not published it to a full node, once the payment is on\n//! the blockchain it's up to the reciever to validate that ... | Rust | Apache License 2.0 | althea-net/althea_rs | Send credits directly to DebtKeeper
Credit for payment was proxied for no good reason through payment_controller |
20,244 | 22.04.2019 16:15:19 | 14,400 | 4cf307c88672cd796f512954d0d1769e43831e4d | Add bandwidth and payments tracking features
This adds the UsageTracker module, which will track both bandwidth
usage and payments for graphing by the dashboard. Currently it is
not persistant. | [
{
"change_type": "MODIFY",
"old_path": "rita/src/client.rs",
"new_path": "rita/src/client.rs",
"diff": "@@ -57,6 +57,7 @@ use crate::rita_client::dashboard::neighbors::*;\nuse crate::rita_client::dashboard::notifications::*;\nuse crate::rita_client::dashboard::system_chain::*;\nuse crate::rita_clien... | Rust | Apache License 2.0 | althea-net/althea_rs | Add bandwidth and payments tracking features
This adds the UsageTracker module, which will track both bandwidth
usage and payments for graphing by the dashboard. Currently it is
not persistant. |
20,244 | 22.04.2019 16:44:58 | 14,400 | 26aeff3e781ac31cdc57fade99b00ad8760920df | Add documentation for tracking endpoints | [
{
"change_type": "MODIFY",
"old_path": "docs/api/router-dashboard.md",
"new_path": "docs/api/router-dashboard.md",
"diff": "@@ -1271,3 +1271,78 @@ Manually runs the update script\n`curl -v -XPOST http://192.168.10.1:4877/router/update`\n---\n+\n+## /usage/client\n+\n+Gets a history of client bandwid... | Rust | Apache License 2.0 | althea-net/althea_rs | Add documentation for tracking endpoints |
20,244 | 23.04.2019 07:47:57 | 14,400 | 9193ab4b977b2cde6aa9c95f4e02886ba8e03cca | Format txid's correctly
while uint256 is an accurate representaiton of a txid it requires
nontrivial formatting to be usefull, especially if you want to submit
it to a full node. This replaces the stored payments with their own
struct which provides txid's in a properly readable format. | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_client/dashboard/usage.rs",
"new_path": "rita/src/rita_client/dashboard/usage.rs",
"diff": "@@ -18,7 +18,7 @@ pub fn get_client_usage(\nkind: UsageType::Client,\n})\n.from_err()\n- .and_then(move |reply| Ok(Json(reply?)))\n+ .and_then(|reply| Ok(... | Rust | Apache License 2.0 | althea-net/althea_rs | Format txid's correctly
while uint256 is an accurate representaiton of a txid it requires
nontrivial formatting to be usefull, especially if you want to submit
it to a full node. This replaces the stored payments with their own
struct which provides txid's in a properly readable format. |
20,244 | 23.04.2019 10:10:54 | 14,400 | 27bfb3a2fd532b8aee4a59309bb95e8e2b365127 | Add persistance for usage history | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_common/usage_tracker/mod.rs",
"new_path": "rita/src/rita_common/usage_tracker/mod.rs",
"diff": "//!\n//! Persistant storage is planned but not currently implemented.\n+use crate::SETTING;\nuse actix::Actor;\nuse actix::Context;\nuse actix::Handle... | Rust | Apache License 2.0 | althea-net/althea_rs | Add persistance for usage history |
20,244 | 29.04.2019 14:35:10 | 14,400 | 066fcff8a858524bdb0218546a2e33e5ee656b2e | Track dao paymetns too | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_common/dao_manager/mod.rs",
"new_path": "rita/src/rita_common/dao_manager/mod.rs",
"diff": "//! to compute the amount it should pay at a time, these micropayments have the effect of pro-rating\n//! the DAO fee amount and preventing the router fro... | Rust | Apache License 2.0 | althea-net/althea_rs | Track dao paymetns too |
20,244 | 29.04.2019 14:38:48 | 14,400 | aea8a2c4bcb63683ad993caedf4db60bc9538170 | No non-verifiable unwraps in dao_manager | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_common/dao_manager/mod.rs",
"new_path": "rita/src/rita_common/dao_manager/mod.rs",
"diff": "@@ -62,12 +62,18 @@ impl Handler<Tick> for DAOManager {\nlet dao_settings = SETTING.get_dao();\nlet payment_settings = SETTING.get_payment();\nlet eth_pri... | Rust | Apache License 2.0 | althea-net/althea_rs | No non-verifiable unwraps in dao_manager |
20,244 | 06.05.2019 10:38:04 | 14,400 | 0102890019946f6c1a33b17d0fdfe1445c3cc12f | Track recieved payments too | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_common/payment_validator/mod.rs",
"new_path": "rita/src/rita_common/payment_validator/mod.rs",
"diff": "use crate::rita_common;\nuse crate::rita_common::debt_keeper::DebtKeeper;\nuse crate::rita_common::rita_loop::get_web3_server;\n+use crate::ri... | Rust | Apache License 2.0 | althea-net/althea_rs | Track recieved payments too |
20,244 | 06.05.2019 11:50:01 | 14,400 | c5a39897dd21a8c7438902a176e4d52f746441d3 | Instrument PaymentFailed flow | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_common/debt_keeper/mod.rs",
"new_path": "rita/src/rita_common/debt_keeper/mod.rs",
"diff": "@@ -108,18 +108,29 @@ impl Handler<PaymentFailed> for DebtKeeper {\nSome(entry) => {\n// no need to check for negative amount_int because we're converting... | Rust | Apache License 2.0 | althea-net/althea_rs | Instrument PaymentFailed flow |
20,244 | 06.05.2019 11:53:50 | 14,400 | fdd2b19e2bad82a91d8ef09a36a787a48f7f9fce | Minor clippy nit | [
{
"change_type": "MODIFY",
"old_path": "rita/src/client.rs",
"new_path": "rita/src/client.rs",
"diff": "@@ -175,11 +175,9 @@ fn main() {\n// If we are an an OpenWRT device try and rescue it from update issues\n// TODO remove in Beta 6\n- if KI.is_openwrt() {\n- if KI.check_cron().is_err() {\n+ if KI... | Rust | Apache License 2.0 | althea-net/althea_rs | Minor clippy nit |
20,244 | 06.05.2019 12:32:38 | 14,400 | 03f6d6f34628a3cd7fcb05ed452e7e8f49a383ff | Add timeouts to babel tcpstream operations
I've seen babel hang some in production, this adds a pretty reasonable
timeout to Babel read/write operations | [
{
"change_type": "MODIFY",
"old_path": "babel_monitor/src/lib.rs",
"new_path": "babel_monitor/src/lib.rs",
"diff": "#[macro_use]\nextern crate failure;\n-\n#[macro_use]\nextern crate log;\n+use bufstream::BufStream;\n+use failure::Error;\n+use ipnetwork::IpNetwork;\nuse std::collections::VecDeque;\n... | Rust | Apache License 2.0 | althea-net/althea_rs | Add timeouts to babel tcpstream operations
I've seen babel hang some in production, this adds a pretty reasonable
timeout to Babel read/write operations |
20,244 | 07.05.2019 10:53:58 | 14,400 | 03ab01ca6a3bd44940a1277cdecb3d1e6d3714dc | Reduce exit log spam
Missed this one last time, once again we have id's from the database
but no routes because the vast majority of historical signups will be
old routers that are no longer online. Leading to a few hundred lines
of warnings every loop | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_exit/traffic_watcher/mod.rs",
"new_path": "rita/src/rita_exit/traffic_watcher/mod.rs",
"diff": "@@ -285,7 +285,7 @@ pub fn watch<T: Read + Write>(\n// this can be caused by a peer that has not yet formed a babel route\n(Some(id), None, _) => warn... | Rust | Apache License 2.0 | althea-net/althea_rs | Reduce exit log spam
Missed this one last time, once again we have id's from the database
but no routes because the vast majority of historical signups will be
old routers that are no longer online. Leading to a few hundred lines
of warnings every loop |
20,244 | 08.05.2019 12:00:58 | 14,400 | 1e8fc0c30f485c64d1f54fce3bb9729cb24ca347 | More logging in payment received flow
Seeing some errors here in prod | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_common/debt_keeper/mod.rs",
"new_path": "rita/src/rita_common/debt_keeper/mod.rs",
"diff": "@@ -237,10 +237,9 @@ impl DebtKeeper {\n.to_int256()\n.ok_or_else(|| format_err!(\"Unable to convert amount to 256 bit signed integer\"))?;\nlet debt_data... | Rust | Apache License 2.0 | althea-net/althea_rs | More logging in payment received flow
Seeing some errors here in prod |
20,244 | 08.05.2019 14:45:22 | 14,400 | 136673d551a41bc335d7e2095b7aa5cd22fea277 | Payments received should also be a uint | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_common/debt_keeper/mod.rs",
"new_path": "rita/src/rita_common/debt_keeper/mod.rs",
"diff": "@@ -28,7 +28,7 @@ pub struct NodeDebtData {\npub total_payment_received: Uint256,\npub total_payment_sent: Uint256,\npub debt: Int256,\n- pub incoming_pay... | Rust | Apache License 2.0 | althea-net/althea_rs | Payments received should also be a uint |
20,249 | 07.05.2019 14:44:12 | 25,200 | 3428d90f1b1cf37eaf251278cd163e81c4f86075 | Endpoints for getting/setting dao_fee | [
{
"change_type": "MODIFY",
"old_path": "rita/src/client.rs",
"new_path": "rita/src/client.rs",
"diff": "@@ -247,6 +247,8 @@ fn main() {\n.route(\"/exits/{name}/select\", Method::POST, select_exit)\n.route(\"/local_fee\", Method::GET, get_local_fee)\n.route(\"/local_fee/{fee}\", Method::POST, set_loc... | Rust | Apache License 2.0 | althea-net/althea_rs | Endpoints for getting/setting dao_fee |
20,244 | 14.05.2019 18:40:57 | 14,400 | 298f31fc54b7112baa3551ab6ad37fa2f8f0862a | More exit logging spam tweaks | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_exit/database/mod.rs",
"new_path": "rita/src/rita_exit/database/mod.rs",
"diff": "@@ -248,7 +248,7 @@ fn low_balance_notification(\nconfig: Option<ExitVerifSettings>,\nconn: &PgConnection,\n) {\n- info!(\"Checking low balance nofication\");\n+ tr... | Rust | Apache License 2.0 | althea-net/althea_rs | More exit logging spam tweaks |
20,244 | 03.05.2019 21:08:57 | 14,400 | 75ad7633d061c9e0c499bd4a988068cd165d1046 | Reboot the router after port toggling | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_client/dashboard/interfaces.rs",
"new_path": "rita/src/rita_client/dashboard/interfaces.rs",
"diff": "//! A generalized interface for modifying networking interface assignments using UCI\nuse crate::rita_common::peer_listener::PeerListener;\n-use... | Rust | Apache License 2.0 | althea-net/althea_rs | Reboot the router after port toggling |
20,244 | 15.05.2019 10:09:00 | 14,400 | c0534e7dd2e3985e1fb2a7a8074ba6fc0cb11aba | Add DAO fee endpoints to the exit
Questionably useful, but in theory this could happen and it scilences
the warning | [
{
"change_type": "MODIFY",
"old_path": "rita/src/exit.rs",
"new_path": "rita/src/exit.rs",
"diff": "@@ -232,12 +232,11 @@ fn main() {\nserver::new(|| {\nApp::new()\n.middleware(middleware::Headers)\n- // assuming exit nodes dont need wifi\n- //.resource(\"/wifisettings\", |r| r.route().filter(pred::... | Rust | Apache License 2.0 | althea-net/althea_rs | Add DAO fee endpoints to the exit
Questionably useful, but in theory this could happen and it scilences
the warning |
20,244 | 16.05.2019 14:45:51 | 14,400 | c6f286102930f75380016fe794809c78672aeb3b | Block age check reversed
Pretty bad bug here, all payments would be dropped as too old unless
they where actually too old. | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_common/payment_validator/mod.rs",
"new_path": "rita/src/rita_common/payment_validator/mod.rs",
"diff": "@@ -305,7 +305,7 @@ fn payment_is_old(chain_height: Uint256, tx_height: Option<Uint256>) -> bool {\nif tx_block > chain_height {\nfalse\n} els... | Rust | Apache License 2.0 | althea-net/althea_rs | Block age check reversed
Pretty bad bug here, all payments would be dropped as too old unless
they where actually too old. |
20,244 | 16.05.2019 20:06:12 | 14,400 | 466f92afc6ef411aa8d9162ff6c925a8a8a5e4b5 | Always log transactions in readable format | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_common/network_endpoints/mod.rs",
"new_path": "rita/src/rita_common/network_endpoints/mod.rs",
"diff": "@@ -47,17 +47,10 @@ pub fn make_payments(\n) -> Box<dyn Future<Item = HttpResponse, Error = Error>> {\nlet txid = pmt.0.txid.clone();\n- info!... | Rust | Apache License 2.0 | althea-net/althea_rs | Always log transactions in readable format |
20,244 | 16.05.2019 20:16:32 | 14,400 | 67f1baf139b8b2ed5302a148593be7f85cb719cc | Crash and hope for recovery when out of ports | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_common/tunnel_manager/mod.rs",
"new_path": "rita/src/rita_common/tunnel_manager/mod.rs",
"diff": "@@ -541,7 +541,11 @@ impl TunnelManager {\nmatch (port, udp_table) {\n(Some(p), Ok(used_ports)) => {\nif used_ports.contains(&p) {\n- warn!(\"We tri... | Rust | Apache License 2.0 | althea-net/althea_rs | Crash and hope for recovery when out of ports |
20,244 | 17.05.2019 09:34:10 | 14,400 | cd61be4d965124e615a665dba163b9298ac0f4bf | Fix DAO fee update
u32 is way too small. | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_common/dao_manager/mod.rs",
"new_path": "rita/src/rita_common/dao_manager/mod.rs",
"diff": "@@ -77,10 +77,13 @@ impl Handler<Tick> for DAOManager {\nlet we_have_a_dao = !dao_addresses.is_empty();\nlet should_pay =\n(Int256::from(self.last_payment... | Rust | Apache License 2.0 | althea-net/althea_rs | Fix DAO fee update
u32 is way too small. |
20,244 | 17.05.2019 11:15:01 | 14,400 | 181b75ad35fa1842f44f7eeb66b9c56bb8256c3b | Update nonce during withdraw flow
We are no longer constantly updating our nonce, meaning we need
special handling if we need to update it during a withdraw. | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_common/dashboard/wallet.rs",
"new_path": "rita/src/rita_common/dashboard/wallet.rs",
"diff": "+use crate::rita_common::oracle::update_nonce;\nuse crate::rita_common::rita_loop::get_web3_server;\nuse crate::SETTING;\nuse ::actix_web::http::StatusC... | Rust | Apache License 2.0 | althea-net/althea_rs | Update nonce during withdraw flow
We are no longer constantly updating our nonce, meaning we need
special handling if we need to update it during a withdraw. |
20,244 | 17.05.2019 12:00:14 | 14,400 | f396d949e601a75304d33de775f334299937073b | Update port flow to randomize requests
The errors I keep seeing don't really match the function definitions,
somehow we get into a loop requesting the same port despite poping
it off and pushing it backonto the end. | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_common/tunnel_manager/mod.rs",
"new_path": "rita/src/rita_common/tunnel_manager/mod.rs",
"diff": "@@ -19,6 +19,8 @@ use babel_monitor::open_babel_stream;\nuse babel_monitor::Babel;\nuse failure::Error;\nuse futures::Future;\n+use rand::thread_rng... | Rust | Apache License 2.0 | althea-net/althea_rs | Update port flow to randomize requests
The errors I keep seeing don't really match the function definitions,
somehow we get into a loop requesting the same port despite poping
it off and pushing it backonto the end. |
20,244 | 17.05.2019 13:57:49 | 14,400 | ea724aa131111d41501949e04ed6aca6d6cb9c26 | Bump for Beta 5 | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_common/dashboard/own_info.rs",
"new_path": "rita/src/rita_common/dashboard/own_info.rs",
"diff": "@@ -6,7 +6,7 @@ use clarity::Address;\nuse failure::Error;\nuse num256::{Int256, Uint256};\n-pub static READABLE_VERSION: &str = \"Beta 4 RC6\";\n+p... | Rust | Apache License 2.0 | althea-net/althea_rs | Bump for Beta 5 |
20,244 | 17.05.2019 22:08:28 | 14,400 | aa7cca6a0be2a7c5db29f746ed0a36b8de1dbfc3 | Don't log so many geoip operations | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_exit/database/geoip.rs",
"new_path": "rita/src/rita_exit/database/geoip.rs",
"diff": "@@ -80,7 +80,7 @@ struct CountryDetails {\n/// get ISO country code from ip, consults a in memory cache\npub fn get_country(ip: &IpAddr, cache: &mut HashMap<IpA... | Rust | Apache License 2.0 | althea-net/althea_rs | Don't log so many geoip operations |
20,244 | 17.05.2019 22:08:48 | 14,400 | 06a240a951d772712b628a75b51082c9ff21cd5c | Only connect to babel if tunnels actually need removal | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_common/tunnel_manager/mod.rs",
"new_path": "rita/src/rita_common/tunnel_manager/mod.rs",
"diff": "@@ -339,20 +339,6 @@ impl Message for TriggerGC {\nimpl Handler<TriggerGC> for TunnelManager {\ntype Result = Result<(), Error>;\nfn handle(&mut sel... | Rust | Apache License 2.0 | althea-net/althea_rs | Only connect to babel if tunnels actually need removal |
20,244 | 19.05.2019 07:17:29 | 14,400 | 55a834a918fe2b9bfa2fccd8a0aec216d96933bd | Batch DebtKeeper updates | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_common/debt_keeper/mod.rs",
"new_path": "rita/src/rita_common/debt_keeper/mod.rs",
"diff": "@@ -13,6 +13,7 @@ use crate::rita_common::payment_controller;\nuse crate::rita_common::payment_controller::PaymentController;\nuse crate::rita_common::pay... | Rust | Apache License 2.0 | althea-net/althea_rs | Batch DebtKeeper updates |
20,244 | 19.05.2019 07:18:20 | 14,400 | b2554d06380d08a40ca030030f92173dc3c1cf72 | Reduce babel operation timeout | [
{
"change_type": "MODIFY",
"old_path": "babel_monitor/src/lib.rs",
"new_path": "babel_monitor/src/lib.rs",
"diff": "@@ -15,7 +15,7 @@ use std::net::TcpStream;\nuse std::str;\nuse std::time::Duration;\n-const BABEL_OPERATION_TIMEOUT: Duration = Duration::from_secs(4);\n+const BABEL_OPERATION_TIMEOUT:... | Rust | Apache License 2.0 | althea-net/althea_rs | Reduce babel operation timeout |
20,244 | 19.05.2019 19:45:56 | 14,400 | 221a3cb381b31ce901c6968cb8d71a3a4ecd7c6b | Improve logging of tunnel state changes | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_common/tunnel_manager/mod.rs",
"new_path": "rita/src/rita_common/tunnel_manager/mod.rs",
"diff": "@@ -875,7 +875,10 @@ fn tunnel_state_change(\ncontinue;\n}\nPaymentState::Overdue => {\n- trace!(\"Tunnel {:?} has returned to a paid state.\", tunn... | Rust | Apache License 2.0 | althea-net/althea_rs | Improve logging of tunnel state changes |
20,244 | 20.05.2019 07:50:14 | 14,400 | c08f333b04caf3c880e4e691837e0ea1a11d5021 | Bump payment timeout to an hour
With the way Eth is working right now this is much more reasonable | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_common/payment_validator/mod.rs",
"new_path": "rita/src/rita_common/payment_validator/mod.rs",
"diff": "@@ -26,11 +26,12 @@ use std::time::{Duration, Instant};\nuse web3::client::Web3;\nuse web3::types::TransactionResponse;\n-// Discard payments ... | Rust | Apache License 2.0 | althea-net/althea_rs | Bump payment timeout to an hour
With the way Eth is working right now this is much more reasonable |
20,244 | 20.05.2019 12:09:31 | 14,400 | cab6df42dc178cf1aa0b4a6070b0d2ee095373ab | Log bandwidth limit updates and database connection time | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_common/tunnel_manager/mod.rs",
"new_path": "rita/src/rita_common/tunnel_manager/mod.rs",
"diff": "@@ -928,6 +928,7 @@ fn tunnel_state_change(\n/// since we can't figure out how to combine interfaces badnwidth budgets we're subdividing it\n/// her... | Rust | Apache License 2.0 | althea-net/althea_rs | Log bandwidth limit updates and database connection time |
20,244 | 20.05.2019 17:27:18 | 14,400 | 844e1149d1228508bfa5e18c8087d40fdb771e83 | Bump for Beta5 RC2 | [
{
"change_type": "MODIFY",
"old_path": "Cargo.lock",
"new_path": "Cargo.lock",
"diff": "@@ -173,7 +173,7 @@ dependencies = [\nname = \"althea_rs\"\nversion = \"0.1.10\"\ndependencies = [\n- \"rita 0.4.3\",\n+ \"rita 0.4.4\",\n]\n[[package]]\n@@ -2062,7 +2062,7 @@ dependencies = [\n[[package]]\nname ... | Rust | Apache License 2.0 | althea-net/althea_rs | Bump for Beta5 RC2 |
20,244 | 20.05.2019 17:45:45 | 14,400 | b9649525e3d2aefff5820b9b05520d7c05dc8d06 | Use Lettre crate | [
{
"change_type": "MODIFY",
"old_path": "Cargo.lock",
"new_path": "Cargo.lock",
"diff": "@@ -667,8 +667,8 @@ source = \"registry+https://github.com/rust-lang/crates.io-index\"\n[[package]]\nname = \"email\"\n-version = \"0.0.19\"\n-source = \"git+https://github.com/lettre/rust-email#3086d7bcda2c3b3fa... | Rust | Apache License 2.0 | althea-net/althea_rs | Use Lettre crate |
20,244 | 20.05.2019 17:57:29 | 14,400 | a331a1b73339f770c1d2baa1c1e75e825493ed8f | Log the full node for all request failures
Starting to suspect the recent exit lag issues are centered here | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_common/dashboard/wallet.rs",
"new_path": "rita/src/rita_common/dashboard/wallet.rs",
"diff": "@@ -65,7 +65,7 @@ pub fn withdraw(path: Path<(Address, u64)>) -> Box<dyn Future<Item = HttpRespons\nHttpResponse::Ok().json(format!(\"txid:{:#066x}\", t... | Rust | Apache License 2.0 | althea-net/althea_rs | Log the full node for all request failures
Starting to suspect the recent exit lag issues are centered here |
20,244 | 21.05.2019 07:30:37 | 14,400 | 986333ba80103c973ea7ee063bcffbf0694f59ca | Move Exit loop to it's own thread
See the new comment at the top of the rita_exit rita_loop file
for a full explanation of what's been done here. It's rather involved | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_exit/rita_loop/mod.rs",
"new_path": "rita/src/rita_exit/rita_loop/mod.rs",
"diff": "//! tied together with message calls.\n//!\n//! In this loop the exit checks it's database for registered users and deploys the endpoint for\n-//! their exit tunn... | Rust | Apache License 2.0 | althea-net/althea_rs | Move Exit loop to it's own thread
See the new comment at the top of the rita_exit rita_loop file
for a full explanation of what's been done here. It's rather involved |
20,244 | 21.05.2019 11:08:34 | 14,400 | a0ff6dc9cb4da589e1c94cb71b5e54b641a0bc11 | Increase registration timeout dramatically
This seems to be much much slower than its should be on the exit side
adding logging on the exit and more leeway on the client. | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_client/exit_manager/mod.rs",
"new_path": "rita/src/rita_client/exit_manager/mod.rs",
"diff": "@@ -120,7 +120,7 @@ pub fn send_exit_setup_request(\nstream.from_err().and_then(move |stream| {\nclient::post(&endpoint)\n- .timeout(Duration::from_secs... | Rust | Apache License 2.0 | althea-net/althea_rs | Increase registration timeout dramatically
This seems to be much much slower than its should be on the exit side
adding logging on the exit and more leeway on the client. |
20,244 | 21.05.2019 13:42:29 | 14,400 | 3dfd1036e63831ec492b1c08591a493bebe811b7 | Exit loop every 30 seconds
It doesn't seem like the exit loop reliably finishes in 5 seconds
anymore, so lets just bump this | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_exit/rita_loop/mod.rs",
"new_path": "rita/src/rita_exit/rita_loop/mod.rs",
"diff": "@@ -48,7 +48,7 @@ pub struct RitaSyncLoop {\n}\n// the speed in seconds for the exit loop\n-pub const EXIT_LOOP_SPEED: u64 = 5;\n+pub const EXIT_LOOP_SPEED: u64 =... | Rust | Apache License 2.0 | althea-net/althea_rs | Exit loop every 30 seconds
It doesn't seem like the exit loop reliably finishes in 5 seconds
anymore, so lets just bump this |
20,244 | 21.05.2019 16:08:22 | 14,400 | 4e3240429702623f14d55a1a7a9cfa15f07ae039 | Split rita common loop into fast and slow | [
{
"change_type": "MODIFY",
"old_path": "rita/src/client.rs",
"new_path": "rita/src/client.rs",
"diff": "@@ -48,6 +48,9 @@ mod middleware;\nmod rita_client;\nmod rita_common;\n+use rita_common::rita_loop::fast_loop::RitaFastLoop;\n+use rita_common::rita_loop::slow_loop::RitaSlowLoop;\n+\nuse crate::r... | Rust | Apache License 2.0 | althea-net/althea_rs | Split rita common loop into fast and slow |
20,244 | 22.05.2019 09:43:43 | 14,400 | 310631e177e390e42dcce7cd112d49a3ea7e2ecb | Update timeouts to reflect slow loop
Many of these timeouts can now be safely increased without any risk
of a 'event leak' where we spawn events faster than they can timeout | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_common/oracle/mod.rs",
"new_path": "rita/src/rita_common/oracle/mod.rs",
"diff": "@@ -61,7 +61,8 @@ impl Default for Oracle {\n}\n}\n-pub const ORACLE_TIMEOUT: Duration = Duration::from_secs(1);\n+/// How long we wait for a response from the full... | Rust | Apache License 2.0 | althea-net/althea_rs | Update timeouts to reflect slow loop
Many of these timeouts can now be safely increased without any risk
of a 'event leak' where we spawn events faster than they can timeout |
20,244 | 22.05.2019 10:33:10 | 14,400 | db91e8b0557ffb376c4d144ef62cb5e570579120 | Fix obvious port leak in TunnelManager
In retrospect adding the timeout here coresponds quite well to when
we started to see more crashes due to port allocation errors. It's a
testiment to the speed and reliability of DNS that we ran out of ports
infreqently enough that I didn't notice this right away. | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_common/tunnel_manager/mod.rs",
"new_path": "rita/src/rita_common/tunnel_manager/mod.rs",
"diff": "@@ -622,12 +622,13 @@ impl TunnelManager {\n}\nErr(e) => {\nwarn!(\"Actor mailbox failure from DNS resolver! {:?}\", e);\n- // We might need a port ... | Rust | Apache License 2.0 | althea-net/althea_rs | Fix obvious port leak in TunnelManager
In retrospect adding the timeout here coresponds quite well to when
we started to see more crashes due to port allocation errors. It's a
testiment to the speed and reliability of DNS that we ran out of ports
infreqently enough that I didn't notice this right away. |
20,244 | 22.05.2019 12:29:14 | 14,400 | d01a6b7f6cf6a2c48e09279cf1492a13584c283e | Bump for Beta 5 rc3 | [
{
"change_type": "MODIFY",
"old_path": "rita/Cargo.toml",
"new_path": "rita/Cargo.toml",
"diff": "[package]\nname = \"rita\"\n-version = \"0.4.4\"\n+version = \"0.4.5\"\nauthors = [\"Jehan <jehan.tremback@gmail.com>\", \"Ben <wangben3@gmail.com>\"]\nbuild = \"build.rs\"\nedition = \"2018\"\n"
},
... | Rust | Apache License 2.0 | althea-net/althea_rs | Bump for Beta 5 rc3 |
20,244 | 23.05.2019 15:40:12 | 14,400 | 8f204894679e8d4a6a5c0b4d1abfc3d364ca28be | Update web30 to prevent crashes | [
{
"change_type": "MODIFY",
"old_path": "Cargo.lock",
"new_path": "Cargo.lock",
"diff": "@@ -1969,7 +1969,7 @@ dependencies = [\n\"tokio-codec 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)\",\n\"tokio-io 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)\",\n\"trust-dns-re... | Rust | Apache License 2.0 | althea-net/althea_rs | Update web30 to prevent crashes |
20,244 | 24.05.2019 08:33:23 | 14,400 | 78bbd51916697a82f0b69bc6dc921bb80ea85645 | Log statements looking for exit client leaks
We're continuing to see steady time growth in the fully sync
exit setup loop, despite no single command taking more than one
second. So let start looking for client number growth | [
{
"change_type": "MODIFY",
"old_path": "althea_kernel_interface/src/exit_server_tunnel.rs",
"new_path": "althea_kernel_interface/src/exit_server_tunnel.rs",
"diff": "@@ -8,7 +8,7 @@ use failure::Error;\nuse std::net::IpAddr;\n-#[derive(Debug)]\n+#[derive(Debug, Clone, Copy)]\npub struct ExitClient {... | Rust | Apache License 2.0 | althea-net/althea_rs | Log statements looking for exit client leaks
We're continuing to see steady time growth in the fully sync
exit setup loop, despite no single command taking more than one
second. So let start looking for client number growth |
20,244 | 24.05.2019 10:03:10 | 14,400 | b4880e6567e9daa7e7dc813ef7ff5b8ae48d97f6 | Use git lettre
Lettre has yet to update the crate for breaking changes making their
way into Beta right now. So we'll have to use git | [
{
"change_type": "MODIFY",
"old_path": "Cargo.lock",
"new_path": "Cargo.lock",
"diff": "@@ -1099,12 +1099,10 @@ source = \"registry+https://github.com/rust-lang/crates.io-index\"\n[[package]]\nname = \"lettre\"\nversion = \"0.9.1\"\n-source = \"registry+https://github.com/rust-lang/crates.io-index\"... | Rust | Apache License 2.0 | althea-net/althea_rs | Use git lettre
Lettre has yet to update the crate for breaking changes making their
way into Beta right now. So we'll have to use git |
20,244 | 24.05.2019 23:37:55 | 14,400 | e19e2dc2e18bf0f1e215bcd0dd7162d4563b88dd | Time has told, update the nonce in oracle
This turned out to not be a great idea after some other change
caused full nodes to lie to us about our transactions nonces | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_common/oracle/mod.rs",
"new_path": "rita/src/rita_common/oracle/mod.rs",
"diff": "@@ -80,9 +80,7 @@ impl Handler<Update> for Oracle {\ninfo!(\"About to make web3 requests to {}\", full_node);\nupdate_balance(our_address, &web3, full_node.clone())... | Rust | Apache License 2.0 | althea-net/althea_rs | Time has told, update the nonce in oracle
This turned out to not be a great idea after some other change
caused full nodes to lie to us about our transactions nonces |
20,244 | 27.05.2019 18:48:03 | 14,400 | 1b91a771cba5a47e720f6093665ab7bc56adb795 | More efficient flow existance checking
Results in about a 15x performance improvement in this section of code | [
{
"change_type": "MODIFY",
"old_path": "althea_kernel_interface/src/exit_server_tunnel.rs",
"new_path": "althea_kernel_interface/src/exit_server_tunnel.rs",
"diff": "@@ -56,6 +56,7 @@ impl dyn KernelInterface {\ninfo!(\"wg_exit has {} peers\", wg_peers.len());\nfor i in wg_peers {\nif !client_pubkey... | Rust | Apache License 2.0 | althea-net/althea_rs | More efficient flow existance checking
Results in about a 15x performance improvement in this section of code |
20,244 | 27.05.2019 19:57:55 | 14,400 | 961b9435a8140fb91d33c8e789c1fed8d6e3c277 | Check for client uniqueness during setup | [
{
"change_type": "MODIFY",
"old_path": "althea_kernel_interface/src/exit_server_tunnel.rs",
"new_path": "althea_kernel_interface/src/exit_server_tunnel.rs",
"diff": "use super::{KernelInterface, KernelInterfaceError};\n-\nuse althea_types::WgKey;\n-\n-use std::collections::HashSet;\n-\n-use failure:... | Rust | Apache License 2.0 | althea-net/althea_rs | Check for client uniqueness during setup |
20,244 | 27.05.2019 20:22:43 | 14,400 | d46c427e5557ce3dce6357fc9efac19d0f91f518 | Only run exit setup when the clients list changes | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_exit/database/mod.rs",
"new_path": "rita/src/rita_exit/database/mod.rs",
"diff": "@@ -46,6 +46,7 @@ use std::net::IpAddr;\nuse std::time::Instant;\nuse std::time::{Duration, SystemTime, UNIX_EPOCH};\nuse std::collections::HashSet;\n+use althea_ke... | Rust | Apache License 2.0 | althea-net/althea_rs | Only run exit setup when the clients list changes |
20,244 | 28.05.2019 07:29:26 | 14,400 | 71b3cfdcab9e52c9eb3f31ef9ca86af29042839e | Add debts reset endpoint | [
{
"change_type": "MODIFY",
"old_path": "docs/api/router-dashboard.md",
"new_path": "docs/api/router-dashboard.md",
"diff": "@@ -702,6 +702,31 @@ Format:\n---\n+## /debts/reset\n+\n+Posting a JSON identity object to this endpoint will reset the debt of the provided identity to\n+zero. Use the /debts/... | Rust | Apache License 2.0 | althea-net/althea_rs | Add debts reset endpoint |
20,244 | 28.05.2019 14:34:47 | 14,400 | 34a6ab7ed1f87e2e1cd9d6657ca967c8ea0455f2 | Bump for Beta 5 RC5 | [
{
"change_type": "MODIFY",
"old_path": "Cargo.lock",
"new_path": "Cargo.lock",
"diff": "@@ -173,7 +173,7 @@ dependencies = [\nname = \"althea_rs\"\nversion = \"0.1.10\"\ndependencies = [\n- \"rita 0.4.6\",\n+ \"rita 0.4.7\",\n]\n[[package]]\n@@ -1917,7 +1917,7 @@ dependencies = [\n[[package]]\nname ... | Rust | Apache License 2.0 | althea-net/althea_rs | Bump for Beta 5 RC5 |
20,244 | 29.05.2019 09:07:28 | 14,400 | 2e6f3ebef700ac2f2a6946c3e0b71d20068007f4 | Cache wg lookups for region validation | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_exit/database/geoip.rs",
"new_path": "rita/src/rita_exit/database/geoip.rs",
"diff": "@@ -42,6 +42,7 @@ pub struct IpPair {\n/// gets the gateway ip for a given set of mesh IPs, inactive addresses will simply\n/// not appear in the result vec\npu... | Rust | Apache License 2.0 | althea-net/althea_rs | Cache wg lookups for region validation |
20,244 | 04.06.2019 14:27:34 | 14,400 | 7edfac6e6fe457f1cda0ea4287007733c68d902a | Clean up main files and bump worker counts | [
{
"change_type": "MODIFY",
"old_path": "rita/src/client.rs",
"new_path": "rita/src/client.rs",
"diff": "@@ -34,7 +34,6 @@ use settings::FileWrite;\nuse settings::client::{RitaClientSettings, RitaSettingsStruct};\nuse settings::RitaCommonSettings;\n-use actix::registry::SystemService;\nuse actix_web:... | Rust | Apache License 2.0 | althea-net/althea_rs | Clean up main files and bump worker counts |
20,244 | 30.05.2019 08:38:39 | 14,400 | 9bc6fc8fcf4da2d21b677bad96c12b33ac87267a | Async Babel monitor | [
{
"change_type": "MODIFY",
"old_path": "Cargo.lock",
"new_path": "Cargo.lock",
"diff": "@@ -253,9 +253,13 @@ dependencies = [\n\"bufstream 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)\",\n\"env_logger 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)\",\n\"failure 0.1.5 ... | Rust | Apache License 2.0 | althea-net/althea_rs | Async Babel monitor |
20,244 | 30.05.2019 08:41:13 | 14,400 | 60f90d21cafd45e02c448651b9d37615640ea5df | Use Vec instead of VecDeque | [
{
"change_type": "MODIFY",
"old_path": "babel_monitor/src/lib.rs",
"new_path": "babel_monitor/src/lib.rs",
"diff": "@@ -10,7 +10,6 @@ use futures::future::result as future_result;\nuse futures::future::Either;\nuse futures::future::Future;\nuse ipnetwork::IpNetwork;\n-use std::collections::VecDeque;... | Rust | Apache License 2.0 | althea-net/althea_rs | Use Vec instead of VecDeque |
20,244 | 30.05.2019 09:38:53 | 14,400 | 838702341b430e197efdf0ae356f03be7cad5d99 | Update clu to use async babel | [
{
"change_type": "MODIFY",
"old_path": "Cargo.lock",
"new_path": "Cargo.lock",
"diff": "@@ -435,10 +435,11 @@ dependencies = [\n\"clarity 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)\",\n\"env_logger 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)\",\n\"failure 0.1.5 ... | Rust | Apache License 2.0 | althea-net/althea_rs | Update clu to use async babel |
20,244 | 30.05.2019 18:25:29 | 14,400 | dd50d01fb35c9ea216ac61ec33552edf806d7d97 | Move price setting into Rita
Just not viable to do this async without an arbiter around | [
{
"change_type": "MODIFY",
"old_path": "clu/Cargo.toml",
"new_path": "clu/Cargo.toml",
"diff": "@@ -8,7 +8,6 @@ edition = \"2018\"\nsettings = { path = \"../settings\" }\nalthea_kernel_interface = { path = \"../althea_kernel_interface\" }\nalthea_types = { path = \"../althea_types\" }\n-babel_monito... | Rust | Apache License 2.0 | althea-net/althea_rs | Move price setting into Rita
Just not viable to do this async without an arbiter around |
20,244 | 30.05.2019 18:25:58 | 14,400 | 1c57883e3fb5e01c9eb82a9ebe71f693caa08388 | Remove prelude from dashboard imports | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_client/dashboard/interfaces.rs",
"new_path": "rita/src/rita_client/dashboard/interfaces.rs",
"diff": "@@ -4,7 +4,7 @@ use crate::rita_common::peer_listener::UnListen;\nuse crate::ARGS;\nuse crate::KI;\nuse crate::SETTING;\n-use ::actix::prelude::... | Rust | Apache License 2.0 | althea-net/althea_rs | Remove prelude from dashboard imports |
20,244 | 31.05.2019 11:58:01 | 14,400 | a790731e76e813d72e16c067f98c4ac53596a0a9 | Fix opt level
This keeps sneaking in | [
{
"change_type": "MODIFY",
"old_path": "Cargo.toml",
"new_path": "Cargo.toml",
"diff": "@@ -14,7 +14,7 @@ rita = { path = \"./rita\" }\nmembers = [\"althea_kernel_interface\", \"bounty_hunter\", \"settings\", \"clu\", \"exit_db\"]\n[profile.release]\n-opt-level = 2\n+opt-level = \"z\"\nlto = true\nc... | Rust | Apache License 2.0 | althea-net/althea_rs | Fix opt level
This keeps sneaking in |
20,244 | 31.05.2019 11:59:25 | 14,400 | aef2c938237a04f1dbb90684187c3d2e7209b8fd | Add module comment to Babel Manager | [
{
"change_type": "MODIFY",
"old_path": "babel_monitor/src/lib.rs",
"new_path": "babel_monitor/src/lib.rs",
"diff": "+//! Babel monitor is an async futures based interface for the Babeld management interface\n+//! it provides abastractions over the major data this interface provides and an async\n+//... | Rust | Apache License 2.0 | althea-net/althea_rs | Add module comment to Babel Manager |
20,244 | 31.05.2019 12:02:25 | 14,400 | 4427a72198c5d58ce5b718251f1e554679ef5318 | Add warnings for unhandled errors | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_common/tunnel_manager/mod.rs",
"new_path": "rita/src/rita_common/tunnel_manager/mod.rs",
"diff": "@@ -189,7 +189,9 @@ impl Tunnel {\nmonitor(stream, &iface_name)\n})\n})\n- .then(|res| Ok(())),\n+ .then(|res| {\n+ error!(\"Monitoring tunnel {} ha... | Rust | Apache License 2.0 | althea-net/althea_rs | Add warnings for unhandled errors |
20,244 | 31.05.2019 13:29:26 | 14,400 | f1933dca2c438339a53fc1b3c1b2c1e82adfff3a | Add warnings for listen failures | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_common/tunnel_manager/mod.rs",
"new_path": "rita/src/rita_common/tunnel_manager/mod.rs",
"diff": "@@ -184,13 +184,13 @@ impl Tunnel {\nopen_babel_stream(babel_port)\n.from_err()\n.and_then(move |stream| {\n- start_connection(stream).then(move |st... | Rust | Apache License 2.0 | althea-net/althea_rs | Add warnings for listen failures |
20,244 | 31.05.2019 13:29:34 | 14,400 | fd813663befbaf800116744d2f175f2feff1222d | Clean up neighbors endpoint | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_client/dashboard/neighbors.rs",
"new_path": "rita/src/rita_client/dashboard/neighbors.rs",
"diff": "-use crate::rita_common::dashboard::Dashboard;\nuse crate::rita_common::debt_keeper::{DebtKeeper, Dump, NodeDebtData};\nuse crate::rita_common::tu... | Rust | Apache License 2.0 | althea-net/althea_rs | Clean up neighbors endpoint |
20,244 | 31.05.2019 17:50:12 | 14,400 | 73ba25098eb5971fdbaae19bce9b4dea4bb4b1a1 | Add slowdown to integraton test | [
{
"change_type": "MODIFY",
"old_path": "integration-tests/rita.py",
"new_path": "integration-tests/rita.py",
"diff": "@@ -945,6 +945,7 @@ def main():\n(time.time() - start_time, CONVERGENCE_DELAY, interval))\nprint(\"Test reachabibility and optimum routes...\")\n+ time.sleep(120)\nduration = time.ti... | Rust | Apache License 2.0 | althea-net/althea_rs | Add slowdown to integraton test |
20,244 | 01.06.2019 09:25:20 | 14,400 | e32778046ab232ea6245028069570b74315c3731 | Don't panic during babel connection issues
It's unwise to panic of babel is mometarily unavailable. My main
concern here is that we don't check that babel is running properly
on startup, which violates the 'fail fast' mantra you want on system
startup. | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_client/dashboard/exits.rs",
"new_path": "rita/src/rita_client/dashboard/exits.rs",
"diff": "@@ -74,8 +74,7 @@ impl Handler<GetExitInfo> for Dashboard {\nopen_babel_stream(babel_port)\n.from_err()\n.and_then(move |stream| {\n- start_connection(str... | Rust | Apache License 2.0 | althea-net/althea_rs | Don't panic during babel connection issues
It's unwise to panic of babel is mometarily unavailable. My main
concern here is that we don't check that babel is running properly
on startup, which violates the 'fail fast' mantra you want on system
startup. |
20,244 | 01.06.2019 18:15:08 | 14,400 | f89f3945104639560499530bfbe1d381d1684fd6 | Add timeouts to all regularly spawned Babel operations
Some babel operations, like a tunnel listen or unlisten we want to wait
around forever if at all possible. Others like the regularly spawned listen
operations can and should fail quickly. | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_client/exit_manager/mod.rs",
"new_path": "rita/src/rita_client/exit_manager/mod.rs",
"diff": "@@ -45,6 +45,7 @@ use std::time::Duration;\nuse syslog::Error as LogError;\nuse syslog::{init_udp, Facility};\nuse tokio::net::TcpStream as TokioTcpStre... | Rust | Apache License 2.0 | althea-net/althea_rs | Add timeouts to all regularly spawned Babel operations
Some babel operations, like a tunnel listen or unlisten we want to wait
around forever if at all possible. Others like the regularly spawned listen
operations can and should fail quickly. |
20,244 | 04.06.2019 09:38:46 | 14,400 | 02cc948060c8d1a2ccdb3a16954528aa1e0977f9 | Refactor exit signup flow to avoid .wait()
Exit signup and parts of the exit loop are now async to accomodate
async babel | [
{
"change_type": "MODIFY",
"old_path": "Cargo.lock",
"new_path": "Cargo.lock",
"diff": "@@ -65,7 +65,7 @@ dependencies = [\n[[package]]\nname = \"actix-web\"\n-version = \"0.7.18\"\n+version = \"0.7.19\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\ndependencies = [\n\"actix 0... | Rust | Apache License 2.0 | althea-net/althea_rs | Refactor exit signup flow to avoid .wait()
Exit signup and parts of the exit loop are now async to accomodate
async babel |
20,244 | 04.06.2019 13:19:49 | 14,400 | 33d73a57c535bb14d7855f8c858ab1567a48b043 | Async SMS sending
This leaves only postgres as the remaining sync component | [
{
"change_type": "MODIFY",
"old_path": "rita/src/rita_exit/database/email.rs",
"new_path": "rita/src/rita_exit/database/email.rs",
"diff": "@@ -9,6 +9,8 @@ use diesel;\nuse diesel::prelude::PgConnection;\nuse exit_db::models;\nuse failure::Error;\n+use futures::future;\n+use futures::future::Future;... | Rust | Apache License 2.0 | althea-net/althea_rs | Async SMS sending
This leaves only postgres as the remaining sync component |
20,244 | 04.06.2019 13:53:27 | 14,400 | db9f9bc8ca048ad165b490255a1e3e60dbacc62a | Complete the removal of sync http code | [
{
"change_type": "MODIFY",
"old_path": "Cargo.lock",
"new_path": "Cargo.lock",
"diff": "@@ -135,11 +135,6 @@ dependencies = [\n\"syn 0.15.27 (registry+https://github.com/rust-lang/crates.io-index)\",\n]\n-[[package]]\n-name = \"adler32\"\n-version = \"1.0.3\"\n-source = \"registry+https://github.com... | Rust | Apache License 2.0 | althea-net/althea_rs | Complete the removal of sync http code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.