(&self)
| 460 | } |
| 461 | |
| 462 | pub fn category_str(&self) -> &str { |
| 463 | match self { |
| 464 | Self::ChainTip(..) => "ChainTip", |
| 465 | Self::Reorg(..) => "Reorg", |
| 466 | |
| 467 | Self::Transaction(..) => "Transaction", |
| 468 | Self::TransactionReplaced(..) => "TransactionReplaced", |
| 469 | |
| 470 | Self::TxoFunded(..) => "TxoFunded", |
| 471 | Self::TxoSpent(..) => "TxoSpent", |
| 472 | } |
| 473 | } |
| 474 | |
| 475 | // create all the changelog events inflicted by the transaction |
| 476 | fn from_tx(txid: &Txid, tx_entry: &TxEntry) -> Vec<Self> { |