Skip to content
Snippets Groups Projects
Verified Commit cd584373 authored by Michal Kucharczyk's avatar Michal Kucharczyk
Browse files

poc: arc(tx) fix

parent f0214c88
No related merge requests found
Pipeline #485261 waiting for manual action with stages
in 54 minutes and 27 seconds
......@@ -165,18 +165,18 @@ impl core::Benchmark for ConstructionBenchmark {
#[derive(Clone, Debug)]
pub struct PoolTransaction {
data: OpaqueExtrinsic,
data: Arc<OpaqueExtrinsic>,
hash: node_primitives::Hash,
}
impl From<OpaqueExtrinsic> for PoolTransaction {
fn from(e: OpaqueExtrinsic) -> Self {
PoolTransaction { data: e, hash: node_primitives::Hash::zero() }
PoolTransaction { data: Arc::from(e), hash: node_primitives::Hash::zero() }
}
}
impl sc_transaction_pool_api::InPoolTransaction for PoolTransaction {
type Transaction = OpaqueExtrinsic;
type Transaction = Arc<OpaqueExtrinsic>;
type Hash = node_primitives::Hash;
fn data(&self) -> &Self::Transaction {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment