Skip to content

Utxo crate cleanup #353

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Aug 16, 2022
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions chainstate-storage/src/internal/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ use common::chain::{Block, GenBlock, OutPoint, OutPointSourceId};
use common::primitives::{BlockHeight, Id, Idable};
use serialization::{Codec, Decode, DecodeAll, Encode};
use storage::traits::{self, MapMut, MapRef, TransactionRo, TransactionRw};
use utxo::utxo_storage::{UtxosStorageRead, UtxosStorageWrite};
use utxo::{BlockUndo, Utxo};
use utxo::{BlockUndo, Utxo, UtxosStorageRead, UtxosStorageWrite};

use crate::{BlockchainStorage, BlockchainStorageRead, BlockchainStorageWrite, Transactional};

Expand Down
2 changes: 1 addition & 1 deletion chainstate-storage/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use common::chain::OutPointSourceId;
use common::chain::{Block, GenBlock};
use common::primitives::{BlockHeight, Id};
use storage::traits;
use utxo::utxo_storage::{UtxosStorageRead, UtxosStorageWrite};
use utxo::{UtxosStorageRead, UtxosStorageWrite};

mod internal;
#[cfg(any(test, feature = "mock"))]
Expand Down
2 changes: 1 addition & 1 deletion chainstate/src/detail/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use itertools::Itertools;
use logging::log;
use std::sync::Arc;
use utils::eventhandler::{EventHandler, EventsController};
use utxo::utxo_storage::UtxosDBMut;
use utxo::UtxosDBMut;
mod consensus_validator;
mod orphan_blocks;

Expand Down
3 changes: 2 additions & 1 deletion utxo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ thiserror = "1.0"

[dev-dependencies]
crypto = { path = '../crypto' }

itertools = "0.10"
rstest = "0.15"
test-utils = {path = '../test-utils'}
Loading