3Dpass / 3DP

The Implementation of The Ledger of Things Node. Layer 1 decentralized blockchain platform for the tokenization of objects. Proof of Scan protocol. Useful smart-contracts and dApps.
https://3dpass.org/
GNU General Public License v3.0
23 stars 17 forks source link

Compilation error after replacing multiprocess file. #31

Closed ndcc5 closed 2 years ago

ndcc5 commented 2 years ago

https://github.com/3Dpass/3DP/commit/4825add8287e489fec995695dd7d3744f65ee3a0

Compilation error after replacing multiprocess file.

warning: H:\3DP\Cargo.toml: unused manifest key: workspace.librocksdb-sys Compiling poscan-consensus v3.0.0 (H:\3DP\nodes\poscan-consensus) error[E0706]: functions in traits cannot be declared async --> nodes\poscan-consensus\src\service.rs:125:2 async fn create_inherent_data_providers( ^----
_____async because of this
&self,
_parent: ::Hash,
_extra_args: (),
) -> Result<Self::InherentDataProviders, Box<dyn std::error::Error + Send + Sync>> {
Ok(sp_timestamp::InherentDataProvider::from_system_time())
}
_____^
= note: `async` trait functions are not currently supported
= note: consider using the `async-trait` crate: https://crates.io/crates/async-trait

error[E0432]: unresolved import sc_executor::NativeElseWasmExecutor --> nodes\poscan-consensus\src\service.rs:6:5 | 6 | use sc_executor::NativeElseWasmExecutor; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no NativeElseWasmExecutor in the root

error[E0432]: unresolved import sc_consensus::DefaultImportQueue --> nodes\poscan-consensus\src\service.rs:7:5 | 7 | use sc_consensus::DefaultImportQueue; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no DefaultImportQueue in the root

error[E0432]: unresolved import sc_telemetry --> nodes\poscan-consensus\src\service.rs:10:5 | | ^^^^^^^^^^^^ use of undeclared crate or module sc_telemetry

error[E0432]: unresolved import async_trait --> nodes\poscan-consensus\src\service.rs:27:5 | 27 | use async_trait::async_trait; | ^^^^^^^^^^^ use of undeclared crate or module async_trait

error: cannot determine resolution for the attribute macro async_trait --> nodes\poscan-consensus\src\service.rs:121:3 121 #[async_trait] ^^^^^^^^^^^
= note: import resolution is stuck, try simplifying macro imports

error[E0433]: failed to resolve: use of undeclared crate or module frame_benchmarking --> nodes\poscan-consensus\src\service.rs:51:31 | 51 | type ExtendHostFunctions = frame_benchmarking::benchmarking::HostFunctions; | ^^^^^^^^^^^^^^^^^^ use of undeclared crate or module frame_benchmarking

error[E0433]: failed to resolve: use of undeclared crate or module sc_telemetry --> nodes\poscan-consensus\src\service.rs:172:33 | 172 | .map(|endpoints| -> Result<_, sc_telemetry::Error> { | ^^^^^^^^^^^^ use of undeclared crate or module sc_telemetry

error[E0405]: cannot find trait CreateInherentDataProviders in crate sp_inherents --> nodes\poscan-consensus\src\service.rs:122:20 | 122 | impl sp_inherents::CreateInherentDataProviders<Block, ()> for CreateInherentDataProviders { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in sp_inherents

error[E0425]: cannot find function protocol_standard_name in crate sc_finality_grandpa --> nodes\poscan-consensus\src\service.rs:618:51 | 618 | let grandpa_protocol_name = sc_finality_grandpa::protocol_standard_name( | ^^^^^^^^^^^^^^^^^^^^^^ not found in sc_finality_grandpa

Some errors have detailed explanations: E0405, E0425, E0432, E0433, E0706. For more information about an error, try rustc --explain E0405. error: could not compile poscan-consensus due to 10 previous errors

ndcc5 commented 2 years ago

np