{"id":18928843,"url":"https://github.com/lightninglabs/dust-tool","last_synced_at":"2025-04-15T14:31:40.241Z","repository":{"id":85593003,"uuid":"412238008","full_name":"lightninglabs/dust-tool","owner":"lightninglabs","description":"dust exposure tool","archived":false,"fork":false,"pushed_at":"2021-10-04T20:02:04.000Z","size":47,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-28T22:34:45.917Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lightninglabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-30T21:47:30.000Z","updated_at":"2023-06-22T02:09:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"5033e69c-ffed-4b01-a5a2-598802f110a2","html_url":"https://github.com/lightninglabs/dust-tool","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightninglabs%2Fdust-tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightninglabs%2Fdust-tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightninglabs%2Fdust-tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightninglabs%2Fdust-tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lightninglabs","download_url":"https://codeload.github.com/lightninglabs/dust-tool/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249088790,"owners_count":21210863,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T11:28:21.902Z","updated_at":"2025-04-15T14:31:40.236Z","avatar_url":"https://github.com/lightninglabs.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dust Exposure Tool\n\n## Building\n- Requires Go 1.16\n- Run the following command:\n```\n$ go build\n```\n\n## DustAcceptor mode\n- The dust tool can intercept malicious `open_channel` requests with high `dust_limit_satoshis` values.\n- Simply run it like so:\n```\n./dust-tool -network=\u003cmainnet/testnet/etc\u003e -macpath=\u003cpath-of-macaroon\u003e -host=\u003chost:port of RPC server\u003e\n```\n- You should see output like this:\n```\n2021/09/30 18:06:47 Creating dust acceptor, no output will be recorded unless it errors out.\n```\n\n## Channel Close recommendations\n- The dust tool can also give channel close recommendations based on a confirmed channel's `dust_limit_satoshis` and `max_accepted_htlcs` values.\n- Simply run it like so, optionally specifying `-dustexposure` in satoshis:\n```\n./dust-tool -network=\u003cmainnet/testnet/etc\u003e -macpath=\u003cpath-of-macaroon\u003e -host=\u003chost:port of RPC server\u003e -check-chans -dustexposure=1000000\n```\n- If a potentially risky channel is found, you should receive output like this:\n```\n2021/09/30 18:12:59 Evaluating set of channels for dust exposure\n2021/09/30 18:12:59 Consider closing chanpoint(e2b43845a099c7ab98345a4604b24d7fbb4c19cec97911a9c1c250b57c762220:0), dust exposure(0.0483 BTC) higher than threshold(0.0049 BTC)\n```\n- If no output is returned, you are safe for the dust threshold specified!\n\n## Help\n```\nUsage of ./dust-tool:\n  -check-chans\n        whether to check existing channels for dust_limit_satoshis exposure\n  -dustexposure uint\n        sets the dust threshold in satoshis for channel close recommendations - must be specified with checkchans (default 600000)\n  -host string\n        host of the target lnd node (default \"localhost:10009\")\n  -macpath string\n        path of admin.macaroon for the target lnd node (default \"/path/admin.macaroon\")\n  -network string\n        the network the lnd node is running on (default \"mainnet\")\n  -tlspath string\n        path to the TLS cert of the target lnd node (default \"/path/tls.cert\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightninglabs%2Fdust-tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flightninglabs%2Fdust-tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightninglabs%2Fdust-tool/lists"}