mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-06 11:02:18 +00:00
75ca6b8c76
* Initial work on integration tests * Delete subtree * Squashed 'interfaces/' content from commit 41a082ba4 git-subtree-dir: interfaces git-subtree-split: 41a082ba4bde38647325eb0416cb1da1b4ca2b12 * Add consensus interfaces * More stuff * comments * Fix compile * Squashed 'interfaces/' changes from 41a082ba4..1b13a42a7 1b13a42a7 Add chainspec to consensus interface git-subtree-dir: interfaces git-subtree-split: 1b13a42a7803f5464722867a71065c27a7ebe8c3 * Squashed 'interfaces/' changes from 1b13a42a7..93a072c4c 93a072c4c Add missing import git-subtree-dir: interfaces git-subtree-split: 93a072c4c099d169322a3a53b95e40203276820b * New consensus interfaces * More on clique * Fix tests * Squashed 'interfaces/' changes from 93a072c4c..62f4ec4b2 62f4ec4b2 Add test service for consensus engine git-subtree-dir: interfaces git-subtree-split: 62f4ec4b263107635ffa3aabd5d634af22e813c6 * Squashed 'interfaces/' changes from 62f4ec4b2..061a63543 061a63543 Fix git-subtree-dir: interfaces git-subtree-split: 061a63543babdeb51ab7e3a96dec56b2485d4389 * Configuring clique engine with toml specs - start * More toml parsing * Constructed rinkeby genesis * Simplify VerifyHeaders functions * Fix lint * Remove concurrent verification tests * Fix lint Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local> Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
45 lines
1.1 KiB
Rust
45 lines
1.1 KiB
Rust
fn config() -> prost_build::Config {
|
|
let mut config = prost_build::Config::new();
|
|
config.protoc_arg("--experimental_allow_proto3_optional");
|
|
config.bytes(&["."]);
|
|
config
|
|
}
|
|
|
|
fn make_protos(protos: &[&str]) {
|
|
tonic_build::configure()
|
|
.compile_with_config(config(), &protos, &["."])
|
|
.unwrap();
|
|
}
|
|
|
|
fn main() {
|
|
let mut protos = vec!["types/types.proto"];
|
|
|
|
if cfg!(feature = "consensus") {
|
|
protos.push("consensus_engine/consensus.proto");
|
|
}
|
|
|
|
if cfg!(feature = "sentry") {
|
|
protos.push("p2psentry/sentry.proto");
|
|
}
|
|
|
|
if cfg!(feature = "remotekv") {
|
|
protos.push("remote/ethbackend.proto");
|
|
protos.push("remote/kv.proto");
|
|
}
|
|
|
|
if cfg!(feature = "snapshotsync") {
|
|
protos.push("snapshot_downloader/external_downloader.proto");
|
|
}
|
|
|
|
if cfg!(feature = "txpool") {
|
|
protos.push("txpool/txpool.proto");
|
|
protos.push("txpool/txpool_control.proto");
|
|
}
|
|
|
|
if cfg!(feature = "consensus") {
|
|
protos.push("consensus_engine/consensus.proto");
|
|
}
|
|
|
|
make_protos(&protos);
|
|
}
|