chore: regenerate umbrella crate, fix feature propagation
This commit is contained in:
@@ -18,8 +18,8 @@
|
||||
|
||||
//! Extrinsic helpers for author RPC module.
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
use pezsp_core::Bytes;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// RPC Extrinsic or hash
|
||||
///
|
||||
|
||||
@@ -36,8 +36,9 @@ impl From<Error> for ErrorObjectOwned {
|
||||
pezsc_mixnet::Error::Post(PostErr::TooManyFragments) => BASE_ERROR + 101,
|
||||
pezsc_mixnet::Error::Post(PostErr::SessionMixnodesNotKnown(_)) => BASE_ERROR + 102,
|
||||
pezsc_mixnet::Error::Post(PostErr::SessionDisabled(_)) => BASE_ERROR + 103,
|
||||
pezsc_mixnet::Error::Post(PostErr::Topology(TopologyErr::NoConnectedGatewayMixnodes)) =>
|
||||
BASE_ERROR + 151,
|
||||
pezsc_mixnet::Error::Post(PostErr::Topology(
|
||||
TopologyErr::NoConnectedGatewayMixnodes,
|
||||
)) => BASE_ERROR + 151,
|
||||
pezsc_mixnet::Error::Post(PostErr::Topology(_)) => BASE_ERROR + 150,
|
||||
pezsc_mixnet::Error::Post(_) => BASE_ERROR + 100,
|
||||
pezsc_mixnet::Error::Remote(RemoteErr::Other(_)) => BASE_ERROR + 200,
|
||||
|
||||
@@ -28,7 +28,8 @@ pub fn check_if_safe(ext: &jsonrpsee::Extensions) -> Result<(), UnsafeRpcError>
|
||||
match ext.get::<DenyUnsafe>().map(|deny_unsafe| deny_unsafe.check_if_safe()) {
|
||||
Some(Ok(())) => Ok(()),
|
||||
Some(Err(e)) => Err(e),
|
||||
None => unreachable!("DenyUnsafe extension is always set by the bizinikiwi rpc server; qed"),
|
||||
None =>
|
||||
unreachable!("DenyUnsafe extension is always set by the bizinikiwi rpc server; qed"),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
|
||||
//! Bizinikiwi state API helpers.
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
use pezsp_core::Bytes;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// ReadProof struct returned by the RPC
|
||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||
|
||||
Reference in New Issue
Block a user