--- a/node/cli/src/service.rs
+++ b/node/cli/src/service.rs
@@ -419,6 +419,7 @@
Box::new(block_announce_validator)
})),
warp_sync_params: None,
+ block_relay: None,
})?;
let select_chain = params.select_chain.clone();
@@ -887,6 +888,7 @@
import_queue,
block_announce_validator_builder: None,
warp_sync_params: None,
+ block_relay: None,
})?;
let collator = config.role.is_authority();
--- a/runtime/common/config/pallets/preimage.rs
+++ b/runtime/common/config/pallets/preimage.rs
@@ -14,14 +14,18 @@
// You should have received a copy of the GNU General Public License
// along with Unique Network. If not, see .
-use frame_support::parameter_types;
+use frame_support::{
+ parameter_types,
+ traits::{fungible::HoldConsideration, LinearStoragePrice},
+};
use frame_system::EnsureRoot;
use up_common::constants::*;
-use crate::{AccountId, Balance, Balances, Runtime, RuntimeEvent};
+use crate::{AccountId, Balance, Balances, Runtime, RuntimeEvent, RuntimeHoldReason};
parameter_types! {
pub PreimageBaseDeposit: Balance = 1000 * UNIQUE;
+ pub const PreimageHoldReason: RuntimeHoldReason = RuntimeHoldReason::Preimage(pallet_preimage::HoldReason::Preimage);
}
impl pallet_preimage::Config for Runtime {
@@ -29,6 +33,10 @@
type RuntimeEvent = RuntimeEvent;
type Currency = Balances;
type ManagerOrigin = EnsureRoot;
- type BaseDeposit = PreimageBaseDeposit;
- type ByteDeposit = TransactionByteFee;
+ type Consideration = HoldConsideration<
+ AccountId,
+ Balances,
+ PreimageHoldReason,
+ LinearStoragePrice,
+ >;
}