-
Notifications
You must be signed in to change notification settings - Fork 16
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
Moved multisig to its own crate #3147
Conversation
- moved some things around - added feature flag 'test' to multisig crete
Codecov Report
@@ Coverage Diff @@
## main #3147 +/- ##
=======================================
Coverage 68.52% 68.53%
=======================================
Files 314 314
Lines 48807 48816 +9
Branches 48807 48816 +9
=======================================
+ Hits 33445 33454 +9
Misses 10602 10602
Partials 4760 4760
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
PRO-101 Investigate putting multisig in its own create
DescriptionSee if compile time when only making changes to the multisig stuff is faster. |
Would be nice to describe how exactly these times were measured for posterity's sake. |
multisig/src/lib.rs
Outdated
} | ||
|
||
#[derive(Debug)] | ||
pub struct VersionedCeremonyMessage { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one probably doesn't belong in multisig, but I see that it is needed for tests, so I'm fine this leaving it here for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only thing I'm really concerned with it the cfg feature = test thing. What do you mean it will may cascade? Merge now without any further changes if you like. But all the comments should be responded to.
utilities/src/testing.rs
Outdated
} | ||
} | ||
|
||
use std::{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not put the imports at the top of the file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same above
@@ -5,9 +5,10 @@ mod keygen_stages; | |||
#[cfg(test)] | |||
mod tests; | |||
|
|||
#[cfg(test)] | |||
#[cfg(feature = "test")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why use this instead of cfg(test)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't share cfg test stuff to other crates.
rust-lang/cargo#8379
pub const ETH_STREAM_BEHIND: &str = "eth-stream-behind"; | ||
|
||
use tracing::{metadata::LevelFilter, Level}; | ||
use tracing_subscriber::{EnvFilter, Layer}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest moving the entire logger (Whenever you like), I'm guessing the api and other tools will need it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not much left in the file, so i moved them out and deleted the file.
fix: multisig use error from merge. chore: removed unneeded pub use of init_test_logger
- removed logger.rs file
* origin/main: feat: witness XCallNative and XCallToken (#3171) Additional Key Handover Tests (#3165) refactor/chore: remove db migration from 0 to 1 (#3166) fix: use correct stage name for PubkeyShares0 PRO-259 (#3167) ci: add timeout to post-checks ⏳ (#3169) chore: parallel post-check and publish (#3168) fix: add missing features on dep in utils (#3164) Moved multisig to its own crate (#3147) Refactor/database (#3150) fix: correct addresses for localnets (#3162) refactor/scc (#3078) fix: remove cancel workflow (#3160) refactor: remove epoch authority count (#3154) chore: remove mentions of sui (#3158) fix: remove duplicate role check (#3157) chore: remove unused quickcheck dep (#3156) feat: refactor Chainflip trait (#3144) chore: remove unused CFE deps (#3152) # Conflicts: # state-chain/pallets/cf-swapping/src/mock.rs
Pull Request
Closes: PRO-101
Closes: #3022
Checklist
Summary
pubkey_to_eth_addr
to multisig crateOutgoingMultisigStageMessages
&&ProtocolVersion
to multisig::p2pCEREMONY_ID_WINDOW
to clientutilities
crate so it can be used in the multisig crateget_key_data_for_test
fromhelpers
tokeygen_detail
. (becausehelpers
is cfg test)Result
Note: build times in the above image are taken using
cargo build --timing
with the selected package. So the times are different from my quoted test build times that are fromcargo test ...