Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ names, environment variables, exit codes, error codes, and the shape of

## [Unreleased]

## [0.5.2] - 2026-09-29

### Changed

- `watch` says when a mempool transaction was replaced by another spending
the same coins (a fee bump or double-spend), instead of "Left the mempool".

## [0.5.1] - 2026-09-27

### Changed
Expand Down Expand Up @@ -116,7 +123,8 @@ names, environment variables, exit codes, error codes, and the shape of
- Installers: Homebrew (`blockio/tap/dogechain`), npm (`dogechain`), shell script, PowerShell,
and prebuilt binaries for macOS, Linux and Windows.

[Unreleased]: https://github.com/BlockIo/dogechain-cli/compare/v0.5.1...HEAD
[Unreleased]: https://github.com/BlockIo/dogechain-cli/compare/v0.5.2...HEAD
[0.5.2]: https://github.com/BlockIo/dogechain-cli/compare/v0.5.1...v0.5.2
[0.5.1]: https://github.com/BlockIo/dogechain-cli/compare/v0.5.0...v0.5.1
[0.5.0]: https://github.com/BlockIo/dogechain-cli/compare/v0.4.0...v0.5.0
[0.4.0]: https://github.com/BlockIo/dogechain-cli/compare/v0.3.1...v0.4.0
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dogechain-cli"
version = "0.5.1"
version = "0.5.2"
edition = "2024"
rust-version = "1.88"
description = "Command-line interface for Dogechain.com"
Expand Down
11 changes: 11 additions & 0 deletions src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,9 @@ fn describe_event(event: &str, d: &Value) -> String {
"tx_gone" => text("txid").map(|txid| match text("reason").as_deref() {
Some("mined") => format!("Confirmed in a block {txid}"),
Some("dropped") => format!("Dropped from the mempool {txid}"),
Some("replaced") => format!(
"Replaced by another transaction spending the same coins (a fee bump or double-spend) {txid}"
),
_ => format!("Left the mempool {txid}"),
}),
"lookalike" => match (text("sender"), text("imitates")) {
Expand Down Expand Up @@ -843,6 +846,14 @@ mod tests {
),
"New transaction: 16,106.82 DOGE in outputs, including change, from A to (no address) and 2 more outputs · t"
);
assert_eq!(
describe_event("tx_gone", &json!({"txid": "t", "reason": "replaced"})),
"Replaced by another transaction spending the same coins (a fee bump or double-spend) t"
);
assert_eq!(
describe_event("tx_gone", &json!({"txid": "t", "reason": "something new"})),
"Left the mempool t"
);
assert_eq!(
describe_event("richlist", &json!({"height": 7, "addresses": ["a", "b"]})),
"Top Doges changed at block 7: 2 addresses"
Expand Down
2 changes: 1 addition & 1 deletion src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ pub fn schema() -> Value {
"mempool": "txs, bytes, min_fee_rate, median_fee_rate, max_fee_rate (koinu per byte), next_block_txs",
"price": "usd",
"tx": "txid, value_out, fee, size, n_in, n_out, from_address|null (first input), to_address|null (first output), time_seen",
"tx_gone": "txid, reason (mined | dropped)",
"tx_gone": "txid, reason (mined | dropped | replaced; replaced means a fee bump or double-spend took its place; other values may be added)",
"lookalike": "txid, sender, imitates",
"richlist": "height, addresses[] (top-1,000 entries changed by this block)"
},
Expand Down
Loading