-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
644 additions
and
178 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
pub mod utxo_collection; | ||
pub mod utxo_diff; | ||
pub mod utxo_error; | ||
pub mod utxo_inquirer; | ||
pub mod utxo_view; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
use kaspa_hashes::Hash; | ||
use thiserror::Error; | ||
|
||
#[derive(Error, Debug, Clone)] | ||
pub enum UtxoInquirerError { | ||
#[error("Transaction is already pruned")] | ||
AlreadyPruned, | ||
#[error("Transaction return address is coinbase")] | ||
TxFromCoinbase, | ||
#[error("Transaction not found at given accepting daa score")] | ||
NoTxAtScore, | ||
#[error("Transaction was found but not standard")] | ||
NonStandard, | ||
#[error("Did not find compact header for block hash {0} ")] | ||
MissingCompactHeaderForBlockHash(Hash), | ||
#[error("Did not find containing_acceptance for tx {0} ")] | ||
MissingContainingAcceptanceForTx(Hash), | ||
#[error("Did not find block {0} at block tx store")] | ||
MissingBlockFromBlockTxStore(Hash), | ||
#[error("Did not find index {0} in transactions of block {1}")] | ||
MissingTransactionIndexOfBlock(usize, Hash), | ||
#[error("Expected {0} to match {1} when checking block_transaction_store using array index of transaction")] | ||
UnexpectedTransactionMismatch(Hash, Hash), | ||
#[error("Did not find a utxo diff for chain block {0} ")] | ||
MissingUtxoDiffForChainBlock(Hash), | ||
#[error("Transaction {0} acceptance data must also be in the same block in this case")] | ||
MissingOtherTransactionAcceptanceData(Hash), | ||
#[error("Did not find index for hash {0}")] | ||
MissingIndexForHash(Hash), | ||
#[error("Did not find tip data")] | ||
MissingTipData, | ||
#[error("Did not find a hash at index {0} ")] | ||
MissingHashAtIndex(u64), | ||
#[error("Did not find acceptance data for chain block {0}")] | ||
MissingAcceptanceDataForChainBlock(Hash), | ||
#[error("Utxo entry is not filled")] | ||
UnfilledUtxoEntry, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.