Skip to content

Commit 5b35646

Browse files
author
Ilya Bogdanov
committed
Merge remote-tracking branch 'remotes/upstream/master' into different-supervisor-modes
# Conflicts: # exonum-java-binding/core/rust/exonum-java/src/node.rs
2 parents 2898a39 + fd50659 commit 5b35646

File tree

8 files changed

+12
-3
lines changed

8 files changed

+12
-3
lines changed

exonum-java-binding/core/rust/Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

exonum-java-binding/core/rust/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ exonum-time = { git = "https://github.com/exonum/exonum", rev = "b81d64ef" }
5858
exonum-build = { git = "https://github.com/exonum/exonum", rev = "b81d64ef" }
5959
exonum-derive = { git = "https://github.com/exonum/exonum", rev = "b81d64ef" }
6060
exonum-cli = { git = "https://github.com/exonum/exonum", rev = "b81d64ef" }
61+
exonum-explorer-service = { git = "https://github.com/exonum/exonum", rev = "b81d64ef" }
6162
exonum-proto = { git = "https://github.com/exonum/exonum", rev = "b81d64ef" }
6263
exonum-supervisor = { git = "https://github.com/exonum/exonum", rev = "b81d64ef" }
6364
exonum-crypto = { git = "https://github.com/exonum/exonum", rev = "b81d64ef" }

exonum-java-binding/core/rust/exonum-java/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ authors = ["Exonum team <[email protected]>"]
55

66
[dependencies]
77
env_logger = "0.7"
8+
exonum-explorer-service = "0.13.0-rc.2"
89
exonum-supervisor = "0.13.0-rc.2"
910
exonum-time = "0.13.0-rc.2"
1011
failure = "0.1"

exonum-java-binding/core/rust/exonum-java/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*/
1616

1717
extern crate env_logger;
18+
extern crate exonum_explorer_service;
1819
extern crate exonum_supervisor;
1920
extern crate exonum_time;
2021
extern crate java_bindings;

exonum-java-binding/core/rust/exonum-java/src/node.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17+
use exonum_explorer_service::ExplorerFactory;
1718
use exonum_supervisor::{mode::Mode as SupervisorMode, Supervisor};
1819
use exonum_time::TimeServiceFactory;
1920
use java_bindings::{
@@ -25,13 +26,12 @@ use java_bindings::{
2526
},
2627
exonum_merkledb::{Database, RocksDB},
2728
node::{ApiSender, Node, NodeChannel, NodeConfig as CoreNodeConfig},
28-
runtime::rust::{RustRuntime, ServiceFactory},
29+
runtime::rust::{DefaultInstance, RustRuntime, RustRuntimeBuilder, ServiceFactory},
2930
},
3031
Command, Config, DefaultConfigManager, EjbCommand, EjbCommandResult, Executor, InternalConfig,
3132
JavaRuntimeProxy,
3233
};
3334

34-
use java_bindings::exonum::runtime::rust::RustRuntimeBuilder;
3535
use std::sync::Arc;
3636

3737
pub fn run_node(command: Command) -> Result<(), failure::Error> {
@@ -74,6 +74,8 @@ fn create_blockchain(
7474
let genesis_config = GenesisConfigBuilder::with_consensus_config(node_config.consensus)
7575
.with_artifact(Supervisor.artifact_id())
7676
.with_instance(supervisor_service)
77+
.with_artifact(ExplorerFactory.artifact_id())
78+
.with_instance(ExplorerFactory.default_instance())
7779
.build();
7880

7981
let rust_runtime = create_rust_runtime(channel);
@@ -89,6 +91,7 @@ fn create_rust_runtime(channel: &NodeChannel) -> RustRuntime {
8991
RustRuntimeBuilder::new()
9092
.with_factory(TimeServiceFactory::default())
9193
.with_factory(Supervisor)
94+
.with_factory(ExplorerFactory)
9295
.build(channel.endpoints.0.clone())
9396
}
9497

exonum-java-binding/core/rust/exonum-java/start_node.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ export RUST_LOG="${RUST_LOG-warn,exonum=info,exonum-java=info,java_bindings=info
9393
header "GENERATE COMMON CONFIG"
9494
cargo +${RUST_COMPILER_VERSION} run -- generate-template \
9595
--validators-count=1 \
96+
--supervisor-mode simple \
9697
${COMMON_CONFIG_PATH}
9798

9899
header "GENERATE CONFIG"

exonum-java-binding/cryptocurrency-demo/start-node.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export RUST_LOG="${RUST_LOG-error,exonum=info,exonum-java=info,java_bindings=inf
3838
header "GENERATE COMMON CONFIG"
3939
${EXONUM_JAVA_APP} generate-template \
4040
--validators-count=1 \
41+
--supervisor-mode simple \
4142
testnet/common.toml
4243

4344
header "GENERATE CONFIG"

exonum-light-client/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@
293293
<plugin>
294294
<groupId>org.pitest</groupId>
295295
<artifactId>pitest-maven</artifactId>
296-
<version>1.4.10</version>
296+
<version>1.4.11</version>
297297
<dependencies>
298298
<dependency>
299299
<groupId>org.pitest</groupId>

0 commit comments

Comments
 (0)