0src/bitcoin-cli dumptxoutset utxo.dat/
1
2error code: -1
3error message:
4CAutoFile::operator<<: file handle is nullptr: unspecified iostream_category error
rpc: failure calling dumptxoutset with invalid filename #17612
issue fanquake openend this issue on November 26, 2019-
fanquake commented at 2:29 pm on November 26, 2019: member
-
fanquake added the label RPC/REST/ZMQ on Nov 26, 2019
-
fanquake added the label good first issue on Nov 26, 2019
-
fanquake renamed this:
rpc: crash calling dumptxoutset with invalid filename
rpc: failure calling dumptxoutset with invalid filename
on Nov 26, 2019 -
brakmic commented at 5:13 pm on November 26, 2019: contributor
Hi,
These changes add file name checking via fs::is_regular_file and return proper JSON-errors if not. Functional & Unit Tests introduced as well.
However, there are other alternatives like boost’s name_check functions, but I think that is_regular_file from C++ std is sufficient enough.
This of course needs more rigorous checking before opening a PR as I’ve only tested it under macOS Catalina.
Regards,
-
brakmic commented at 5:48 pm on November 26, 2019: contributorThanks! Ok, then I’ll open a PR!
-
brakmic commented at 10:07 pm on November 27, 2019: contributorMoved the original PR to https://github.com/bitcoin/bitcoin/pull/17623
-
bitcoin deleted a comment on Jan 4, 2020
-
MarcoFalke commented at 1:50 pm on May 31, 2020: member@fanquake Any pointers on how this should be solved? I don’t think this is a bug, but a feature.
-
MarcoFalke removed the label good first issue on Mar 25, 2022
-
MarcoFalke commented at 12:57 pm on March 25, 2022: memberIs this still an issue with a recent version of Bitcoin Core?
-
fanquake commented at 3:37 pm on August 6, 2022: memberHappy to close this.
-
fanquake closed this on Aug 6, 2022
-
bitcoin locked this on Aug 6, 2023
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-17 15:12 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-17 15:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me