-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export descriptor #1551
base: master
Are you sure you want to change the base?
Export descriptor #1551
Conversation
let date = chrono::Local::now().format("%Y-%m-%dT%H-%M-%S"); | ||
format!("liana-txs-{date}.csv") | ||
} | ||
ExportType::Psbt(_) => "psbt.psbt".into(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you think about {txid}.psbt ? cc @nondiremanuel @jp1ac4 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the complete txid is quite long imho, maybe {txid[..10]}.psbt ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possibly having the full txid would make it easier to search for the file, but otherwise I think the short version should be fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
windows path are limited to 260 chars iirc, its not likely to hit this, but....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prioritize not hitting the limit, so if there is that risk maybe we should truncate the id to a safe number of chars.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for info, i looked a sparrow, it's default name is the label of the first output (output labels are mandatory in sparrow):
<label>.psbt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
label would be nice, but we would have to choose something for non labeled psbts. I was also thinking that txid (or truncated txid) could be seen just as a random string to non-technical users, so maybe it's not the best solution.
28cd582
to
5e3c565
Compare
No description provided.