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-747: transactions received from unknown wallets #350

Merged
merged 145 commits into from
Jan 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
145 commits
Select commit Hold shift + click to select a range
81eec66
GH-554: rough infrastructure for PaymentAdjuster; almost get first ro…
May 4, 2023
6961653
GH-672: simplifying GH-554, let's go on without the Neighborhood invo…
May 8, 2023
a60c3ae
GH-672: PaymentAdjusterMock and the supertrait with ScannerEtensions …
May 11, 2023
bae8ba7
GH-672-with-trait-impl-and-generics: perhaps going in the right direc…
May 12, 2023
752364c
GH-672-best-methodology-found: implementation works
May 12, 2023
a63b4a3
GH-672: first version of adjustment implemented
May 13, 2023
279c2a0
GH-672: finished implementing the main test; not refactored yet
May 15, 2023
f51de9b
GH-672: payment adjuster refactored; tuning logging; but wanna master…
May 18, 2023
d99fd45
GH-672: master got in now
May 18, 2023
0a7dc32
GH-672: some logging integrated
May 18, 2023
89dc99a
GH-672: fine debug log
May 22, 2023
d448ece
GH-672: interim commit
May 25, 2023
0f45f2e
GH-672: interim commit
May 26, 2023
a0f22c3
GH-672: another package of big changes (partly-private msgs; payment …
May 26, 2023
b076bee
GH-672: decent debug log for adjusted payables
May 26, 2023
58db009
GH-672: broadening the adjustment capabilities with gas; rough framework
May 27, 2023
8f5c604
GH-672: savepoint; before experimenting with early gas_limit computation
May 27, 2023
557c51f
GH-672: continuing in implementation of the check for gas availability.
May 29, 2023
f5ab24e
GH-672: merged master in
May 30, 2023
5547fda
GH-672: some renaming and moving files
May 31, 2023
4c322ae
GH-672: almost completed but there is a cenceptual error; maybe extra…
May 31, 2023
05eb924
GH-672: last details; adding tests for untested code from BlockchainI…
Jun 1, 2023
87b7ac9
GH-672: almost done; some refactoring ahead
Jun 1, 2023
ab0b1d8
GH-672: heading to auto-review
Jun 1, 2023
2545ca9
GH-672: auto review findings
Jun 2, 2023
66a5b54
GH-672: refactored scan scheduling code
Jun 2, 2023
f0a8515
GH-672: fixing issues from the review; save point before the shift of…
Jun 20, 2023
0adbd77
GH-672: before connecting the early fetched gas price and the actual …
Jun 20, 2023
e3c433a
GH-672: logic redesigned + renaming
Jun 20, 2023
9d6c959
GH-672: I believe the first review is answered by now
Jun 20, 2023
4029783
GH-672: almost all the old code updated; will have to implement the t…
Jun 26, 2023
0b982bd
GH-672: before serious changes with PayablePaymentsAgent starts
Jun 28, 2023
89a71f7
GH-672-with-agent: saving when getting into troubles with testing
Jun 29, 2023
e715fb2
GH-672-with-agent: going in a nice direction; interim commit
Jun 29, 2023
b587d87
GH-672-with-agent: approaching the fixture...this might work well; la…
Jun 29, 2023
e89875a
GH-672-with-agent: could be called roughly complete; will go with ref…
Jun 30, 2023
1dd3abb
GH-672-with-agent: interim commit
Jun 30, 2023
9384cd1
GH-672-with-agent: hopefully the last changes before a review
Jul 10, 2023
2b5086f
GH-672-with-agent: almost all what I found in my auto-review
Jul 10, 2023
c1cf4b9
GH-672-with-agent: refactored the structure of PayablePaymentsSetupMsg
Jul 10, 2023
d9dc2e3
GH-672-with-agent: formatting
Jul 10, 2023
9f86aac
GH-672-wa-no-test-hack: recorder can also record and stop the system …
Jul 12, 2023
aeadcc8
GH-672-wa-no-test-hack: hurrah, managed to get out of the trap with …
Jul 12, 2023
9c84efa
GH-672-wa-no-test-hack: little modifications in comments
Jul 12, 2023
9240b9c
GH-672: first batch of fixed items from the review 3
Aug 10, 2023
d0b42ff
GH-672: another batch of fixes
Aug 12, 2023
727d380
GH-672: refactoring some complicated test concepts for actor_system_f…
Aug 12, 2023
9e1bfae
GH-672: more refactoring and little changes
Aug 13, 2023
874e9ee
GH-672: fixing stuff araound blockchain_interface web3 and its initia…
Aug 13, 2023
4b23724
GH-672: savepoint
Aug 13, 2023
772a600
GH-672: renaming
Aug 13, 2023
f2b7f17
GH-672: almost all things done; AgentDigest fully in
Aug 14, 2023
03a83de
GH-672: finished last few missing places
Aug 14, 2023
6080ab1
GH-672: reworking comments and found a little mistake
Aug 14, 2023
1f44d1a
GH-672: match stop condition turned into easier one to use
Aug 15, 2023
7641169
GH-672: protected payables implemented
Aug 15, 2023
ec298fc
GH-672: until now the protected payables were implemented badly; impr…
Aug 15, 2023
1906819
GH-672: compiling, but many failing tests
Aug 18, 2023
4ac33d7
GH-672: still fixing tests, but a lot of them passing now
Aug 18, 2023
4eac657
GH-672: halting hard with thoughts about implementation of the build_…
Aug 20, 2023
6e5d13a
GH-672: blockchain interface onward and backwards move; messy rearran…
Aug 20, 2023
6b7f528
GH-672: all tests good; saving before cargo fix
Aug 21, 2023
282a47f
GH-672: roughly ready code; let's review now
Aug 21, 2023
ac6d3bf
GH-672: renaming in accountant folders
Aug 21, 2023
2970b47
GH-672: reverting some renaming in favor of another branch taking car…
Aug 21, 2023
e4893db
GH-672: interim commit
Aug 22, 2023
c3fdc19
GH-672: little fixes and adding more in to some null methods with todos
Aug 22, 2023
e6b5d5a
GH-672: polishing; savepoint before moving get_transaction_receipt to…
Aug 22, 2023
006d756
GH-672: improved details
Aug 22, 2023
06835ce
GH-747: mostly complete, one test still left to be done and some idea…
Sep 9, 2023
08d4137
GH-747: even more tests needed
Sep 11, 2023
3d2c0e0
GH-747: last todo knocked out
Sep 11, 2023
e987841
GH-747: db connection options for big_int_db_processor simplified
Sep 11, 2023
0f82afb
GH-747: better design for 'other_params()'
Sep 12, 2023
8bdcbfa
GH-747: alias types for easier reading
Sep 12, 2023
24b47c3
GH-672: mostly done; just a few details left
Sep 13, 2023
0c6155b
GH-672: abondoning enhancement of blockchain interface initializer...…
Sep 14, 2023
33ff519
GH-672: unnoticable change for the augly low level tests in actor_sys…
Sep 14, 2023
d63ac32
GH-672: blockchain_bridge_shared_test_simplified
Sep 14, 2023
bff7094
GH-672: ready for review 5
Sep 14, 2023
a6ec39a
Revert "GH-747: db connection options for big_int_db_processor simpli…
Sep 14, 2023
66cf73d
GH-747: prepared for new big redesign of the test to watch the transa…
Sep 14, 2023
90b4ee6
GH-747: most of this is over me
Sep 14, 2023
a2f4d26
GH-747: savepoint before trying to mess with lifetimes hard
Sep 15, 2023
6982577
GH-747: savepoint before trying to mess with lifetimes hard
Sep 15, 2023
1c8b977
GH-747: preparing for mocking BigIntProcessor
Sep 15, 2023
d2ae0a0
GH-747: a lot stabilized...refactoring next??
Sep 18, 2023
6502efd
GH-747: found the right hierarchy in the code (redesigned to be clean…
Sep 19, 2023
02fbb6c
GH-747: renaming
Sep 19, 2023
00fbcf0
GH-747: hard work on creating a reliable test tool; yet more of the u…
Sep 21, 2023
6238afd
GH-747: I'm gonna try to make the test tool more of how an unbiased v…
Sep 21, 2023
0877efc
GH-747: tools enhanced and some little debrits cleaned up
Sep 21, 2023
86dd074
GH-747: small corrections in text
Sep 21, 2023
e259284
GH-747-experiment-start-block: before trying to do 'impossible'
Sep 24, 2023
8349371
GH-672: interim commit
Sep 25, 2023
05f9801
GH-672: finished review 5
Sep 25, 2023
24e0f91
GH-672: merge with master
Sep 26, 2023
44bac67
GH-672: review 6 answered
Sep 26, 2023
2121626
GH-672: taking over code from master + small fixes
Sep 26, 2023
1a71c62
GH-672: fixes in multinode tests
Sep 27, 2023
8582531
GH-672: little cosmetics
Sep 27, 2023
4e0c120
GH-747-experiment-start-block
Sep 28, 2023
6085881
GH-747-experiment-start-block: interim commit
Sep 28, 2023
b718cd5
GH-747-experiment-start-block: since now prepared for all sorts of te…
Sep 28, 2023
143eba3
GH-747-experiment-start-block: merge from GH-672
Sep 28, 2023
a65895f
GH-747-experiment-start-block: new procedure for setting start block …
Sep 29, 2023
e3b5f07
GH-757-experiment-start-block: turned out a good idea... completed
Oct 1, 2023
237f8a3
GH-747: master merged in
Oct 4, 2023
c724d01
GH-747: a dull sketch
Oct 16, 2023
3d0df40
GH-747: for both situations, no and some transactions found, start bl…
bertllll Oct 26, 2023
12cc61b
GH-747: last error handling missing - but added in
bertllll Oct 26, 2023
131d1e5
GH-749: might be finished
bertllll Oct 27, 2023
588fae7
GH-747: some small changes
bertllll Dec 4, 2023
d9deef7
GH-747: working on a more convenient wrapper around the rusqlite tran…
bertllll Dec 4, 2023
bee337e
GH-747: first stage of enhancing the trasnaction wrapper seems done
bertllll Dec 4, 2023
ec3c686
GH-747: better interface for wrapped transaction
bertllll Dec 6, 2023
0d822a1
GH-747: interim commit
bertllll Dec 6, 2023
0e97f81
GH-747: transaction wrapper redesigned successfuly
bertllll Dec 8, 2023
a143aed
GH-747: didn't include these accidently
bertllll Dec 8, 2023
05cc07e
GH-747: builder implemented; interface now doesn't allow misuse of th…
bertllll Dec 8, 2023
2bb37c9
GH-747: few more comments knocked off
bertllll Dec 8, 2023
cf1ceec
GH-747: transaction wrapper test version polishing
bertllll Dec 18, 2023
fbea106
GH-747: new little safety feature implemented
bertllll Dec 18, 2023
85467ae
GH-747: small improvements, still working the review
bertllll Dec 19, 2023
2b5bbd1
GH-747: and again small impovements, still working the review
bertllll Dec 19, 2023
0c58335
GH-747: interim commit
bertllll Dec 19, 2023
0c5df77
GH-747: more code neatened in big_int_db_processor
bertllll Dec 20, 2023
64ede32
GH-747: revamp in receivable (at least I think)
bertllll Dec 23, 2023
b7cd669
GH-747: revamp of bulky comments
bertllll Dec 23, 2023
722dd42
GH-747: interim commit before a big revamp
bertllll Dec 23, 2023
cb45082
GH-747: I lost interst in the previous thing but will do files replac…
bertllll Dec 23, 2023
8d8e661
GH-747: deleted files mistakely merged in
bertllll Dec 23, 2023
382530c
GH-747: finished before trying master merge
bertllll Dec 23, 2023
713ba32
GH-747: finalizing before the review; writing better comments etc
bertllll Dec 24, 2023
0968c78
GH-747: more text revamped
bertllll Dec 24, 2023
459e0f4
GH-747: master merge
bertllll Dec 24, 2023
3f492c7
GH-747: first bunch of fixes after the 2nd review
bertllll Jan 21, 2024
6094a26
GH-747: second big bunch
bertllll Jan 21, 2024
487b4a9
GH-747: some new minor changes
bertllll Jan 22, 2024
e248bb4
GH-747: all comments addressed
bertllll Jan 22, 2024
bc6de8e
Merge branch 'master' into GH-747
bertllll Jan 22, 2024
a476c0c
GH-747: clippy
bertllll Jan 22, 2024
f1f4a5c
GH-747: review 2 reaction: revamping text
bertllll Jan 25, 2024
cdd16dd
GH-747: review 2 reaction: another attempt, smaller
bertllll Jan 25, 2024
23c88de
bumping version 0.8.0
bertllll Jan 27, 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
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.7.3"
version = "0.8.0"
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.7.3"
version = "0.8.0"
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.7.3"
version = "0.8.0"
authors = ["Dan Wiebe <dnwiebe@gmail.com>", "MASQ"]
license = "GPL-3.0-only"
description = "Reference implementation of user interface for MASQ Node"
Expand Down
4 changes: 2 additions & 2 deletions masq/src/commands/change_password_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use clap::{App, Arg, SubCommand};
use masq_lib::messages::{
UiChangePasswordRequest, UiChangePasswordResponse, UiNewPasswordBroadcast,
};
use masq_lib::{as_any_in_trait_impl, short_writeln};
use masq_lib::{as_any_ref_in_trait_impl, short_writeln};
use std::io::Write;

#[derive(Debug, PartialEq, Eq)]
Expand Down Expand Up @@ -79,7 +79,7 @@ impl Command for ChangePasswordCommand {
Ok(())
}

as_any_in_trait_impl!();
as_any_ref_in_trait_impl!();
}

pub fn change_password_subcommand() -> App<'static, 'static> {
Expand Down
4 changes: 2 additions & 2 deletions masq/src/commands/check_password_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::commands::commands_common::{
transaction, Command, CommandError, STANDARD_COMMAND_TIMEOUT_MILLIS,
};
use clap::{App, Arg, SubCommand};
use masq_lib::as_any_in_trait_impl;
use masq_lib::as_any_ref_in_trait_impl;
use masq_lib::messages::{UiCheckPasswordRequest, UiCheckPasswordResponse};
use masq_lib::short_writeln;
use masq_lib::utils::to_string;
Expand Down Expand Up @@ -51,7 +51,7 @@ impl Command for CheckPasswordCommand {
Ok(())
}

as_any_in_trait_impl!();
as_any_ref_in_trait_impl!();
}

impl CheckPasswordCommand {
Expand Down
4 changes: 2 additions & 2 deletions masq/src/commands/configuration_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::commands::commands_common::{
dump_parameter_line, transaction, Command, CommandError, STANDARD_COMMAND_TIMEOUT_MILLIS,
};
use clap::{App, Arg, SubCommand};
use masq_lib::as_any_in_trait_impl;
use masq_lib::as_any_ref_in_trait_impl;
use masq_lib::constants::NODE_NOT_RUNNING_ERROR;
use masq_lib::messages::{UiConfigurationRequest, UiConfigurationResponse};
use masq_lib::short_writeln;
Expand Down Expand Up @@ -64,7 +64,7 @@ impl Command for ConfigurationCommand {
}
}

as_any_in_trait_impl!();
as_any_ref_in_trait_impl!();
}

impl ConfigurationCommand {
Expand Down
4 changes: 2 additions & 2 deletions masq/src/commands/connection_status_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::commands::commands_common::{
transaction, Command, CommandError, STANDARD_COMMAND_TIMEOUT_MILLIS,
};
use clap::{App, SubCommand};
use masq_lib::as_any_in_trait_impl;
use masq_lib::as_any_ref_in_trait_impl;
use masq_lib::constants::NODE_NOT_RUNNING_ERROR;
use masq_lib::messages::{
UiConnectionStage, UiConnectionStatusRequest, UiConnectionStatusResponse,
Expand Down Expand Up @@ -62,7 +62,7 @@ impl Command for ConnectionStatusCommand {
}
}

as_any_in_trait_impl!();
as_any_ref_in_trait_impl!();
}

impl ConnectionStatusCommand {
Expand Down
4 changes: 2 additions & 2 deletions masq/src/commands/generate_wallets_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::commands::commands_common::{
};
use clap::{App, Arg, SubCommand};
use lazy_static::lazy_static;
use masq_lib::as_any_in_trait_impl;
use masq_lib::as_any_ref_in_trait_impl;
use masq_lib::messages::{UiGenerateSeedSpec, UiGenerateWalletsRequest, UiGenerateWalletsResponse};
use masq_lib::short_writeln;
use masq_lib::utils::DEFAULT_EARNING_DERIVATION_PATH;
Expand Down Expand Up @@ -165,7 +165,7 @@ impl Command for GenerateWalletsCommand {
Ok(())
}

as_any_in_trait_impl!();
as_any_ref_in_trait_impl!();
}

pub fn generate_wallets_subcommand() -> App<'static, 'static> {
Expand Down
4 changes: 2 additions & 2 deletions masq/src/commands/recover_wallets_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::commands::commands_common::{
};
use clap::{App, Arg, ArgGroup, SubCommand};
use itertools::{Either, Itertools};
use masq_lib::as_any_in_trait_impl;
use masq_lib::as_any_ref_in_trait_impl;
use masq_lib::messages::{UiRecoverSeedSpec, UiRecoverWalletsRequest, UiRecoverWalletsResponse};
use masq_lib::short_writeln;
use masq_lib::utils::to_string;
Expand Down Expand Up @@ -120,7 +120,7 @@ impl Command for RecoverWalletsCommand {
Ok(())
}

as_any_in_trait_impl!();
as_any_ref_in_trait_impl!();
}

const RECOVER_WALLETS_ABOUT: &str =
Expand Down
4 changes: 2 additions & 2 deletions masq/src/commands/set_configuration_command.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::command_context::CommandContext;
use crate::commands::commands_common::{transaction, Command, CommandError};
use clap::{App, Arg, ArgGroup, SubCommand};
use masq_lib::as_any_in_trait_impl;
use masq_lib::as_any_ref_in_trait_impl;
use masq_lib::messages::{UiSetConfigurationRequest, UiSetConfigurationResponse};
use masq_lib::shared_schema::gas_price_arg;
use masq_lib::shared_schema::min_hops_arg;
Expand Down Expand Up @@ -53,7 +53,7 @@ impl Command for SetConfigurationCommand {
Ok(())
}

as_any_in_trait_impl!();
as_any_ref_in_trait_impl!();
}

const SET_CONFIGURATION_ABOUT: &str =
Expand Down
4 changes: 2 additions & 2 deletions masq/src/commands/setup_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use crate::command_context::CommandContext;
use crate::commands::commands_common::{transaction, Command, CommandError};
use crate::terminal::terminal_interface::TerminalWrapper;
use clap::{value_t, App, SubCommand};
use masq_lib::as_any_in_trait_impl;
use masq_lib::as_any_ref_in_trait_impl;
use masq_lib::constants::SETUP_ERROR;
use masq_lib::messages::{
UiSetupBroadcast, UiSetupInner, UiSetupRequest, UiSetupRequestValue, UiSetupResponse,
Expand Down Expand Up @@ -51,7 +51,7 @@ impl Command for SetupCommand {
Err(e) => Err(e),
}
}
as_any_in_trait_impl!();
as_any_ref_in_trait_impl!();
}

impl SetupCommand {
Expand Down
4 changes: 2 additions & 2 deletions masq/src/commands/wallet_addresses_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::commands::commands_common::{
};
use clap::{App, Arg, SubCommand};
use masq_lib::messages::{UiWalletAddressesRequest, UiWalletAddressesResponse};
use masq_lib::{as_any_in_trait_impl, short_writeln};
use masq_lib::{as_any_ref_in_trait_impl, short_writeln};

#[derive(Debug, PartialEq, Eq)]
pub struct WalletAddressesCommand {
Expand Down Expand Up @@ -66,7 +66,7 @@ impl Command for WalletAddressesCommand {
);
Ok(())
}
as_any_in_trait_impl!();
as_any_ref_in_trait_impl!();
}

#[cfg(test)]
Expand Down
6 changes: 3 additions & 3 deletions masq/src/communications/broadcast_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use masq_lib::messages::{
};
use masq_lib::ui_gateway::MessageBody;
use masq_lib::utils::ExpectValue;
use masq_lib::{as_any_in_trait, as_any_in_trait_impl, short_writeln};
use masq_lib::{as_any_ref_in_trait, as_any_ref_in_trait_impl, short_writeln};
use std::fmt::Debug;
use std::io::Write;
use std::thread;
Expand All @@ -20,15 +20,15 @@ use crate::notifications::connection_change_notification::ConnectionChangeNotifi

pub trait BroadcastHandle: Send {
fn send(&self, message_body: MessageBody);
as_any_in_trait!();
as_any_ref_in_trait!();
}

pub struct BroadcastHandleInactive;

impl BroadcastHandle for BroadcastHandleInactive {
//simply dropped (unless we find a better use for such a message)
fn send(&self, _message_body: MessageBody) {}
as_any_in_trait_impl!();
as_any_ref_in_trait_impl!();
}

pub struct BroadcastHandleGeneric {
Expand Down
2 changes: 1 addition & 1 deletion masq_lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "masq_lib"
version = "0.7.3"
version = "0.8.0"
authors = ["Dan Wiebe <dnwiebe@gmail.com>", "MASQ"]
license = "GPL-3.0-only"
description = "Code common to Node and masq; also, temporarily, to dns_utility"
Expand Down
25 changes: 23 additions & 2 deletions masq_lib/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ macro_rules! intentionally_blank {
}

#[macro_export]
macro_rules! as_any_in_trait {
macro_rules! as_any_ref_in_trait {
() => {
#[cfg(test)]
fn as_any(&self) -> &dyn std::any::Any {
Expand All @@ -423,7 +423,7 @@ macro_rules! as_any_in_trait {
}

#[macro_export]
macro_rules! as_any_in_trait_impl {
macro_rules! as_any_ref_in_trait_impl {
() => {
#[cfg(test)]
fn as_any(&self) -> &dyn std::any::Any {
Expand All @@ -432,6 +432,27 @@ macro_rules! as_any_in_trait_impl {
};
}

#[macro_export]
macro_rules! as_any_mut_in_trait {
() => {
#[cfg(test)]
fn as_any_mut(&mut self) -> &mut dyn std::any::Any {
use masq_lib::intentionally_blank;
intentionally_blank!()
}
};
}

#[macro_export]
macro_rules! as_any_mut_in_trait_impl {
() => {
#[cfg(test)]
fn as_any_mut(&mut self) -> &mut dyn std::any::Any {
self
}
};
}

#[macro_export]
macro_rules! test_only_use {
($($use_clause: item),+) => {
Expand Down
2 changes: 1 addition & 1 deletion multinode_integration_tests/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "multinode_integration_tests"
version = "0.7.3"
version = "0.8.0"
authors = ["Dan Wiebe <dnwiebe@gmail.com>", "MASQ"]
license = "GPL-3.0-only"
description = ""
Expand Down
2 changes: 1 addition & 1 deletion multinode_integration_tests/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ use masq_lib::test_utils::utils::TEST_DEFAULT_MULTINODE_CHAIN;
use masq_lib::utils::NeighborhoodModeLight;
use node_lib::accountant::db_access_objects::payable_dao::{PayableDao, PayableDaoReal};
use node_lib::accountant::db_access_objects::receivable_dao::{ReceivableDao, ReceivableDaoReal};
use node_lib::database::connection_wrapper::ConnectionWrapper;
use node_lib::database::db_initializer::{
DbInitializationConfig, DbInitializer, DbInitializerReal, ExternalData,
};
use node_lib::database::rusqlite_wrappers::ConnectionWrapper;
use node_lib::db_config::config_dao::{ConfigDao, ConfigDaoReal};
use node_lib::neighborhood::node_record::NodeRecordInner_0v1;
use node_lib::neighborhood::AccessibleGossipRecord;
Expand Down
10 changes: 5 additions & 5 deletions node/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 node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "node"
version = "0.7.3"
version = "0.8.0"
license = "GPL-3.0-only"
authors = ["Dan Wiebe <dnwiebe@gmail.com>", "MASQ"]
description = "MASQ Node is the foundation of MASQ Network, an open-source network that allows anyone to allocate spare computing resources to make the internet a free and fair place for the entire world."
Expand Down
2 changes: 1 addition & 1 deletion node/src/accountant/db_access_objects/banned_dao.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) 2019, MASQ (https://masq.ai) and/or its affiliates. All rights reserved.

use crate::accountant::db_access_objects::utils::{DaoFactoryReal, VigilantRusqliteFlatten};
use crate::database::connection_wrapper::ConnectionWrapper;
use crate::database::rusqlite_wrappers::ConnectionWrapper;
use crate::sub_lib::wallet::Wallet;
use lazy_static::lazy_static;
use rusqlite::{Error, ErrorCode, ToSql};
Expand Down
Loading
Loading