Skip to content

Commit

Permalink
Merge branch 'master' into feat/drop-first-burn-hash
Browse files Browse the repository at this point in the history
  • Loading branch information
pavitthrap authored Jun 21, 2022
2 parents 33b717c + 4b7c5eb commit ccff7ca
Show file tree
Hide file tree
Showing 3 changed files with 301 additions and 9 deletions.
3 changes: 3 additions & 0 deletions src/chainstate/stacks/miner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ impl TransactionResult {
"event_name" => %"transaction_result",
"tx_id" => %tx.txid(),
"event_type" => %"success",
"payload" => %tx.payload.name(),
);
}

Expand All @@ -247,6 +248,7 @@ impl TransactionResult {
"reason" => %err,
"tx_id" => %tx.txid(),
"event_type" => "error",
"payload" => %tx.payload.name(),
);
}

Expand All @@ -258,6 +260,7 @@ impl TransactionResult {
"event_name" => "transaction_result",
"tx_id" => %tx.txid(),
"event_type" => "skip",
"payload" => %tx.payload.name(),
"reason" => %err,
);
}
Expand Down
2 changes: 2 additions & 0 deletions src/core/mempool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ pub enum MemPoolDropReason {
TOO_EXPENSIVE,
}

#[derive(Debug)]
pub struct ConsiderTransaction {
/// Transaction to consider in block assembly
pub tx: MemPoolTxInfo,
Expand All @@ -190,6 +191,7 @@ pub struct ConsiderTransaction {
pub update_estimate: bool,
}

#[derive(Debug)]
enum ConsiderTransactionResult {
NoTransactions,
UpdateNonces(Vec<StacksAddress>),
Expand Down
Loading

0 comments on commit ccff7ca

Please sign in to comment.