diff --git a/CHANGELOG.md b/CHANGELOG.md index c476c26..81b5d7a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## [6.2.0] - 2025-12-31 + +### Added +- ``summars-closed-channels`` List the last x closed channels. They are sorted by ``last_stable_connection`` which might not be consistent with the time they hit the blockchain but it's the only time we can easily get. Default is ``0`` (disabled) +- ``summars-closed-channels-columns`` Comma-separated list of enabled columns in the closed channels table. Also dictates order of columns. Valid columns: ``LAST_CONNECT``, ``OUT_SATS``, ``IN_SATS``, ``TOTAL_SATS``, ``SCID``, ``PRIVATE``, ``ALIAS``, ``PEER_ID``, ``HTLCS_SENT``, ``CLOSE_CAUSE``. Default columns: ``LAST_CONNECT``, ``OUT_SATS``, ``IN_SATS``, ``SCID``, ``PRIVATE``, ``ALIAS``, ``PEER_ID``, ``HTLCS_SENT``, ``CLOSE_CAUSE`` + +### Fixed +- Removed the flow tables name as the table header to fix different flow table styles than the empty one, as a result the flow table names are now left aligned +- With json output enabled forwards objects would have timestamps in ms, they are now in s just like any other timestamps + ## [6.1.0] - 2025-12-19 ### Added diff --git a/Cargo.lock b/Cargo.lock index bc92fb2..ef8fd98 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -202,9 +202,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.2.50" +version = "1.2.51" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f50d563227a1c37cc0a263f64eca3334388c01c5e4c4861a9def205c614383c" +checksum = "7a0aeaff4ff1a90589618835a598e545176939b97874f7abc7851caa0618f203" dependencies = [ "find-msvc-tools", "shlex", @@ -322,9 +322,9 @@ checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be" [[package]] name = "find-msvc-tools" -version = "0.1.5" +version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a3076410a55c90011c298b04d0cfa770b00fa04e1e3c97d3f6c9de105a03844" +checksum = "645cbb3a84e60b7531617d5ae4e57f7e27308f6445f5abf653209ea76dec8dff" [[package]] name = "fixed_decimal" @@ -860,9 +860,9 @@ dependencies = [ [[package]] name = "itoa" -version = "1.0.15" +version = "1.0.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c" +checksum = "92ecc6618181def0457392ccd0ee51198e065e016d1d527a7ac1b6dc7c1f09d2" [[package]] name = "ixdtf" @@ -1137,9 +1137,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.103" +version = "1.0.104" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ee95bc4ef87b8d5ba32e8b7714ccc834865276eab0aed5c9958d00ec45f49e8" +checksum = "9695f8df41bb4f3d222c95a67532365f569318332d03d5f3f67f37b20e6ebdf0" dependencies = [ "unicode-ident", ] @@ -1287,9 +1287,9 @@ dependencies = [ [[package]] name = "rustix" -version = "1.1.2" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd15f8a2c5551a84d56efdc1cd049089e409ac19a3072d5037a17fd70719ff3e" +checksum = "146c9e247ccc180c1f61615433868c99f3de3ae256a30a43b49f67c2d9171f34" dependencies = [ "bitflags", "errno", @@ -1339,12 +1339,6 @@ version = "1.0.22" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" -[[package]] -name = "ryu" -version = "1.0.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f" - [[package]] name = "scopeguard" version = "1.2.0" @@ -1422,15 +1416,15 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.145" +version = "1.0.148" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "402a6f66d8c709116cf22f558eab210f5a50187f702eb4d7e5ef38d9a7f1c79c" +checksum = "3084b546a1dd6289475996f182a22aba973866ea8e8b02c51d9f46b1336a22da" dependencies = [ "itoa", "memchr", - "ryu", "serde", "serde_core", + "zmij", ] [[package]] @@ -1505,7 +1499,7 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" [[package]] name = "summars" -version = "6.1.0" +version = "6.2.0" dependencies = [ "anyhow", "chrono", @@ -1535,9 +1529,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.111" +version = "2.0.112" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "390cc9a294ab71bdb1aa2e99d13be9c753cd2d7bd6560c77118597410c4d2e87" +checksum = "21f182278bf2d2bcb3c88b1b08a37df029d71ce3d3ae26168e3c653b213b99d4" dependencies = [ "proc-macro2", "quote", @@ -1596,9 +1590,9 @@ dependencies = [ [[package]] name = "tempfile" -version = "3.23.0" +version = "3.24.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d31c77bdf42a745371d260a26ca7163f1e0924b64afa0b688e61b5a9fa02f16" +checksum = "655da9c7eb6305c55742045d5a8d2037996d61d8de95806335c7c86ce0f82e9c" dependencies = [ "fastrand", "getrandom 0.3.4", @@ -2275,3 +2269,9 @@ dependencies = [ "quote", "syn", ] + +[[package]] +name = "zmij" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3280a1b827474fcd5dbef4b35a674deb52ba5c312363aef9135317df179d81b" diff --git a/Cargo.toml b/Cargo.toml index 2521044..bda35ef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "summars" -version = "6.1.0" +version = "6.2.0" edition = "2021" rust-version = "1.85" diff --git a/Cross.toml b/Cross.toml deleted file mode 100644 index cacec43..0000000 --- a/Cross.toml +++ /dev/null @@ -1,6 +0,0 @@ -[build] -pre-build = [ - "apt update && apt install -y unzip", - "curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-linux-x86_64.zip && unzip protoc-21.12-linux-x86_64.zip -d /usr/", - "chmod 755 /usr/bin/protoc" -] \ No newline at end of file diff --git a/README.md b/README.md index d055748..e849e32 100644 --- a/README.md +++ b/README.md @@ -215,8 +215,8 @@ You can mix these methods and if you set the same option with different methods, * ``summars-sort-by`` Sort by column name. Use ``-`` before column name to reverse sort. Valid columns are all ``summars-columns`` except for ``GRAPH_SATS`` (use ``IN_SATS``, ``OUT_SATS`` or ``TOTAL_SATS`` instead). Default is ``SCID`` * ``summars-exclude-states`` List if excluded channel states. Comma-separated. Valid states are: ``OPENING``, ``AWAIT_LOCK``, ``OK``, ``SHUTTING_DOWN``, ``CLOSINGD_SIGEX``, ``CLOSINGD_DONE``, ``AWAIT_UNILATERAL``, ``FUNDING_SPEND``, ``ONCHAIN``, ``DUAL_OPEN``, ``DUAL_COMITTED``, ``DUAL_COMMIT_RDY``, ``DUAL_AWAIT``, ``AWAIT_SPLICE`` and ``PUBLIC``, ``PRIVATE`` to filter channels by their network visibility, aswell as or `ONLINE,OFFLINE` to filter by connection status. ### Closed channels table -* ``summars-closed-channels`` List the last x closed channels. Default is ``0`` (disabled) -* ``summars-closed-channels-columns`` Comma-separated list of enabled columns in the closed channels table. Also dictates order of columns. Valid columns: ``LAST_CONNECT``, ``OUT_SATS``, ``IN_SATS``, ``TOTAL_SATS``, ``SCID``, ``FLAG``, ``ALIAS``, ``PEER_ID``, ``HTLCS_SENT``, ``CLOSE_CAUSE``. Default columns: ``LAST_CONNECT``, ``OUT_SATS``, ``IN_SATS``, ``SCID``, ``FLAG``, ``ALIAS``, ``PEER_ID``, ``HTLCS_SENT``, ``CLOSE_CAUSE`` +* ``summars-closed-channels`` List the last x closed channels. They are sorted by ``last_stable_connection`` which might not be consistent with the time they hit the blockchain but it's the only time we can easily get. Default is ``0`` (disabled) +* ``summars-closed-channels-columns`` Comma-separated list of enabled columns in the closed channels table. Also dictates order of columns. Valid columns: ``LAST_CONNECT``, ``OUT_SATS``, ``IN_SATS``, ``TOTAL_SATS``, ``SCID``, ``PRIVATE``, ``ALIAS``, ``PEER_ID``, ``HTLCS_SENT``, ``CLOSE_CAUSE``. Default columns: ``LAST_CONNECT``, ``OUT_SATS``, ``IN_SATS``, ``SCID``, ``PRIVATE``, ``ALIAS``, ``PEER_ID``, ``HTLCS_SENT``, ``CLOSE_CAUSE`` ### Forwards table * ``summars-forwards`` List successfull forwards of the last x hours. Default is ``0`` hours (disabled) * ``summars-forwards-limit`` Additionally limit the amount of entries shown by ``summars-forwards``. Default is ``0`` (off) diff --git a/coffee.yml b/coffee.yml index 55807ea..976212f 100644 --- a/coffee.yml +++ b/coffee.yml @@ -1,6 +1,6 @@ plugin: name: summars - version: 6.1.0 + version: 6.2.0 lang: rust install: | cargo build --release && cp target/release/summars . && cargo clean