Skip to content

Commit 76ab889

Browse files
committed
Write WrapCCC tracker and address to body_db
1 parent 68f4692 commit 76ab889

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

core/src/blockchain/body_db.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ use std::collections::{HashMap, HashSet};
1818
use std::mem;
1919
use std::sync::Arc;
2020

21-
use ctypes::transaction::ShardTransaction;
2221
use kvdb::{DBTransaction, KeyValueDB};
2322
use parking_lot::{Mutex, RwLock};
2423
use primitives::{Bytes, H256};
@@ -347,9 +346,9 @@ fn transaction_address_entries(
347346
parcel_hashes: impl IntoIterator<Item = UnverifiedTransaction>,
348347
) -> impl Iterator<Item = TransactionHashAndAddress> {
349348
parcel_hashes.into_iter().enumerate().filter_map(move |(parcel_index, parcel)| {
350-
Option::<ShardTransaction>::from(parcel.action.clone()).map(|tx| {
349+
parcel.tracker().map(|tracker| {
351350
(
352-
tx.tracker(),
351+
tracker,
353352
TransactionAddresses::new(TransactionAddress {
354353
block_hash,
355354
index: parcel_index,

0 commit comments

Comments
 (0)