Skip to content
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

Wallet creation time #920

Merged
merged 1 commit into from
Jan 23, 2024
Merged

Conversation

pythcoiner
Copy link
Collaborator

@pythcoiner pythcoiner commented Jan 14, 2024

(partially) address #805

  • daemon
  • tests
  • doc

@pythcoiner pythcoiner force-pushed the wallet_birthday branch 3 times, most recently from 8bdf7b5 to b61ea3d Compare January 14, 2024 12:30
@darosior
Copy link
Member

Concept ACK. I think the GUI integration should go in a latter PR (since it needs to update the daemon). So a small addition to doc/API.md seems to be all that's left to do here.

@pythcoiner pythcoiner marked this pull request as ready for review January 19, 2024 12:26
@pythcoiner
Copy link
Collaborator Author

docs added, now ready for review

Copy link
Member

@darosior darosior left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 7917794

Comment on lines +8 to +14
use std::convert::TryInto;
use std::{
collections::{HashMap, HashSet},
env, fs, io, path, process,
str::FromStr,
sync, thread, time,
time::{SystemTime, UNIX_EPOCH},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit, for next time:

Suggested change
use std::convert::TryInto;
use std::{
collections::{HashMap, HashSet},
env, fs, io, path, process,
str::FromStr,
sync, thread, time,
time::{SystemTime, UNIX_EPOCH},
use std::{
collections::{HashMap, HashSet},
convert::TryInto, env, fs, io, path, process,
str::FromStr,
sync, thread, time,
time::{SystemTime, UNIX_EPOCH},

@@ -22,6 +22,7 @@

def test_getinfo(lianad):
res = lianad.rpc.getinfo()
assert 'timestamp' in res.keys()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: could've sanity checked the value. For instance that it's after now - 1 day and lower or equal to now.

@darosior darosior merged commit e9b5a7a into wizardsardine:master Jan 23, 2024
18 checks passed
@pythcoiner pythcoiner deleted the wallet_birthday branch March 26, 2024 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants